publicstaticvoid main(String[] args) throws Exception {
test1(); // for bug 4475533
test2();
test3(); // for bug 4698138
}
// Test to see that offset > length does not throw exception staticvoid test1() throws Exception {
ByteBuffer[] dsts = new ByteBuffer[4]; for (int i=0; i<4; i++)
dsts[i] = ByteBuffer.allocateDirect(10);
// Test to see that the appropriate buffers are updated staticvoid test2() throws Exception {
File testFile = File.createTempFile("test2", null);
testFile.delete();
ByteBuffer[] srcs = new ByteBuffer[4]; for (int i=0; i<4; i++)
srcs[i] = ByteBuffer.allocateDirect(10);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.