Skip to content

Fix bridge generation for object definitions #4435

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
May 2, 2018

Conversation

odersky
Copy link
Contributor

@odersky odersky commented May 2, 2018

We did not generate a bridge if the overriding definition was a static object.
This caused AbstractMethodError crashes at run time.

We did not generate a bridge of the overriding definition was a static object.
This caused AbstractMethodError crashes at run time.
@@ -542,6 +542,9 @@ object Flags {
/** Either method or lazy */
final val MethodOrLazy = Method | Lazy

/** Either method or module */
final val MethodOrModule = Method | Module
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need to define a new one for only one use?

Copy link
Contributor Author

@odersky odersky May 2, 2018

Choose a reason for hiding this comment

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

It's slightly more efficient that way. The | computation takes time, it's not just a simple bitwise |.

@odersky odersky merged commit dfab5e5 into scala:master May 2, 2018
@allanrenucci allanrenucci deleted the fix-bridge branch May 2, 2018 09:37
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.

2 participants