Community
Participate
Working Groups
Build ID: M20070212-1330 Steps To Reproduce: 1. Create two classes with identical names but in different packages. 2. Write a method that returns your class no.1 3. Declare a variable of type no.2 and try to assign no.1 with a method call. What you will get in error description is "Type mismatch: cannot convert from MyTypeName to MyTypeName" More information: This is a minor issue, but annoying. Because only one type needs to be imported, there is no need to use full package name with conflicting classes and the resulting error message is a little bit lacking information.
We did de-qualify our type names in error messages to improve readability; in such (rare) cases, I agree this doesn't help.
I suggest that Eclipse should qualify the names in the error message if and only if the two names it is about to present are currently identical.
*** This bug has been marked as a duplicate of bug 241841 ***