IntelliJ does not see the generated method

I have a multi-module Maven project.

In module A, I have a class to which I generate a new method with javassist (bytecode level) at compile time. When I decompile the class, I see that the method does exist.

In module B, I want to call this generated method. It compiles and runs, but IntelliJ still reports a missing method.

The IDE seems to be using the .java file directly from the sibling module and not the compiled (and improved) version.

Is there a way to tell IntelliJ to look at .class files and not .java files if the file is not in that specific module?

thank

+3


source to share





All Articles