-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b40
-
generic
-
generic
matinicus % cat G3.java
import java.io.*;
import java.util.*;
public class G3 {
G3(Enumeration<InputStream> ei) { }
void g() {
new G3(new Enumeration() {
public boolean hasMoreElements() { return false; }
public Object nextElement() { return null; }
});
}
}
matinicus % /w/auto/tiger/build/latest/bin/javac -J-showversion -source 1.5 G3.java
java version "1.5.0-auto-tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-auto-tiger-311a)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode)
G3.java:11: cannot find symbol
symbol : constructor G3(<anonymous java.util.Enumeration>)
location: class G3
new G3(new Enumeration() {
^
1 error
matinicus %
import java.io.*;
import java.util.*;
public class G3 {
G3(Enumeration<InputStream> ei) { }
void g() {
new G3(new Enumeration() {
public boolean hasMoreElements() { return false; }
public Object nextElement() { return null; }
});
}
}
matinicus % /w/auto/tiger/build/latest/bin/javac -J-showversion -source 1.5 G3.java
java version "1.5.0-auto-tiger"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-auto-tiger-311a)
Java HotSpot(TM) Client VM (build 1.5.0-beta-b26, mixed mode)
G3.java:11: cannot find symbol
symbol : constructor G3(<anonymous java.util.Enumeration>)
location: class G3
new G3(new Enumeration() {
^
1 error
matinicus %