Test java/nio/channels/FileChannel/BlockDeviceSize.java might fail with java.lang.RuntimeException: size differs when retrieved in different ways: 1073741824 != 0
at BlockDeviceSize.main(BlockDeviceSize.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:520)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:804)
at BlockDeviceSize.main(BlockDeviceSize.java:49)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:520)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
at java.lang.Thread.run(Thread.java:804)
- duplicates
-
JDK-8266610 Method RandomAccessFile#length() returns 0 for block devices on linux.
- Closed
- relates to
-
JDK-8278172 java/nio/channels/FileChannel/BlockDeviceSize.java should only run on Linux
- Resolved