8000 upgrade asm to 5.1 by lrytz · Pull Request #5293 · scala/scala · GitHub
[go: up one dir, main page]

Skip to content

upgrade asm to 5.1 #5293

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

Merged
merged 1 commit into from
Jul 21, 2016
Merged

upgrade asm to 5.1 #5293

merged 1 commit into from
Jul 21, 2016

Conversation

lrytz
Copy link
Member
@lrytz lrytz commented Jul 20, 2016

No description provided.

@lrytz lrytz force-pushed the asm-51 branch 2 times, most recently from 734841b to 79abfc7 Compare July 20, 2016 18:12
@@ -258,7 +258,8 @@ class CoreBTypes[BTFS <: BTypesFromSymbols[_ <: Global]](val bTypes: BTFS) {
coreBTypes.jliMethodTypeRef,
ArrayBType(ObjectRef)),
coreBTypes.jliCallSiteRef
).descriptor)
).descriptor,
/* itf = */ false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coreBTypes.jliLambdaMetafactoryRef.isInterface.get ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, that looks cleaner

@varming
Copy link
Contributor
varming commented Jul 20, 2016

@lrytz LGTM. I have a similar branch and it works as intended.

The constructor of scala.tools.asm.Handle now takes an additional
boolean parameter to denote whether the owner is an interface.
@lrytz
Copy link
Member Author
lrytz commented Jul 20, 2016

@varming can you take another look?

@lrytz lrytz added this to the 2.12.0-RC1 milestone Jul 20, 2016
@varming
Copy link
Contributor
varming commented Jul 20, 2016

LGTM.

@adriaanm adriaanm merged commit 6b99dfe into scala:2.12.x Jul 21, 2016
@adriaanm adriaanm added the 2.12 label Oct 29, 2016
@lrytz lrytz deleted the asm-51 branch April 12, 2017 07:51
smarter added a commit to dotty-staging/scala that referenced this pull request Sep 17, 2017
The itf flag of `visitMethodInsn` and `Handle` in ASM needs to be true
when the method is defined in an interface. Java 8 ignores this but Java
9 fails at runtime with:
java.lang.IncompatibleClassChangeError: Method ... must beInterfaceMethodref constant

This commit is inspired by similar changes in scalac, in particular see
7d51b3f by Jason Zaugg
(from scala#5251) and
e619b03 by Lukas Rytz
(from scala#5293). This issue was also
discussed in scala#5452 (which does not
matter for Dotty since we do not run the backend optimizer).
smarter added a commit to lampepfl/scala that referenced this pull request Oct 12, 2017
The itf flag of `visitMethodInsn` and `Handle` in ASM needs to be true
when the method is defined in an interface. Java 8 ignores this but Java
9 fails at runtime with:
java.lang.IncompatibleClassChangeError: Method ... must beInterfaceMethodref constant

This commit is inspired by similar changes in scalac, in particular see
7d51b3f by Jason Zaugg
(from scala#5251) and
e619b03 by Lukas Rytz
(from scala#5293). This issue was also
discussed in scala#5452 (which does not
matter for Dotty since we do not run the backend optimizer).
allanrenucci added a commit to dotty-staging/dotty that referenced this pull request Nov 22, 2017
Original commit from Irytz: e619b033350a3378d650db4c3e5b1bfc83b73d81

Upgrade asm to 5.1

The constructor of scala.tools.asm.Handle now takes an additional
boolean parameter to denote whether the owner is an interface.
allanrenucci added a commit to scala/scala3 that referenced this pull request Nov 22, 2017
smarter added a commit to dotty-staging/scala that referenced this pull request Aug 23, 2018
The itf flag of `visitMethodInsn` and `Handle` in ASM needs to be true
when the method is defined in an interface. Java 8 ignores this but Java
9 fails at runtime with:
java.lang.IncompatibleClassChangeError: Method ... must beInterfaceMethodref constant

This commit is inspired by similar changes in scalac, in particular see
7d51b3f by Jason Zaugg
(from scala#5251) and
e619b03 by Lukas Rytz
(from scala#5293). This issue was also
discussed in scala#5452 (which does not
matter for Dotty since we do not run the backend optimizer).
smarter added a commit to dotty-staging/scala that referenced this pull request Aug 23, 2018
The itf flag of `visitMethodInsn` and `Handle` in ASM needs to be true
when the method is defined in an interface. Java 8 ignores this but Java
9 fails at runtime with:
java.lang.IncompatibleClassChangeError: Method ... must beInterfaceMethodref constant

This commit is inspired by similar changes in scalac, in particular see
7d51b3f by Jason Zaugg
(from scala#5251) and
e619b03 by Lukas Rytz
(from scala#5293). This issue was also
discussed in scala#5452 (which does not
matter for Dotty since we do not run the backend optimizer).
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

Successfully merging this pull request may close these issues.

4 participants
0