Skip to content

Commit

Permalink
Label disabled NullRestrictedTypeOptTests
Browse files Browse the repository at this point in the history
These tests cannot be expressed without an lw5 level javac. These
 will be enabled when tests are migrated to the src_lw5 versions
 which is related to #20268.

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
  • Loading branch information
theresa-m committed Nov 1, 2024
1 parent 76fbbfb commit 294d74f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,10 @@ public TestWithFieldStoreToNullRestrictedField(Object val) {
}
}

/* This test cannot be expressed without lw5 level javac.
* The test will be enabled when tests are migrated to src_lw5.
* https://github.com/eclipse-openj9/openj9/issues/20268
*/
@Test(enabled = false)
static public void testStoreNullValueToNullRestrictedInstanceField() throws Throwable {
TestStoreToNullRestrictedField storeFieldObj = new TestStoreToNullRestrictedField();
Expand All @@ -379,6 +383,10 @@ static public void testStoreNullValueToNullRestrictedInstanceField() throws Thro
Assert.fail("Expect a NullPointerException. No exception or wrong kind of exception thrown");
}

/* This test cannot be expressed without lw5 level javac.
* The test will be enabled when tests are migrated to src_lw5.
* https://github.com/eclipse-openj9/openj9/issues/20268
*/
@Test(enabled = false)
static public void testStoreNullValueToNullRestrictedStaticField() throws Throwable {
TestStoreToNullRestrictedField.replaceStaticField(new PrimPair(1, 2));
Expand All @@ -392,6 +400,10 @@ static public void testStoreNullValueToNullRestrictedStaticField() throws Throwa
Assert.fail("Expect a NullPointerException. No exception or wrong kind of exception thrown");
}

/* This test cannot be expressed without lw5 level javac.
* The test will be enabled when tests are migrated to src_lw5.
* https://github.com/eclipse-openj9/openj9/issues/20268
*/
@Test(enabled = false)
static public void testWithFieldStoreToNullRestrictedField() throws Throwable {
TestWithFieldStoreToNullRestrictedField withFieldObj = new TestWithFieldStoreToNullRestrictedField(new PrimPair(1, 2));
Expand Down

0 comments on commit 294d74f

Please sign in to comment.