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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 21
    • Affects Version/s: 21
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: