You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/PrimitiveInPatternsTest.java
+34-1
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ public class PrimitiveInPatternsTest extends AbstractRegressionTest9 {
29
29
static {
30
30
// TESTS_NUMBERS = new int [] { 1 };
31
31
// TESTS_RANGE = new int[] { 1, -1 };
32
-
// TESTS_NAMES = new String[] { "testIssue3505" };
32
+
// TESTS_NAMES = new String[] { "testIssue3535" };
33
33
}
34
34
privateStringextraLibPath;
35
35
publicstaticClass<?> testClass() {
@@ -7416,4 +7416,37 @@ public T get() {
7416
7416
"1");
7417
7417
}
7418
7418
7419
+
publicvoidtestIssue3535() {
7420
+
runConformTest(newString[] {
7421
+
"X.java",
7422
+
"""
7423
+
public class X {
7424
+
7425
+
static Integer getInteger() {
7426
+
return Integer.MIN_VALUE;
7427
+
}
7428
+
public int foo() {
7429
+
Integer i = 10;
7430
+
Y<Integer> f = new Y<>();
7431
+
f.put(X.getInteger()); // This makes all the difference
0 commit comments