Skip to content

Instantly share code, notes, and snippets.

@joune
Created December 22, 2015 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joune/494f7bba4c6889572bb4 to your computer and use it in GitHub Desktop.
Save joune/494f7bba4c6889572bb4 to your computer and use it in GitHub Desktop.
scala/java interop AbstractMethodError
interface H<C> {
String h(C c, String... args);
}
class Impl extends H[String] {
override def h(s:String, args:String*) = args.toList.mkString
}
public class test {
public static void main(String[] args) throws Exception {
H h = new Impl();
use(h);
}
public static void use(H h) {
out.println(h.h("a", "b", "c"));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment