Skip to content
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

Build the tests with release=8 whenever it is possible #489

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions openjdk.test.mauve/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ limitations under the License.
<exclude name="/junit/textui/*.java" />
</depend>
-->
<!-- The test cases are built with source="1.8" and target="1.8" because they need packages
which have been moved into madules which are not visible by default in Java 9. -->
<!-- The test cases are built with release="8" if supported by the compiler,
otherwise with source="1.8" and target="1.8". -->
<javac srcdir="${openjdk_test_mauve_src_dir}"
destdir="${openjdk_test_mauve_src_dir}"
release="8"
source="1.8"
target="1.8"
fork="true"
Expand All @@ -124,6 +125,23 @@ limitations under the License.
<exclude name="**/junit/framework/*.java" />
<exclude name="/junit/runner/*.java" />
<exclude name="/junit/textui/*.java" />
<exclude name="**/gnu/testlet/java/lang/Class/classInfo/getDeclaredMethod.java" />
</javac>
<!-- The file gnu/testlet/java/lang/Class/classInfo/getDeclaredMethod.java is built with
source="1.8" and target="1.8" because it requires sun.reflect.annotation.AnnotationType
that is in module not visible by default in Java 9 and later when using release=8. -->
<javac srcdir="${openjdk_test_mauve_src_dir}"
destdir="${openjdk_test_mauve_src_dir}"
source="1.8"
target="1.8"
fork="true"
executable="${java_compiler}"
classpathref="project.class.path"
debug="true"
encoding="${src-encoding}"
includeantruntime="false"
failonerror="true">
<include name="**/gnu/testlet/java/lang/Class/classInfo/getDeclaredMethod.java" />
</javac>
</target>

Expand Down