[ https://issues.apache.org/jira/browse/LUCENE-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768132#action_12768132 ]
Uwe Schindler commented on LUCENE-1998: --------------------------------------- Some samll problem that may appear in future: We had renamed some enum constants in 2.9 (TOKENIZED -> ANALYZED). No problems now, because deprec constants removed. If we want to do the same in future, we can do it the same way, but need to do a hack (because it is not officially supprted by Java 5): [http://forums.sun.com/thread.jspa?threadID=5137742] So it works, but not with switch statements. Just as a comment. But in my opinion, renaming enum constants is a bad thing... > Use Java 5 enums > ---------------- > > Key: LUCENE-1998 > URL: https://issues.apache.org/jira/browse/LUCENE-1998 > Project: Lucene - Java > Issue Type: Improvement > Affects Versions: 3.0 > Reporter: DM Smith > Assignee: Uwe Schindler > Priority: Minor > Fix For: 3.0 > > Attachments: LUCENE-1998_enum.patch, LUCENE-1998_enum.patch, > LUCENE-1998_enum.patch > > > Replace the use of o.a.l.util.Parameter with Java 5 enums, deprecating > Parameter. > Replace other custom enum patterns with Java 5 enums. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org