-
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
Stop shading ASM? #1198
Comments
sgtm, i believe the reason it's shaded is because historically asm was very binary incompatible with prior releases... but i think they changed that as of recent releases. |
That comment from @mcculls might be relevant here as well:
|
I don't think thing it's sufficient to not shade ASM, since the API level will also need to be updated to support new class file versions:
|
And for experimental support of JDK11 in Guice it could only use experimental https://gitlab.ow2.org/asm/asm/blob/master/asm/src/main/java/org/objectweb/asm/Opcodes.java#L55 |
Done in this PR #1203. With this diff Gerrit can be built with JDK11, with Bazel and with VanillaJavaBuilder (https://gerrit-review.googlesource.com/c/gerrit/+/194040):
|
BTW: asm 6.2.1 is available |
as others have mentioned, not shading asm won't actually resolve this since the code will need to change (both in guice & cglib) to support the newer JDK features. |
@sameb Since you are here: Any ETA? |
if you ping this thread the day asm7 is released, i'll try to release a new cglib & guice same day or next day (assuming no unexpected problems arise). |
@sameb Great, thanks! I will ping you for sure 😄 |
This update includes upgrade of ASM dependency to 6.2.1 that is required for JDK 10 support. Gerrit is already using the right version of ASM library, but Guice is shading ASM in distribution. There is a feature request to stop shading ASM in Guice: [1], but it's not easily doable, because Guice needs to specify ASM version it's using internally. [1] google/guice#1198 Change-Id: If14990d81ee79c38307b94514fcbb07118f66111
Ping @sameb - ASM 7 is out! See #1205 (comment) |
ASM 8.0.1 available. |
Per #1169 (comment), maybe it's time to stop shading ASM?
That will allow people to bring their own copy of ASM if they so choose, and will unblock them when new versions of the JDK come out and Guice hasn't updated yet. We'd obviously provide a default in our maven pom for those that aren't ahead of the game. This could be helpful as the JDK continues its 6-month release cadence.
The text was updated successfully, but these errors were encountered: