Skip to content

Commit 0a8e7c3

Browse files
lrytzadriaanm
authored andcommitted
[backport] Update test case to changed JDK behavior
cherry-picked from b0b684e
1 parent d209ff4 commit 0a8e7c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/files/run/t2873.check

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/files/run/t2873.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ abstract class RedBlack[A] extends Serializable {
55

66
object Test {
77
def main(args: Array[String]): Unit = {
8-
println(classOf[RedBlack[_]].getMethod("Empty").getGenericReturnType)
8+
val r = classOf[RedBlack[_]].getMethod("Empty").getGenericReturnType.toString
9+
// Output changed in JDK 1.8.0_172: https://github.com/scala/bug/issues/10835
10+
assert(r == "RedBlack<A>.Empty$" || r == "RedBlack<A>$Empty$", r)
911
}
1012
}

0 commit comments

Comments
 (0)