Is there something I don't understand or is this a bug in IDEA? I have two modules in the project and both of them are using using the Hibernate library.
In the code I am saying something like:
IDEA marks the statement as an error. It says: "getSession(net.sf.hibernate SessionFactory, boolean) in SessionFactoryUtils cannot be applied to getSession(net.sf.hibernate SessionFactory, boolean)"
So as you can see, IDEA is saying that instead of using class A as a parameter, you should be using class A. That seems like an error to me.
Even if there are no dependenices between the two projects, IDEA marks that statement as an error. The only way to fix this is to import the resource as a module library, not a class library. But isn't it the whole point of project libraries to be able to use them in multiple modules?
Everything compiles alright and it seems that the only problem is with method calls that take the problematic classes as parameters. It is just very annoying that IDEA shows that part of the code as an error.