stacktrace-decoroutinator: Signatur parse error and ClassFormatError since 2.4.2

Since 2.4.2, stacktrace decoroutinator does not work in our project anymore. Most tests don’t run successfully with either one of the two errors shown below:

Method getA in class org/modelix/model/IKeyValueStore has illegal modifiers: 0x101A
java.lang.ClassFormatError: Method getA in class org/modelix/model/IKeyValueStore has illegal modifiers: 0x101A
	at org.modelix.model.ModelFacade.newLocalTree(ModelFacade.kt:26)
Signature Parse error: expected '<' or ';' but got  
	Remaining input:  user-specific event if logged in$2;
java.lang.reflect.GenericSignatureFormatError: Signature Parse error: expected '<' or ';' but got  
	Remaining input:  user-specific event if logged in$2;
	at java.base/sun.reflect.generics.parser.SignatureParser.error(SignatureParser.java:124)
	at java.base/sun.reflect.generics.parser.SignatureParser.parsePackageNameAndSimpleClassTypeSignature(SignatureParser.java:337)
	at java.base/sun.reflect.generics.parser.SignatureParser.parseClassTypeSignature(SignatureParser.java:304)
	at java.base/sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:283)
	at java.base/sun.reflect.generics.parser.SignatureParser.parseFieldTypeSignature(SignatureParser.java:277)
	at java.base/sun.reflect.generics.parser.SignatureParser.parseTypeSignature(SignatureParser.java:469)
	at java.base/sun.reflect.generics.parser.SignatureParser.parseTypeSig(SignatureParser.java:188)
	at java.base/sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:438)
	at java.base/sun.reflect.annotation.AnnotationParser.parseClassValue(AnnotationParser.java:427)
	at java.base/sun.reflect.annotation.AnnotationParser.lambda$parseClassArray$0(AnnotationParser.java:718)
	at java.base/sun.reflect.annotation.AnnotationParser.parseArrayElements(AnnotationParser.java:746)
	at java.base/sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:717)
	at java.base/sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:530)
	at java.base/sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:352)
	at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:282)
	at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:121)
	at java.base/sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:73)
	at java.base/java.lang.Class.createAnnotationData(Class.java:4125)
	at java.base/java.lang.Class.annotationData(Class.java:4114)
	at java.base/java.lang.Class.getDeclaredAnnotation(Class.java:4053)
	at dev.reformator.stacktracedecoroutinator.common.internal.TransformedClassesRegistry.registerTransformedClass(transformedClassesRegistry.kt:39)
	at dev.reformator.stacktracedecoroutinator.common.internal.Provider.registerTransformedClass(provider-impl.kt:42)
	at dev.reformator.stacktracedecoroutinator.provider.DecoroutinatorProviderApiKt.registerTransformedClass(provider-api.kt:56)

2.4.1 worked perfectly well.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (11 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, assuming you mean 2.4.5-SNAPSHOT, that version works in all of our tests.

Sorry, I’ll only be able to test that on Monday

I can give that a try

Why didn’t this trigger prior to 2.4.2?

Because in 2.4.2 a new feature was implemented - tail calls deoptimization. And it requires a little more classes to reflect. But I’m right now working on a workaround to fix that. So, the issue will be fixed in the next release