summaryrefslogtreecommitdiff
path: root/test/958-methodhandle-stackframe/src-art/Main.java
AgeCommit message (Collapse)Author
2017-06-22test: Fix 956-methodhandle-stackframe for javac/dxIgor Murashkin
javac apparently doesn't like to use #invoke and #invokeExact through a MethodHandle subclass. This seems allowed by JLS so perhaps it might be a javac bug? Bug: 36902714 Test: art/test/run-test --host --build-with-javac-dx 958-methodhandle-stackframe Change-Id: I6c3559502a6a84b4bc2ad884bbbd9d942c5bca94
2017-06-21test: enable javac/dx to import libcore on the bootclasspathIgor Murashkin
Fixes 12 tests with javac/dx. Previously, javac with the default bootclasspath (unspecified) was used, meaning that it would usually pickup rt.jar from a developer's JDK system install. With javac-helper.sh, libcore is used for the javac -bootclasspath, enabling art tests to load libcore-specific packages such as libcore or dalvik (in particular, it uses the output of art/tools/bootjars.sh which calculates the correct bootclasspath from the build artifacts). To get libcore on the bootclasspath, source files must be placed in a 'art/test/$TESTNAME/src-art' directory. Otherwise the old behavior is kept to encourage tests to be cross-platform compatible. The minimal set of tests that relied on 'import dalvik/import libcore' had their src directories renamed to src-art, and are now building successfully. Test: ANDROID_COMPILE_WITH_JACK=false art/test.py Bug: 36902714 Change-Id: Iafd245de9e04c312c5ac107897e34d7b97191726