Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IllegalArgumentException on synthetic class generated by macros #35

Closed
eed3si9n opened this issue Oct 2, 2023 · 0 comments
Closed

IllegalArgumentException on synthetic class generated by macros #35

eed3si9n opened this issue Oct 2, 2023 · 0 comments

Comments

@eed3si9n
Copy link
Contributor

eed3si9n commented Oct 2, 2023

steps

Run jarjar on the latest commit

problem

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
Exception in thread "main" java.io.IOException: Unable to transform com/abc/Foo$anon$familyFormat$macro$666$1.class
	at com.github.johnynek.jarjar.util.JarTransformer.process(JarTransformer.java:41)
	at com.github.johnynek.jarjar.util.JarProcessorChain.process(JarProcessorChain.java:38)
	at com.github.johnynek.jarjar.MainProcessor.process(MainProcessor.java:118)
	at com.github.johnynek.jarjar.util.StandaloneJarProcessor.run(StandaloneJarProcessor.java:46)
	at com.github.johnynek.jarjar.Main.process(Main.java:96)
	at java.lang.reflect.Method.invoke(Method.java:566)
	at com.github.johnynek.jarjar.MainUtil.runMain(MainUtil.java:37)
	at com.github.johnynek.jarjar.Main.main(Main.java:50)
Caused by: java.lang.IllegalArgumentException
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:249)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.parseType(SignatureReader.java:240)
	at org.objectweb.asm.signature.SignatureReader.acceptType(SignatureReader.java:140)
	at org.objectweb.asm.commons.Remapper.mapSignature(Remapper.java:213)
	at org.objectweb.asm.commons.ClassRemapper.visitField(ClassRemapper.java:173)
	at org.objectweb.asm.ClassVisitor.visitField(ClassVisitor.java:356)
	at org.objectweb.asm.commons.ClassRemapper.visitField(ClassRemapper.java:169)
	at org.objectweb.asm.ClassReader.readField(ClassReader.java:1137)
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:739)
	at org.objectweb.asm.ClassReader.accept(ClassReader.java:424)
	at com.github.johnynek.jarjar.util.JarTransformer.process(JarTransformer.java:39)

notes

I think this is one of the cases already fixed in Jar Jar Abrams - eed3si9n/jarjar-abrams#30

@eed3si9n eed3si9n closed this as completed Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant