You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem exists in trunk, but not in 2.7.4. The basic idea is that if I have a library A that doesn't use -optimise, and then I build a library B that extends a trait in library A with class C, and library B does use optimize, then the generated code is wrong and fails at runtime.
If they're all compiled together, it doesn't seem to be a problem.
Steps:
mkdir classes
scalac -d classes Tensor.scala
scalac -optimise -d classes DoubleCounter.scala
scala -cp classes/Welcome to Scala version 2.8.0.r0-b20090901205458 (JavaHotSpot(TM) 64-BitServerVM, Java1.6.0_07).
Type in expressions to have them evaluated.
Type:help for more information.
scala>newDoubleCounter()
java.lang.NoSuchMethodError:TensorSelfOp$$class.$$init$$(LTensorSelfOp;)V
at DoubleCounter.<init>(DoubleCounter.scala:1)
at .<init>(<console>:5)
at .<clinit>(<console>)
at RequestResult$$.<init>(<console>:4)
at RequestResult$$.<clinit>(<console>)
at RequestResult$$result(<console>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
at sun.reflect.NativeMethodAccessorImp...
There's a good chance this example could be made more minimal, but I'm not sure.
(Also, can we please have an -optimize alias for -optimise. Ignorant Americans and such 😄
The text was updated successfully, but these errors were encountered:
Problem exists in trunk, but not in 2.7.4. The basic idea is that if I have a library A that doesn't use -optimise, and then I build a library B that extends a trait in library A with class C, and library B does use optimize, then the generated code is wrong and fails at runtime.
If they're all compiled together, it doesn't seem to be a problem.
Steps:
There's a good chance this example could be made more minimal, but I'm not sure.
(Also, can we please have an -optimize alias for -optimise. Ignorant Americans and such 😄
The text was updated successfully, but these errors were encountered: