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 {
4
4
def main (args : Array [String ]): Unit = {
5
5
val objectB = classOf [Foo [Any ]].getClasses
6
6
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
9
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 )
9
11
else
10
- assert(returnType.toString == " Test$Foo$A<Test$Foo<T1>$B$> " )
12
+ assert(returnType.toString == out2 )
11
13
}
12
14
class Foo [T1 ] {
13
15
class A [T2 ]
You can’t perform that action at this time.
0 commit comments