-
Notifications
You must be signed in to change notification settings - Fork 21
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
AbstractMethodError when implementing abstract @varargs method #9013
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9013?orig=1 |
Joseph K Bradley (jkbradley) said: |
@retronym said (edited by @adriaanm on Jun 11, 2015 12:50:41 PM UTC): |
Reynold Xin (rxin) said: |
@adriaanm said: |
Michael Rüegg (mrueegg) said: |
Reid Spencer (reactific) said: |
@adriaanm said: |
fails with an
AbstractMethodError
when the method is called from Java like this:See more examples in this file:
https://github.com/jrudolph/scala-broken-java-varargs/blob/master/src/test/java/example/Test.java
I first thought that this was related to #1459 but I know think it is a separate issue. It seems the main problem is that the forwarder in
VarargAbstractClass
is created asabstract
because in Uncurry flags from the original method are just copied to the forwarder method. Clearing theDEFERRED
flag for the forwarder method seems to fix this issue for me (but I didn't run the complete test suite to look for other problems).The text was updated successfully, but these errors were encountered: