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
script fails with AbstractMethodError after 1st successful run #8433
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8433?orig=1
|
Phil Walker (philwalk9) said: |
Phil Walker (philwalk9) said: |
@adriaanm said: |
@som-snytt said: |
Phil Walker (philwalk9) said (edited on Mar 21, 2014 7:21:15 PM UTC): The tarball I sent by email to Adrian contains all files needed to reproduce the problem. It contains several required jar files, plus a scala script, and a shell script that creates the necessary command line. The comments in testrun.sh explain usage, and testrun.sh also unsets CLASSPATH to reduce environment side-effects. Here's my test command line (enforced by testrun.sh, but documented here as well): scala -cp javaxt-core.jar:joda-convert-1.5.jar:joda-time-2.3.jar:nscala-time_2.10-0.8.0.jar:vbloo.jar ./abstractMethodBug.sc abstractMethodBug.sc # the scala script vbloo.jar Let me know if I can assist further.
|
@adriaanm said: |
@adriaanm said: |
Phil Walker (philwalk9) said: |
@som-snytt said: |
@som-snytt said: |
Phil Walker (philwalk9) said: |
@gkossakowski said: |
@retronym said: |
@som-snytt said: |
@lrytz said: |
the following script succeeds once after being edited, but fails thereafter with java.lang.AbstractMethodError: Main$$anon$1$Strategy.updateRank(Ljava/lang/Object;Lscala/math/Numeric;)V
If trait Rankable is uncommented, the script works fine every time.
A (bad performance) workaround is to pass -nc in the hash-bang section:
exec scala -nc "$0"
The text was updated successfully, but these errors were encountered: