Javac in-lines constants defined in other classes during code generation. At present a reference to the class defining such a constant is inset in the constant pool. This is not clear nor useful for interested parties, automatic tools, CP analyzers, etc.
A new undocumented attribute located under method_info can explicitly declare what are the referred fields in external classes.
A new undocumented attribute located under method_info can explicitly declare what are the referred fields in external classes.
- relates to
-
JDK-8009995 javac, class file library should remove unused entries in the constant pool
-
- Open
-