Revert "Work around a art test script bug mixing up bootclasspaths."
This reverts commit 437b54c730ab306208af5aa035b85c294d090024.
Reason for revert: This workaround should no longer be needed after CLs [1-2].
Bug: 70521453
Test: art/test/testrunner/run_build_test_target.py -j40 art-interpreter
[1] https://android-review.googlesource.com/c/platform/build/+/573902
[2] https://android-review.googlesource.com/c/platform/build/soong/+/578623
Change-Id: I09276cc5c2aae01dcd4a288881510d09ec144985
diff --git a/test/070-nio-buffer/src/Main.java b/test/070-nio-buffer/src/Main.java
index 86eb553..a3eeb3f 100644
--- a/test/070-nio-buffer/src/Main.java
+++ b/test/070-nio-buffer/src/Main.java
@@ -14,7 +14,6 @@
* limitations under the License.
*/
-import java.nio.Buffer;
import java.nio.BufferOverflowException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@@ -51,9 +50,9 @@
1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031
};
- ((Buffer) shortBuf).position(0);
+ shortBuf.position(0);
shortBuf.put(myShorts, 0, 32); // should work
- ((Buffer) shortBuf).position(0);
+ shortBuf.position(0);
shortBuf.put(myShorts, 16, 16); // should work
shortBuf.put(myShorts, 16, 16); // advance to end
@@ -65,7 +64,7 @@
}
try {
- ((Buffer) shortBuf).position(0);
+ shortBuf.position(0);
shortBuf.put(myShorts, 0, 33); // should fail
System.out.println("ERROR: out-of-bounds put succeeded\n");
} catch (IndexOutOfBoundsException ioobe) {
@@ -73,7 +72,7 @@
}
try {
- ((Buffer) shortBuf).position(16);
+ shortBuf.position(16);
shortBuf.put(myShorts, 0, 17); // should fail
System.out.println("ERROR: out-of-bounds put succeeded\n");
} catch (BufferOverflowException boe) {
@@ -94,13 +93,13 @@
int data[] = new int[25];
//FloatBuffer int1 = direct.asFloatBuffer();
//float data[] = new float[25];
- ((Buffer) int1).clear();
- int1.put(data);
- ((Buffer) int1).position(0);
-
- ((Buffer) int1).clear();
+ int1.clear ();
int1.put (data);
- ((Buffer) int1).position(0);
+ int1.position (0);
+
+ int1.clear ();
+ int1.put (data);
+ int1.position (0);
}
/*
@@ -120,7 +119,7 @@
}
static void storeValues(ByteBuffer directBuf) {
- ((Buffer) directBuf).position(0);
+ directBuf.position(0);
ShortBuffer shortBuf = directBuf.asShortBuffer();
CharBuffer charBuf = directBuf.asCharBuffer();
IntBuffer intBuf = directBuf.asIntBuffer();
@@ -158,7 +157,7 @@
throw new RuntimeException("double get/store failed");
}
- ((Buffer) directBuf).position(0);
+ directBuf.position(0);
char[] outBuf = new char[directBuf.limit() * 2];
for (int i = 0; i < directBuf.limit(); i++) {
byte b = directBuf.get();