Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8304367

jlink --include-locales=* attempts to parse non .class resource files with classfile reader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 21
    • tools
    • b15

      IncludeLocalesPlugin reads all resources in jdk.localedata module as .class which is a bug. It happens to work because ASM ClassReader does very minimal validation and does not throw an exception for example reading /jdk.localedata/sun/text/resources/ext/LineBreakIteratorData_th.

      This is uncovered when IncludeLocalesPlugin is converted to use the new ClassFile API.

      The plugin should transform only .class that implement LocaleDataMetaInfo

      Or specific entries:
      jdk.localedata/sun/util/resources/cldr/provider/CLDRLocaleDataMetaInfo.class
      jdk.localedata/sun/util/resources/provider/NonBaseLocaleDataMetaInfo.class

            naoto Naoto Sato
            mchung Mandy Chung (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: