-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: None
-
Component/s: core-libs
-
None
-
b131
-
generic
-
generic
As shown by the output of JDK-8161665 test code, long/Long operands are treated optimistically in strict equality operators. This should not be the case as the original type of operands must be preserved in ===/!== (similar to the typeof and instanceof operators).
https://bugs.openjdk.java.net/browse/JDK-8161665?focusedCommentId=13975389&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13975389
https://bugs.openjdk.java.net/browse/JDK-8161665?focusedCommentId=13975389&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13975389