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

Redundant CONSTANT_Class entry not generated for inlined constant

XMLWordPrintable

    • b68
    • Verified

        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.

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

                Created:
                Updated:
                Resolved: