JavaNativeMethodImpl_OpenJDK6.st
branchdevelopment
changeset 2732 7d1a1fb5b01a
parent 2730 272689c14005
parent 2731 13f5be2bf83b
child 2773 718fab8ca4cf
--- a/JavaNativeMethodImpl_OpenJDK6.st	Sun Sep 15 01:02:01 2013 +0100
+++ b/JavaNativeMethodImpl_OpenJDK6.st	Sun Sep 15 02:16:13 2013 +0100
@@ -8432,7 +8432,7 @@
     FileIOTrace ifTrue:[
         ('JAVA: getFilePointer on ' , file pathName) infoPrintCR.
     ].
-    ^file position0Based
+    ^file position
 
     "Modified: / 06-07-2012 / 12:40:54 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
@@ -8587,7 +8587,6 @@
 !
 
 _java_io_RandomAccessFile_seek: this _:a1 _: a2
-
     <javanative: 'java/io/RandomAccessFile' name: 'seek(J)V'>
 
         |file pos|
@@ -8599,7 +8598,7 @@
     ].
 
     pos := a1.
-    file position0Based:pos
+    file position:pos
 
     "Created: / 04-02-1998 / 13:25:38 / cg"
     "Modified (comment): / 06-07-2012 / 12:39:27 / Jan Vrany <jan.vrany@fit.cvut.cz>"
@@ -19765,7 +19764,6 @@
 !
 
 _sun_nio_ch_FileChannelImpl_position0: this _:a1 _: a2 _: a3
-
     <javanative: 'sun/nio/ch/FileChannelImpl' name: 'position0(Ljava/io/FileDescriptor;J)J'>
 
     | fd position stream |
@@ -19778,8 +19776,8 @@
         ^nil.
     ].
     ^position = -1
-        ifTrue:[stream position0Based]
-        ifFalse:[stream position0Based: position. 0].
+        ifTrue:[stream position]
+        ifFalse:[stream position: position. 0].
 
     "Modified: / 10-07-2012 / 01:30:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
@@ -19792,7 +19790,6 @@
 !
 
 _sun_nio_ch_FileChannelImpl_size0: this _:a1
-
     <javanative: 'sun/nio/ch/FileChannelImpl' name: 'size0(Ljava/io/FileDescriptor;)J'>
 
     | fd stream |
@@ -19803,7 +19800,7 @@
         JavaVM throwIOExceptionWithMessage:'Not a file stream'.
         ^nil.
     ].
-    ^stream fileSize max: stream position0Based.
+    ^stream fileSize max: stream position.
 
     "Modified: / 10-07-2012 / 01:28:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
@@ -21319,20 +21316,18 @@
     ^ JavaVM unimplementedNativeMethodSignal raise
 ! !
 
-!JavaNativeMethodImpl_OpenJDK6 class methodsFor:'others'!
+!JavaNativeMethodImpl_OpenJDK6 class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/libjava/JavaNativeMethodImpl_OpenJDK6.st,v 1.6 2013-09-06 00:41:24 vrany Exp $'
+!
+
+version_CVS
+    ^ '$Header: /cvs/stx/stx/libjava/JavaNativeMethodImpl_OpenJDK6.st,v 1.6 2013-09-06 00:41:24 vrany Exp $'
+!
 
 version_HG
 
     ^ '$Changeset: <not expanded> $'
 ! !
 
-!JavaNativeMethodImpl_OpenJDK6 class methodsFor:'documentation'!
-
-version
-    ^ '$Header: /cvs/stx/stx/libjava/JavaNativeMethodImpl_OpenJDK6.st,v 1.4 2013-04-27 12:29:56 cg Exp $'
-!
-
-version_CVS
-    ^ '$Header: /cvs/stx/stx/libjava/JavaNativeMethodImpl_OpenJDK6.st,v 1.4 2013-04-27 12:29:56 cg Exp $'
-! !
-