Can not relocate class: JDK8 compatibility #97

Closed
supercarl87 opened this Issue Sep 25, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@supercarl87

Hi ,

I tried to relocate a class using this plugin. I got the error below. Does this plugin work with JDK 8?
I am using
com.github.jengelman.gradle.plugins:shadow:1.1.1
Gradle 2.0
JDK 8

ex
java.lang.IllegalArgumentException
at org.objectweb.asm.ClassReader.(Unknown Source)
at org.objectweb.asm.ClassReader.(Unknown Source)
at org.objectweb.asm.ClassReader.(Unknown Source)
at sun.reflect.GeneratedConstructorAccessor240.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.remapClass(ShadowCopyAction.groovy:238)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.this$2$remapClass(ShadowCopyAction.groovy)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction$this$2$remapClass$5.callCurrent(Unknown Source)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.remapClass(ShadowCopyAction.groovy:226)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.this$2$remapClass(ShadowCopyAction.groovy)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction$this$2$remapClass$7.callCurrent(Unknown Source)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.visitArchiveFile(ShadowCopyAction.groovy:206)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.this$2$visitArchiveFile(ShadowCopyAction.groovy)
at sun.reflect.GeneratedMethodAccessor523.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:368)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$_StreamAction_processArchive_closure3.doCall(ShadowCopyAction.groovy:185)

@johnrengelman

This comment has been minimized.

Show comment
Hide comment
@johnrengelman

johnrengelman Oct 28, 2014

Owner

I suspect that a newer version of ASM is required for JDK8 compatibility.

Owner

johnrengelman commented Oct 28, 2014

I suspect that a newer version of ASM is required for JDK8 compatibility.

@johnrengelman johnrengelman added this to the 2.0.0 milestone Oct 28, 2014

@johnrengelman johnrengelman changed the title from Can not relocate class to Can not relocate class: JDK8 compatibility Oct 28, 2014

@johnrengelman johnrengelman modified the milestones: 1.2.0, 2.0.0 Nov 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment