Work around a art test script bug mixing up bootclasspaths.
art/test/testrunner/run_build_test_target.py -j40 art-interpreter
compiles tests against the default toolchain (eg. OpenJDK) core
libraries but runs them against libcore.
This is a bug because the default toolchain API may differ from
libcore's; specifically, before this CL, 070-nio-buffer breaks
when the default toolchain is OpenJDK 9.
This CL works around that bug specifically by avoiding use of
OpenJDK9 covariant overrides that aren't in libcore.
For example, IntBuffer#clear->IntBuffer does not exist (but
Buffer#clear->Buffer does).
After this CL, 070-nio-buffer passes when run under OpenJDK 9.
This CL can be reverted when the test runner scripts are fixed
in a future CL.
Bug: 70521453
Test: export EXPERIMENTAL_USE_OPENJDK9=1.8 && \
art/test/testrunner/run_build_test_target.py -j40 art-interpreter
Test: export EXPERIMENTAL_USE_OPENJDK9=false && \
art/test/testrunner/run_build_test_target.py -j40 art-interpreter
Change-Id: I463716906f48d1ecf6b9892f2d793dd75f2619eb
1 file changed