InspectionGadgets: erroneous error reported for disambiguating FQCN

IG erroneously reports that a fully qualified class name is unnecessary, when in fact a FQCN actually is required in order to disambiguate two identically named classes that are both referenced from within the same compilation unit.

I noticed this when referencing javax.wsdl.Part and org.obe.client.api.repository.Part in the same file. IG reported: "Fully qualified name javax.wsdl.Part is unnecessary, and can be replaced with an import". Replacing the entry with an import leads, understandably, to the standard IDEA inspector message: "Incompatible types. Found: 'javax.wsdl.Part', required: 'org.obe.client.api.repository.Part'"

1 comment

Hurm, I've actually got code for this case, and my tests don't have this failure. Can you post (or mail me) a test case?

--Dave Griffith

0

Please sign in to leave a comment.