ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 2811] <depend> does not work when static final primitive "constants" are modified
Date Mon, 23 Jan 2012 22:05:21 GMT

Jesse Glick <> changed:

           What    |Removed                     |Added
                 CC|                            |

--- Comment #5 from Jesse Glick <> 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message