Skip to content

Commit b0b684e

Browse files
committed
Update test case to changed JDK behavior
1 parent 84112e8 commit b0b684e

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)