Recompile fails on non-structure affecting changes

Answered

Hi guys,

I have a class in a large project where I commented some code inside a function, but when I try to recompile it fails to hot swap, I did not change the structure or definitions in a class, only commented a call to another function inside an if statement, as far as I understand it should not fail in these cases, the code looks something like this:

public xxx myFunction(args) {

   if(some_condition){
      logError(args); // <-- comenting this line and recompiling gives error
      throw new IllegalArgumentException(...); //<-- commenting this like works without issues
   }

   ...
}

Please advise.

Thanks

0
5 comments

What is the exact message that you get? Can you share a small sample project to reproduce this issue?

0
Avatar
Permanently deleted user

I do not have a sample project unfortunately and can't share this one due to NDA (and HUGE SIZE!), also, this error doesn't always happen in other cases, the message is hot swap failed add method not implemented if that helps.

0

It may be not the only change that the compiler makes, so it looks like some additional method was added as well, it could be caused by some annotation processor.

0
Avatar
Permanently deleted user

Sorry I was wrong, the error is JBoss Trunk: delete method not implemented JBoss Trunk: Operation not supported by VM. Is there a way to track this / find out the cause?

0

You can check Java debugger logs: https://intellij-support.jetbrains.com/hc/en-us/articles/207241125.

For advanced HotSwap you may consider using DCEVM or JRebel.

0

Please sign in to leave a comment.