-
Type:
Bug
-
Status: Open
-
Priority:
P4
-
Resolution: Unresolved
-
Affects Version/s: 6
-
Fix Version/s: None
-
Component/s: tools
-
Subcomponent:
-
Understanding:Cause Known
-
CPU:generic
-
OS: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...