|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
There are many compiler diagnostics that could be improved.
This RFE tracks all such issues. Please either add a new
description note or link to related issues.
From jplan entry 403:
For an invalid cast, javac will write something like:
Cast.java:1: inconvertible types
found : java.lang.Number
required: java.lang.String
See also: http://blogs.sun.com/ahe?entry=diagnosing_captured_wildcards
Object o = null;
o -= null;
Gives:
Test.java:12: operator - cannot be applied to java.lang.Object,<nulltype>
o -= null;
^
This should be improved. This should not refer to the operator -, but
the operator -=. Furthermore, "java.lang.Object,<nulltype>" is not very
helpful and we should have separate error messages for unary and binary
operators.
|