8153118 Remove sun.misc.resources

Alan Bateman Alan.Bateman at oracle.com
Thu Mar 31 06:06:35 UTC 2016

On 30/03/2016 21:57, Mandy Chung wrote:
>> On Mar 30, 2016, at 1:35 PM, Chris Hegarty <chris.hegarty at oracle.com> wrote:
>> sun.misc.resources claims to contain a ResourceBundle for sun.misc,
>> which has localized versions of messages for "bad" jar files, such as:
>>   "optpkg.versionerror", "ERROR: Invalid version format used in {0} JAR file. Check the documentation for the supported version format."
>>   "optpkg.attributeerror", "ERROR: The required {0} JAR manifest attribute is not set in {1} JAR file."
>>   "optpkg.attributeserror", "ERROR: Some required JAR manifest attributes are not set in {0} JAR file."
>> These error message appear to not be used, either by the JDK itself,
>> or elsewhere. I assume that there was a consumer of these at one
>> point, but has long since been refactored away.
>> http://cr.openjdk.java.net/~chegar/8153118/
>> https://bugs.openjdk.java.net/browse/JDK-8153118
> +1
> This was used by sun.misc.ExtensionInfo and left behind when sun.misc.Extension* classes are removed (JDK-8064956).  Thanks for removing it.
That's right. We wanted to remove these resources in the past but 
couldn't because of the Extension* classes.


More information about the core-libs-dev mailing list