Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-258

Enum JavaDoc: 1) outline 5.0 native Enum migration 2) warn not to use the switch() , 3) point out approaches for persistence and gui

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.3
    • None
    • None
    • all

    Description

      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!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ralfhauser Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: