ClassFormatError when using TomcatInstrumentableClassLoader: invalid modifiers: 0x18

I am using TomcatInstrumentableClassLoader to implement AspectJ Load Time Weaving.

During the initial setup of my application, I use ClassUtils.getClass () to load all classes.

At this point, I get

java.lang.ClassFormatError: method test_aroundBody0 in class com / abc / Foo has illegal modifiers: 0x18

Foo.java is the interface and test () is the default method in the interface.

I am not getting this error when using the default ClassLoader.

I am using,
spring-instrument-cat-4.1.6
JDK 1.8.0_20-
cat-7.0.47
aspectjweaver-1.8.5.jar

Any suggestions or answers would be appreciated.

+3


source to share





All Articles