https://issues.apache.org/bugzilla/show_bug.cgi?id=2811

Jesse Glick <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Jesse Glick <[email protected]> 2012-01-23 22:05:21 UTC 
---
(In reply to comment #4)
> If you want your
> static constant string NOT to be statically copied into your class files, use
> the .intern() call.

Similar tricks work for constants of primitive type. Unfortunately this results
in Javadoc not mentioning the constant value, and such values cannot be used in
annotations or switch statements. Only a change to the JLS (and hence javac)
could really fix this.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to