Skip to content

A small project that demonstrates a bug in javassist with classes compiled by the eclipse compiler.

Notifications You must be signed in to change notification settings

l-k-test/javassist-ecj-bug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small project that demonstrates a bug in javassist with classes compiled by the eclipse compiler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages