JDK-8160267 : Ucrypto config file cannot be read when -Dfile.encoding=UTF-16 is set
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-06-24
  • Updated: 2022-08-23
  • Resolved: 2016-07-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u131Fixed 8u112Fixed 9 b127Fixed
Related Reports
Relates :  
Relates :  
Description
When the encoding is set -Dfile.encoding=UTF-16 then the ucrypto.cfg file cannot be read.

It was noticed when backporting JDK-8158633 to jdk8.
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/4235be4c9432 User: amurillo Date: 2016-07-13 03:50:56 +0000
13-07-2016

URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/4235be4c9432 User: igerasim Date: 2016-07-07 23:03:27 +0000
07-07-2016

For sure. I think all the test base should be systematically run in UTF-16 environment.
25-06-2016

There are probably plenty of other places where this is a problem.
24-06-2016