Skip to content

Commit

Permalink
8341657: [lworld] some valhalla tests are failing after fix for JDK-8…
Browse files Browse the repository at this point in the history
…341182
  • Loading branch information
Vicente Romero committed Oct 7, 2024
1 parent b2e2691 commit 9553af7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/jdk/valhalla/valuetypes/Nest.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,6 @@
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class Nest {
static interface I {
String toString();
}

static I of(int value, Object next) {
// anonymous class capturing outer locals
return new value I() {
public String toString() {
return value + " -> " + next;
}
};
}

@Test
public void test1() {
assertEquals(Nest.of(1, null), Nest.of(1, null));
assertNotEquals(Nest.of(1, null), Nest.of(2, null));
}

@Test
public void test2() {
Outer n = new Outer(1);
Expand Down

0 comments on commit 9553af7

Please sign in to comment.