commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29912] New: - [pool] Compilation under 1.5: enum keyword
Date Sun, 04 Jul 2004 17:14:27 GMT
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=29912>.
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=29912

[pool] Compilation under 1.5: enum keyword

           Summary: [pool] Compilation under 1.5: enum keyword
           Product: Commons
           Version: 1.2 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Pool
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: dirk.verbeeck@pandora.be


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!

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message