IntelliJ can't see generated method

348 views Asked by At

I have a multimodular Maven project.

In module A I have a class to which I generate a new method with javassist (bytecode level) in compile time. When I decompile the class I can see that the method is really there.

In module B I want to call that generated method. It compiles and runs but IntelliJ is still reporting missing method.

It seems that IDE uses directly .java file from sibling module rather than compiled (and enhanced) version.

Is there any way how to tell IntelliJ to look at .class files and not .java if the file is not in this particular module?

Thanks

0

There are 0 answers