From 10830eaae2955766378369b8d1bcc0e6963b9b7f Mon Sep 17 00:00:00 2001 From: Antonio Cunei Date: Fri, 15 May 2009 15:44:54 +0000 Subject: 1.4-related cleanup and reorganization. Removed a bunch of now useless 1.4 code, merged back jvm5-specific partest tests into the general jvm tests, documentation updates. --- test/files/jvm/t1461.scala | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/files/jvm/t1461.scala (limited to 'test/files/jvm/t1461.scala') diff --git a/test/files/jvm/t1461.scala b/test/files/jvm/t1461.scala new file mode 100644 index 0000000000..f0e3cea6cd --- /dev/null +++ b/test/files/jvm/t1461.scala @@ -0,0 +1,18 @@ + +object Test { + def main(args: Array[String]) { + val jl = classOf[Foo].getMethod("jl", classOf[Baz[_]]) + jl.getGenericParameterTypes // works fine + + val l = classOf[Foo].getMethod("l", classOf[Baz[_]]) + // By debugger inspection l.signature is (Ltest/Baz;)V + l.getGenericParameterTypes // throws GenericSignatureFormatError + } +} + +class Baz[T] + +class Foo { + def l(b: Baz[Long]) { } + def jl(b: Baz[java.lang.Long]) { } +} -- cgit v1.2.3