File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
tests/generic-java-signatures Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ object Test {
44 def main (args : Array [String ]): Unit = {
55 val objectB = classOf [Foo [Any ]].getClasses
66 val returnType = objectB(1 ).getDeclaredMethod(" m" ).getGenericReturnType.asInstanceOf [ParameterizedType ]
7+ val out1 = " Test$Foo.Test$Foo$A<Test.Test$Foo<T1>.B$>" // Windows and OSX
8+ val out2 = " Test$Foo$A<Test$Foo<T1>$B$>" // Linux and sometimes Windows
79 if (scala.util.Properties .isWin)
8- assert(returnType.toString == " Test$Foo.Test$Foo$A<Test.Test$Foo<T1>.B$> " )
10+ assert(returnType.toString == out1 || returnType.toString == out2 )
911 else
10- assert(returnType.toString == " Test$Foo$A<Test$Foo<T1>$B$> " )
12+ assert(returnType.toString == out2 )
1113 }
1214 class Foo [T1 ] {
1315 class A [T2 ]
You can’t perform that action at this time.
0 commit comments