1.1 --- a/rt/emul/compact/src/main/java/java/io/FileDescriptor.java Thu Oct 03 15:40:35 2013 +0200
1.2 +++ b/rt/emul/compact/src/main/java/java/io/FileDescriptor.java Thu Oct 03 17:36:44 2013 +0200
1.3 @@ -134,36 +134,6 @@
1.4 */
1.5 public native void sync() throws SyncFailedException;
1.6
1.7 - /* This routine initializes JNI field offsets for the class */
1.8 - private static native void initIDs();
1.9 -
1.10 - static {
1.11 - initIDs();
1.12 - }
1.13 -
1.14 - // Set up JavaIOFileDescriptorAccess in SharedSecrets
1.15 - static {
1.16 - sun.misc.SharedSecrets.setJavaIOFileDescriptorAccess(
1.17 - new sun.misc.JavaIOFileDescriptorAccess() {
1.18 - public void set(FileDescriptor obj, int fd) {
1.19 - obj.fd = fd;
1.20 - }
1.21 -
1.22 - public int get(FileDescriptor obj) {
1.23 - return obj.fd;
1.24 - }
1.25 -
1.26 - public void setHandle(FileDescriptor obj, long handle) {
1.27 - throw new UnsupportedOperationException();
1.28 - }
1.29 -
1.30 - public long getHandle(FileDescriptor obj) {
1.31 - throw new UnsupportedOperationException();
1.32 - }
1.33 - }
1.34 - );
1.35 - }
1.36 -
1.37 // package private methods used by FIS, FOS and RAF
1.38
1.39 int incrementAndGetUseCount() {