mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
ConstantExpressionVisitor fixes
1. Relational operators are promoted according to JLS, not always to double type (IDEA-199775) 2. Casting to boxed type is disabled, as JLS 15.28 suggests Result of boxed comparison like (Long)128L == (Long)128L is unknown now as size of boxing cache is not specified in JLS
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
// "Replace '0x7fffffffffffffffL == 0x7ffffffffffffffeL' with constant value 'false'" "true"
|
||||
class Test {
|
||||
boolean result = false;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
// "Replace '0x7fffffffffffffffL == 0x7ffffffffffffffeL' with constant value 'false'" "true"
|
||||
class Test {
|
||||
boolean result = 0x7fffffffffffffffL<caret> == 0x7ffffffffffffffeL;
|
||||
}
|
||||
Reference in New Issue
Block a user