-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update NullRestrictedTypeOptTests to build with Valhalla lw5 #18275
Update NullRestrictedTypeOptTests to build with Valhalla lw5 #18275
Conversation
aad7747
to
b95db7a
Compare
c61e6b1
to
7590d45
Compare
test/functional/Valhalla/testng.xml
Outdated
@@ -47,7 +47,7 @@ | |||
</test> | |||
<test name="NullRestrictedTypeOptTests"> | |||
<classes> | |||
<class name="org.openj9.test.lworld.NullRestrictedTypeOptTests"/> | |||
<!--<class name="org.openj9.test.lworld.NullRestrictedTypeOptTests"/>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there will be more tests to be temporarily disabled ? If yes, it might be worth creating an issue to track these disabled tests and include the issue number here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or you can use the existing issue #18157 to list and track the disabled tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, should we keep the old versions of these tests alive while keywords like primitive
and the Q
signature prefix still work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both makes sense, we'll just have to be mindful of making sure any new tests get reflected in each set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we keep the old versions of these tests alive while keywords like primitive and the Q signature prefix still work?
Looks safer to me that we keep the old version alive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay I'll modify my pr to keep both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it so there is one version of NullRestrictedTypeOptTests in src_lw5 and one in src_qtypes with the idea that you could enable one or the other as needed. Of course src_lw5 doesn't work completely yet since there are many other tests that need updating. Let me know what you think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your change this looks good.
@@ -52,7 +54,7 @@ public EscapeException(Object o) { | |||
} | |||
|
|||
public static int result = 0; | |||
public static PrimPair[] parr = new PrimPair[] { new PrimPair(3, 4), new PrimPair(0, 0), new PrimPair(0, 0) }; | |||
public static PrimPair![] parr = new PrimPair[] { new PrimPair(3, 4), new PrimPair(0, 0), new PrimPair(0, 0) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm guessing that the right-hand side of the initialization should allocate a null-restricted array:
public static PrimPair![] parr = new PrimPair![] { new PrimPair(3, 4), new PrimPair(0, 0), new PrimPair(0, 0) };
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks you're right. I've updated the three you pointed out.
public static PrimPair![] parr = new PrimPair![] { new PrimPair(3, 4), new PrimPair(0, 0), new PrimPair(0, 0) };
gave an assertion error in the latest lw5 compiler so I declared it for now as
public static FlattenablePair![] parr = new FlattenablePair![3];
static {
/* This syntax is a workaround since initializing the values of a NullRestricted array during
* its declaration throws an assertion error in the lw5 compiler. */
parr[0] = new FlattenablePair(3, 4);
parr[1] = new FlattenablePair(0, 0);
parr[2] = new FlattenablePair(0, 0);
}
test/functional/Valhalla/src_lw5/org/openj9/test/lworld/NullRestrictedTypeOptTests.java
Outdated
Show resolved
Hide resolved
test/functional/Valhalla/src_lw5/org/openj9/test/lworld/NullRestrictedTypeOptTests.java
Outdated
Show resolved
Hide resolved
test/functional/Valhalla/testng.xml
Outdated
@@ -47,7 +47,7 @@ | |||
</test> | |||
<test name="NullRestrictedTypeOptTests"> | |||
<classes> | |||
<class name="org.openj9.test.lworld.NullRestrictedTypeOptTests"/> | |||
<!--<class name="org.openj9.test.lworld.NullRestrictedTypeOptTests"/>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, should we keep the old versions of these tests alive while keywords like primitive
and the Q
signature prefix still work?
The qtypes tests will be run by default. The lw5 tests are a work in progress to compile tests with the latest Valhalla compiler and eventually will replace the qtypes tests once qtypes are removed. Signed-off-by: Theresa Mammarella <[email protected]>
019f586
to
0d74c9a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
} | ||
|
||
// An array whose component type is a null-restricted value class | ||
public static NestedFlattenablePair![] nestedflattenablearr = new NestedFlattenablePair[] { new NestedFlattenablePair(11, 12, 13, 14) }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry - I missed this one the first time around. I think the right-hand side of this one needs to allocate a null-restricted array as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops thanks for that. I've updated this array.
0d74c9a
to
5e80e8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks!
There is a line ending check failure ? @theresa-m |
5e80e8d
to
c7f521f
Compare
The line ending check is passing now. |
Jenkins test sanity aixval jdknext |
Signed-off-by: Theresa Mammarella <[email protected]>
c7f521f
to
51d549a
Compare
Jenkins test sanity aixval jdknext |
Jenkins test sanity,extended winval jdknext |
Related to #18157