Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.05 KB

README.md

File metadata and controls

21 lines (16 loc) · 1.05 KB

javassist-ecj-bug

A small project that demonstrates a bug in javassist with classes compiled by the eclipse compiler. This was verified with JDK 1.8.0_192-b12.

The project contains 2 tests: JUnitJavassistTest and PowerMockJavassistTest. The only difference between them is that PowerMockJavassistTest has PowerMockRunner.class annotation, so some javassist bytecode manipulation is performed.

Running mvn clean test executes JUnitJavassistTest. PowerMockJavassistTest is activated with pmock maven profile: mvn clean test -Ppmock. Both commands complete successfully.

The project can also use the eclipse compiler instead of the default JDK compiler. The eclipse compiler is activated with ecj maven profile: mvn clean test -Pecj. This command completes successfully.

But combining the eclipse compiler with PowerMock (mvn clean test -Ppmock,ecj) fails with:

java.lang.VerifyError: Stack map does not match the one at exception handler 103

The full verification error can be found in error.txt