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

Redundant CONSTANT_Class entry not generated for inlined constant

    XMLWordPrintable

Details

    • b68
    • Verified

    Backports

      Description

        public class T {
            public static final String TEXT = B.NAME;
        }

        public class B {
            public static final String NAME = "my-name";
        }

        There is no CONSTANT_Class entry of class B in T.class. If B.NAME is referenced from a method body, the redundant constant pool entry is present.

        Attachments

          Issue Links

            Activity

              People

                vromero Vicente Arturo Romero Zaldivar
                mchung Mandy Chung
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: