IntelliJ IDEA 11.1.3
I have a multi module project where one of the modules encapsulates an XML schema and generates entities mapped to both JAXB and JPA. Another module, which depends on the first, when using entities from the first module, reports 'incompatible types'.
the simple assignment:
ClassType act = anEvent.getInternalClassification();
reports that it requires com.xxx.yyy.zzz.ClassType (same class as shown on import line, entity from first module)
but found ClassType
The object being acted on, anEvent, is also an entity from the first module. I get no errors reported on it, I assume because it is being passed in. However every method reference of anEvent that returns a type defined in the first module automatically code-completes the type as the fully qualified name from the first module and reports that it cannot resolve the type. When I copy the automatically generated type into an import statement and remove the fully-qualified portion, then the import shows nothing is wrong, but that is when I get the incompatible types.
The modules all build fine and seem to function fine, but I object to all of the auto-completion that happens as I am trying to edit this file, as well as the erroneous error marks that show up.
I have tried clearing the cache multiple times, I have deleted the cache by hand (system directory), I have restarted, reloaded, all to no avail. I cannot find any other references to an issue such as this so am reaching out to the community.
Thanks in advance for any assitance or ideas that you can give.