java.lang.VerifyError on method that worked a minute ago

前端 未结 7 1843

Apologies in advance but I have never seen this error before and don\'t know what to include. I am using NetBeans and suddenly began getting this error:

Exc         


        
7条回答
  •  遇见更好的自我
    2021-01-18 04:45

    I would seriously doubt that this is a Java compiler bug. Something like that would most likely have been noticed by someone else and reported as a bug. But you can verify this by recompiling the file and using javap to disassemble the bytecodes. Look for the the following instruction in the constructor code:

        invokespecial #1 
    

    I think it is more likely that something is modifying the bytecodes after the compiler has written them. Possibilities include some profiler that is modifying the bytecodes to inject profiling hooks, or some annotation processor that is injecting dependencies, cut points, etc.

提交回复
热议问题