-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Bump asm version to 6.2 for JDK 10/11 support #1169
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here (e.g. What to do if you already signed the CLAIndividual signers
Corporate signers
|
Try "I signed it!" - the bot may not be smart enough to detect "we" |
CLAs look good, thanks! |
Is there anything I can do to speed up the process of getting this to master? ;) |
Getting this merged would be really really great! 👍 |
this looks reasonable, but can someone please clarify what about JDK10 fails w/ guice? also, can someone update the travis config to run over jdk10 too? @netdpb i think the preferred way to do PRs now is to submit them internally w/ MOE (which i think has a way to pull in PRs and retain the author metadata?) and then push it back out. @ronshapiro might know. |
@sameb asm's ClassReader will simply fail to read .class files with bytecode of 54.0 version. Travis doesn't have oraclejdk10 and openjdk10 targets yet. ;( |
Any update on this? |
FYI: ASM 6.2 released with better JDK 10 support and even with JDK 11 support already! |
+1 for ASM 6.2 |
Any update on the timeline for this to make it into a release? Would be great to be able to use guice on newer JVMs. |
We have run into a bumps in the road in upgrading this, but we are working on resolving them |
Would it make sense to recommend that users bring their own copy of ASM if they care about the Java version they want to support? Is this simply just adding a different version of the library on the classpath? |
Is there a actually a reason why Guice bundles asm in the final package? Why not keep it as normal dependency so users can just override it? |
I believe the historical reason was the ASM did not guarantee compatibility
between releases, so shading it was effectively required. I think as the
past few ASM releases, that's not true anymore... so perhaps we can stop
shading asm?
…On Wed, Jun 6, 2018 at 10:04 AM Matthias Kurz ***@***.***> wrote:
Is there a actually a reason why Guice bundles the asm in the final
package? Why not keep it as normal dependency so users can just override it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1169 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACC7Eu-NYbalDW3towa0_uAWxVY0Tx2Eks5t5-FxgaJpZM4S_RsH>
.
|
Note that the build already produces a version of Guice that doesn't bundle asm or cglib: http://repo1.maven.org/maven2/com/google/inject/guice/4.2.0/guice-4.2.0-classes.jar This is a jar of the Guice classes before any JarJar'ing. Also if you don't need AOP then there's the "no_aop" jar which doesn't use asm/cglib at all: http://repo1.maven.org/maven2/com/google/inject/guice/4.2.0/guice-4.2.0-no_aop.jar |
This is great. |
Any update on when can we expect jdk 10, 11 supported release? |
Below exception on startup with 4.2 release + JDK 10 Any update on the release? Caused by: java.lang.IllegalArgumentException |
@prodsey this is original issue :) |
thanks @svrakitin any ETA on when this will be released? I tried with any other way I can start testing with JDK 10? |
Facing the same issue after applying the suggested fixes. Caused by: java.lang.IllegalArgumentException |
@prodsey what was the error you had with the 'no_aop' jar? That doesn't use ASM or CGLIB at all, but at the same time you won't have access to any AOP features such as method interception. If you're still seeing ASM related errors with the 'no_aop' jar then check your classpath in case it contains another version of Guice. If you want to try Guice with AOP and a different version of ASM/CGLIB then you should take the [classifier]classes[/classifier] jar and add ASM 6.2 and CGLIB 3.2.6 as separate dependencies. Again making sure the original Guice jar isn't being dragged onto the same project classpath. ( of course an official release with this version bump would also be appreciated! ) |
@mcculls I do not see [classifier]classes[/classifier] option in below link I agree, an official release with JDK 10,11 support will definitely help. @sameb |
@mcculls I guess this is a good option till the official release right? Do you see any downside? |
No description provided.