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
Class file is broken (Vaadin) #7439
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7439?orig=1 |
@paulp said: https://issues.scala-lang.org/browse/SI-2464 I already fixed it, all you have to do is come up with a test. |
@retronym said:
|
@retronym said (edited on May 1, 2013 7:15:17 AM UTC): % tail A.java B.java C.scala
==> A.java <==
public class A {
}
==> B.java <==
public class B {
public void b(A[] a) {}
}
==> C.scala <==
class C {
new B
}
% javac *.java
% scalac *.scala
% rm A.class
% scalac29 *.scala
error: error while loading B, Missing dependency 'class A', required by ./B.class
one error found
% RUNNER=scalac scala-hash v2.10.0-M3~41 *.scala
[info] downloading http://scala-webapps.epfl.ch/artifacts/8a285258fdb37af9f4ba8ced0a5c8fb6fefbf62c/pack.tgz ...done.
[info] scala revision from 2012-04-18 11:29:42 +0100 downloaded to /Users/jason/usr/scala-v2.10.0-M2-649-g8a28525
[info] v2.10.0-M3 => /Users/jason/usr/scala-v2.10.0-M2-649-g8a28525
warning: Class A not found - continuing with a stub.
one warning found
% RUNNER=scalac scala-hash v2.10.0-M3~40 *.scala
[info] downloading http://scala-webapps.epfl.ch/artifacts/016bc3db52d6f1ffa3ef2285d5801f82f5f49167/pack.tgz ...done.
[info] scala revision from 2012-04-18 14:59:22 +0100 downloaded to /Users/jason/usr/scala-v2.10.0-M2-650-g016bc3d
[info] v2.10.0-M3 => /Users/jason/usr/scala-v2.10.0-M2-650-g016bc3d
warning: Class A not found - continuing with a stub.
error: error while loading B, class file './B.class' is broken
(class java.lang.NullPointerException)
one warning found
one error found
% RUNNER=scalac scala-hash v2.10.1 *.scala
[info] v2.10.1 => /Users/jason/usr/scala-v2.10.1-0-g77b864e
warning: Class A not found - continuing with a stub.
error: error while loading B, class file './B.class' is broken
(class java.lang.NullPointerException/)
one warning found
one error found The NPE crept in here: https://github.com/scala/scala/commit/v2.10.0-M3~40#L2L721 |
@retronym said: |
kenji yoshida said: |
Youlian Troyanov (youlian) said: Latest Scala 2.11-SNAPSHOT as of today gives me "the stub" issue in compiling Scaladin. [info] Compiling 1 Scala source to /home/test/repos/henrikerola/scaladin/demo/target/scala-2.11/classes... I would like the combo Vaadin+Scala to have a future. |
@retronym said: |
I am trying to compile Vaadin 7.0.5 using Scala 2.10.1.
Vaadin dependency is
"com.vaadin" % "vaadin-server" % "7.0.5"
I get the following error
[error] error while loading VaadinRequest, class file '/Users/nestor/.ivy2/cache/com.vaadin/vaadin-server/jars/vaadin-server-7.0.5.jar(com/vaadin/server/VaadinRequest.class)' is broken [error] (class java.lang.NullPointerException/)
The text was updated successfully, but these errors were encountered: