-
Notifications
You must be signed in to change notification settings - Fork 21
2.9 regression: Java interop: in signature, primitive types become Object when generics are also present #4317
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
Comments
Imported From: https://issues.scala-lang.org/browse/SI-4317?orig=1 |
@SethTisue said: |
@SethTisue said: ~> scala/dists/latest/bin/scala -version
Scala code runner version 2.9.0.r24391-b20110306095638 -- Copyright 2002-2011, LAMP/EPFL
~> cat S.scala
object S { def foo(x: Class[_ <: AnyRef], y: Int) = 99 }
~> scala/dists/latest/bin/scalac S.scala
~> cat J.java
public class J {
public static void main(String[] args) {
int b = S.foo(String.class, 0);
System.out.println(b);
}
}
~> javac -classpath .:scala/dists/latest/lib/scala-library.jar J.java
~> java -classpath .:scala/dists/latest/lib/scala-library.jar J
Exception in thread "main" java.lang.NoSuchMethodError: S.foo(Ljava/lang/Class;Ljava/lang/Object;)I
at J.main(J.java:3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as of r24390:
The text was updated successfully, but these errors were encountered: