ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
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
https://issues.apache.org/bugzilla/show_bug.cgi?id=2811

Jesse Glick <jglick@netbeans.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jglick@netbeans.org

--- Comment #5 from Jesse Glick <jglick@netbeans.org> 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.

Mime
View raw message