-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
6
-
generic
-
generic
Misleading error message from compiler.
<java-code>
public class Foo {
public static void main(String... args) {
System.out.println((className.class)obj.getI());
}
}
</java-code>
<output>
Foo.java:3: ')' expected
System.out.println((className.class)obj.getI());
^
1 error
</output>
User can't make any thing from the above error message.
It can be improved for better understaing like illegal cast...
<java-code>
public class Foo {
public static void main(String... args) {
System.out.println((className.class)obj.getI());
}
}
</java-code>
<output>
Foo.java:3: ')' expected
System.out.println((className.class)obj.getI());
^
1 error
</output>
User can't make any thing from the above error message.
It can be improved for better understaing like illegal cast...