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.

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

                Created:
                Updated:
                Resolved: