I think this is fixed in FastTreeMap/FastHashMap versions 1.3, by simply
making the reference to Map.Entry explicit (rather than just Entry) but I
don't have a suitable environment to test it on.  Can someone with JDK 1.2
on Linux give this a try?

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 12, 2001 12:47 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Bug 1729] New - Collections doesn't build with jdk1.2 javac


http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1729

*** shadow/1729 Fri May 11 22:46:31 2001
--- shadow/1729.tmp.2699        Fri May 11 22:46:32 2001
***************
*** 0 ****
--- 1,52 ----
+
+===========================================================================
=+
+ | Collections doesn't build with jdk1.2 javac
|
+
+---------------------------------------------------------------------------
-+
+ |        Bug #: 1729                        Product: Commons
|
+ |       Status: NEW                         Version: Nightly Builds
|
+ |   Resolution:                            Platform: PC
|
+ |     Severity: Normal                   OS/Version: Linux
|
+ |     Priority: Medium                    Component: Collections
|
+
+---------------------------------------------------------------------------
-+
+ |  Assigned To: [EMAIL PROTECTED]
|
+ |  Reported By: [EMAIL PROTECTED]
|
+ |      CC list: Cc:
|
+
+---------------------------------------------------------------------------
-+
+ |          URL:
|
+
+===========================================================================
=+
+ |                              DESCRIPTION
|
+ Hi,
+ 
+ Just tried building jakarta-commons/collections from CVS (12/5), and it
doesn't
+ compile with Sun's 'javac' for linux:
+ 
+ $ java -version
+ java version "1.2.2"
+ Classic VM (build JDK-1.2.2_007, green threads, nojit)
+ 
+ $ ant clean ; ant
+ ....
+ build-java:
+     [mkdir] Created dir:
+ /home/jeff/apache/jakarta/jakarta-commons/collections/dist/classes
+     [javac] Compiling 26 source files to
+ /home/jeff/apache/jakarta/jakarta-commons/collections/dist/classes
+     [javac]
+
/home/jeff/apache/jakarta/jakarta-commons/collections/src/java/org/apache/co
mmons/collections/FastTreeMap.java:325:
+ Inner type Entry in class java.util.TreeMap not accessible from class
+ org.apache.commons.collections.FastTreeMap.
+     [javac]                 Entry e = (Entry) i.next();
+     [javac]                 ^
+     [javac]
+ ....
+ BUILD FAILED
+ 
+ 
+ However, it *does* work if I set build.compiler=jikes. It also works if I
use
+ jdk1.3 'javac'. Possibly a bug in javac?
+ 
+ Anyway, just thought I'd bring this to people's attention, as the
STATUS.html
+ file states it needs "JDK1.2 or later".
+ 
+ thanks,
+ 
+ --Jeff

Reply via email to