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

generated source to compile .properties file incorreectly includes the module name in the package name

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b42

      Backports

        Description

        java.desktop contains os-specific properties files that get compiled into java classes during JDK build. The generated source includes the module name as part of the package name which is a bug:

        For example, the generated support/gensrc/java.desktop/macosx/classes/sun/awt/resources/awtosx.java:

        package java.desktop.macosx.classes.sun.awt.resources;
        import java.util.ListResourceBundle;
        public final class awtosx extends ListResourceBundle {
        ....



        $ jar tvf /java/re/jdk/9/latest/binaries/windows-amd64/jre/lib/rt.jar | grep java.desktop
           491 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization.class
           500 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_de.class
           506 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_es.class
           505 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_fr.class
           500 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_it.class
           512 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_ja.class
           501 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_ko.class
           511 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_pt_BR.class
           498 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_sv.class
           506 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_zh_CN.class
           506 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_zh_HK.class
           506 Mon Nov 17 14:27:54 PST 2014 java/desktop/windows/classes/sun/awt/windows/awtLocalization_zh_TW.class

        $ jar tvf /java/re/jdk/9/latest/binaries/macosx-amd64/jre/lib/rt.jar | grep java.desktop
          7571 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua.class
          7835 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_de.class
          7823 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_es.class
          7777 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_fr.class
          7818 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_it.class
          7973 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_ja.class
          7820 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_ko.class
          7778 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_pt_BR.class
          7598 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_sv.class
          7635 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_zh_CN.class
          7663 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_zh_HK.class
          7663 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/com/apple/laf/resources/aqua_zh_TW.class
          2973 Mon Nov 17 14:16:22 PST 2014 java/desktop/macosx/classes/sun/awt/resources/awtosx.class

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  erikj Erik Joelsson
                  Reporter:
                  mchung Mandy Chung
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: