< prev index next >

test/langtools/jdk/jshell/TypeNameTest.java

Print this page
rev 52865 : [mq]: 8210031

*** 190,200 **** assertType("listOf(true).get(0)", "Boolean"); assertType("arrayOf(99)", "Integer[]"); assertType("arrayOf(99)[0]", "Integer"); assertEval("<Z> Z choose(Z z1, Z z2) { return z1; }"); ! assertType("choose(1, 1L);", "Number&Comparable<? extends Number&Comparable<?>>", "Object"); } public void testVariableTypeName() { assertType("\"x\"", "String"); --- 190,202 ---- assertType("listOf(true).get(0)", "Boolean"); assertType("arrayOf(99)", "Integer[]"); assertType("arrayOf(99)[0]", "Integer"); assertEval("<Z> Z choose(Z z1, Z z2) { return z1; }"); ! assertType("choose(1, 1L);", ! "Number&Comparable<? extends Number&Comparable<?>&java.lang.constant.Constable&java.lang.constant.ConstantDesc>&java.lang.constant.Constable&java.lang.constant.ConstantDesc", ! "Object"); } public void testVariableTypeName() { assertType("\"x\"", "String");
< prev index next >