You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/09/26 11:53:01 UTC
DO NOT REPLY [Bug 31422] New: -
ValuedEnum
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31422>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31422
ValuedEnum
Summary: ValuedEnum
Product: Commons
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Lang
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: itzik.levin@verint.com
When values of ValuedEnum are defined as final (as the JavaDoc suggests),
then all classes that use this enum will hold the value itself and not reference
after compilation. Compiler substitutes references to final with the value of
final variable itself. Then if you change the value in you enum and recompile
it, you must recompile also all the classes that use the enum. Otherwise they
continue to use old value.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org