Skip to content

Commit

Permalink
Merge pull request #18275 from theresa-m/lw5_nullrestricted_tests
Browse files Browse the repository at this point in the history
Update NullRestrictedTypeOptTests to build with Valhalla lw5
  • Loading branch information
hangshao0 authored Oct 19, 2023
2 parents 7cf716a + 51d549a commit dc28d58
Show file tree
Hide file tree
Showing 3 changed files with 433 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/Valhalla/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

<!--Properties for this particular build-->
<property name="src" location="./src"/>
<!-- Tests that need the Valhalla lw5 branch to compile. Once this is merged to the main branch this seperation won't be required.-->
<property name="src_qtypes" location="./src_qtypes"/>
<property name="src_lw5" location="./src_lw5"/>
<property name="build" location="./bin"/>
<property name="transformerListener" location="${TEST_ROOT}/Utils/src"/>
<property name="LIB" value="asm,jcommander,testng"/>
Expand All @@ -54,6 +57,9 @@
<echo>===destdir: ${DEST}</echo>
<javac srcdir="${src}" destdir="${build}" debug="true" fork="true" executable="${compiler.javac}" encoding="ISO-8859-1">
<src path="${src}"/>
<!-- uncomment when running with the latest Valhalla compiler (currently in lw5 branch but will eventually be merged)-->
<src path="${src_qtypes}"/>
<!-- <src path="${src_lw5}"/> -->
<src path="${transformerListener}" />
<compilerarg line='--add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports java.base/jdk.internal.value=ALL-UNNAMED' />
<compilerarg line='-source 22 -XDenablePrimitiveClasses' />
Expand Down
Loading

0 comments on commit dc28d58

Please sign in to comment.