File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/generic-java-signatures Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ 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
7+ val out1 = " Test$Foo.Test$Foo$A<Test.Test$Foo<T1>.B$>" // Windows
8+ val out2 = " Test$Foo$A<Test$Foo<T1>$B$>" // Linux, OSX and sometimes Windows
99 if (scala.util.Properties .isWin)
1010 assert(returnType.toString == out1 || returnType.toString == out2)
11- else if (scala.util.Properties .isMac)
12- assert(returnType.toString == out1, s " $returnType != $out1" )
1311 else
1412 assert(returnType.toString == out2)
1513 }
You can’t perform that action at this time.
0 commit comments