-
Bug
-
Resolution: Fixed
-
P5
-
5.0
-
b67
-
generic
-
generic
-
Verified
I just ran across a small but pretty obvious bug in javac's error
reporting. I can understand if this is hard to fix, but is this a known problem?
/cygdrive/c/Users/kbr/tmp>javac JavacTest.java
JavacTest.java:7: cannot resolve symbol
symbol : class Applet
location: class JavacTest
public void test(Applet foo) {
^
JavacTest.java:7: test(java.awt.Window) is already defined in JavacTest
public void test(Applet foo) {
^
2 errors
The first error is warranted but the second one is nonsense.
import java.awt.*;
public class JavacTest {
public void test(Window foo) {
}
public void test(Applet foo) {
}
}
reporting. I can understand if this is hard to fix, but is this a known problem?
/cygdrive/c/Users/kbr/tmp>javac JavacTest.java
JavacTest.java:7: cannot resolve symbol
symbol : class Applet
location: class JavacTest
public void test(Applet foo) {
^
JavacTest.java:7: test(java.awt.Window) is already defined in JavacTest
public void test(Applet foo) {
^
2 errors
The first error is warranted but the second one is nonsense.
import java.awt.*;
public class JavacTest {
public void test(Window foo) {
}
public void test(Applet foo) {
}
}