Skip to content

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