[ http://issues.apache.org/jira/browse/LANG-258?page=comments#action_12443954 ] Henri Yandell commented on LANG-258: ------------------------------------
svn ci -m "Adding note that using switch is not type-safe" src/java/org/apache/commons/lang/enums/ValuedEnum.java Sending src/java/org/apache/commons/lang/enums/ValuedEnum.java Transmitting file data . Committed revision 466275. > Enum JavaDoc: 1) outline 5.0 native Enum migration 2) warn not to use the > switch() , 3) point out approaches for persistence and gui > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: LANG-258 > URL: http://issues.apache.org/jira/browse/LANG-258 > Project: Commons Lang > Issue Type: Improvement > Affects Versions: 2.1 > Environment: all > Reporter: Ralf Hauser > Fix For: 2.3 > > > http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/enums/Enum.html > is great! > Now that Jdk5.0 has its own approach for type-safe enums, would it be great > to provide a few sentences > - whether they simply should co-habit? > - how one would best migrate? > - where the concepts are different > Also, it would be great to provide some hints how to work on the with a > MVC/GUI framework - see SB-20. > also, > http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/enums/ValuedEnum.html > has a minor typo > it says "doSomething(JavaVersion", but should say > "doSomething(JavaVersionEnum" > also, it should contain a big warning that by using switch(), one opens up > for type-unsafety! -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]