Reema Taneja created NETBEANS-1156:
--------------------------------------
Summary: Testcase broken with nb-javac 11 uptake : in j.s.b
TypeMirrorHandleTest
Key: NETBEANS-1156
URL: https://issues.apache.org/jira/browse/NETBEANS-1156
Project: NetBeans
Issue Type: Bug
Reporter: Reema Taneja
Assignee: Reema Taneja
[junit] Testcase:
testTypeMirrorHandle196070(org.netbeans.api.java.source.TypeMirrorHandleTest):
FAILED
In this test,
assertTrue(info.getTypes().isSameType(tm,
TypeMirrorHandle.create(tm).resolve(info)));
fails because of change in isSameType(Type t, Type s) in
jdk.compiler/share/classes/com/sun/tools/javac/code/Types.java
In JDK 10 for t.getTag() == TypeTag.TypeVar, this method reurned true (return
tv1.tsym == tv2.tsym && checkSameBounds(tv1, tv2))
In JDK 11, this method returns false because above check is replaced by return
t == s;
Sent mail to JDK team for confirming if it's JDK issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists