-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
tiger
-
generic
-
solaris_8
If I rebuild (Build All in NetBeans, which erases the class files first)
our whole project with the Generics compiler (javac.jar) and collect.jar
in the compiler bootclasspath, then I get an error in one source, saying
that there is no method "put(String, String)" in java.util.Properties.
If I compile the rest (uncompiled) of the sources then (using Compile
All in NetBeans, which just compiles the missing .class files), then it
manages to compile it without error. So, there are 2 steps needed to
build everything and there is no "real" error in that source.
It also compiles without errors, if I compile that one offending source
alone.
This only happens with collect.jar in the bootclasspath of the Generics
compiler.
This was not the case with 1.0 EA. Seems there is a problem in 1.2 EA
with compiling a lot of sources at once. If you want, I can give you our
sources (ca. 600 classes and some JAR files).
=================================
I narrowed the problem down to this test case:
==================== $ ls -la
total 3
drwxr-xr-x 2 gafter 512 Nov 7 15:55 .
drwxr-xr-x 7 gafter 1024 Nov 7 15:42 ..
-rw-r--r-- 1 gafter 170 Nov 7 15:51 A.java
==================== $ cat -n A.java
1 class A {
2 java.util.Hashtable tables;
3 }
4 class B {
5 void main() {
6 java.util.Properties retries = null;
7 retries.put("foo", String.valueOf(12));
8 }
9 }
==================== $ newjavac A.java
==================== $ rm *.class
==================== $ newjavac -source 1.5 A.java
A.java:7: cannot resolve symbol
symbol : method put (java.lang.String,java.lang.String)
location: class java.util.Properties
retries.put("foo", String.valueOf(12));
^
1 error
==================== $
###@###.### 2002-11-07
our whole project with the Generics compiler (javac.jar) and collect.jar
in the compiler bootclasspath, then I get an error in one source, saying
that there is no method "put(String, String)" in java.util.Properties.
If I compile the rest (uncompiled) of the sources then (using Compile
All in NetBeans, which just compiles the missing .class files), then it
manages to compile it without error. So, there are 2 steps needed to
build everything and there is no "real" error in that source.
It also compiles without errors, if I compile that one offending source
alone.
This only happens with collect.jar in the bootclasspath of the Generics
compiler.
This was not the case with 1.0 EA. Seems there is a problem in 1.2 EA
with compiling a lot of sources at once. If you want, I can give you our
sources (ca. 600 classes and some JAR files).
=================================
I narrowed the problem down to this test case:
==================== $ ls -la
total 3
drwxr-xr-x 2 gafter 512 Nov 7 15:55 .
drwxr-xr-x 7 gafter 1024 Nov 7 15:42 ..
-rw-r--r-- 1 gafter 170 Nov 7 15:51 A.java
==================== $ cat -n A.java
1 class A {
2 java.util.Hashtable tables;
3 }
4 class B {
5 void main() {
6 java.util.Properties retries = null;
7 retries.put("foo", String.valueOf(12));
8 }
9 }
==================== $ newjavac A.java
==================== $ rm *.class
==================== $ newjavac -source 1.5 A.java
A.java:7: cannot resolve symbol
symbol : method put (java.lang.String,java.lang.String)
location: class java.util.Properties
retries.put("foo", String.valueOf(12));
^
1 error
==================== $
###@###.### 2002-11-07