Uploaded image for project: 'Commons Pool'
  1. Commons Pool
  2. POOL-8

[pool] Compilation under 1.5: enum keyword

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • Operating System: other
      Platform: Other

    • 29912

    Description

      Mail from Greg Billock on commons-dev
      --------------------------------------
      I recently compiled commons-pool under JDK1.5 without a problem
      except for two files:

      /src/java/org/apache/commons/pool/impl/StackKeyedObjectPool.java
      /src/java/org/apache/commons/pool/impl/StackObjectPool.java

      These two files use the new 1.5 keyword 'enum' in an enumeration.
      A shallow fix is to simply rename the variable to 'enm' or something.
      A deeper fix might be to use iterator() method. I'm happy to contribute
      a patch which enables clean 1.5 compilation, but assuming the
      shallow fix is desired, it is pretty straightforward. Please email me
      directly if you (Dirk?) would like the diffs.

      Thanks for the pooling classes!

      Attachments

        Activity

          People

            Unassigned Unassigned
            dirkv Dirk Verbeeck
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: