src/JavaVM.st
branchjk_new_structure
changeset 903 0c989d6972bc
parent 901 64a889b68bef
child 904 0403a07748ea
--- a/src/JavaVM.st	Wed Aug 10 14:10:23 2011 +0000
+++ b/src/JavaVM.st	Wed Aug 10 14:28:05 2011 +0000
@@ -3940,6 +3940,15 @@
     "Modified (format): / 10-08-2011 / 14:25:50 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+_java_io_FileOutputStream_openAppend: nativeContext
+
+    <javanative: 'java/io/FileOutputStream' name: 'openAppend'>
+
+        ^ self commonOpen:nativeContext forAppend:true
+
+    "Modified: / 7.4.1998 / 19:13:42 / cg"
+!
+
 _java_io_FileOutputStream_write: nativeContext
 
     <javanative: 'java/io/FileOutputStream' name: 'write'>
@@ -4715,7 +4724,10 @@
 
     <javanative: 'java/lang/Class' name: 'getProtectionDomain0'>
 
-    ^ UnimplementedNativeMethodSignal raise
+    ^(self reflection classForJavaClassObject: nativeContext receiver)
+        protectionDomain
+
+    "Modified: / 10-08-2011 / 15:19:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 _java_lang_Class_getRawAnnotations: aJavaContext
@@ -4920,6 +4932,16 @@
     "Created: / 20-10-2010 / 11:13:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+_java_lang_Class_setProtectionDomain0: nativeContext
+
+    <javanative: 'java/lang/Class' name: 'getProtectionDomain0'>
+
+    (self reflection classForJavaClassObject: nativeContext receiver)
+        protectionDomain: (nativeContext argAt:1)
+
+    "Created: / 10-08-2011 / 15:20:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+!
+
 _java_lang_Double_doubleToRawLongBits: aJavaContext
 
     <javanative: 'java/lang/Double' name: 'doubleToRawLongBits'>
@@ -7357,12 +7379,6 @@
     "Modified: / 4.2.1998 / 15:20:53 / cg"
 !
 
-_FileOutputStream_openAppend:nativeContext
-    ^ self commonOpen:nativeContext forAppend:true
-
-    "Modified: / 7.4.1998 / 19:13:42 / cg"
-!
-
 _File_canRead0:nativeContext
     |file path f|
 
@@ -13732,6 +13748,14 @@
     ^ self _WGraphics_pSetForeground:nativeContext
 ! !
 
+!JavaVM class methodsFor:'native - old-style (converted)'!
+
+_FileOutputStream_openAppend:nativeContext
+    ^ self commonOpen:nativeContext forAppend:true
+
+    "Modified: / 7.4.1998 / 19:13:42 / cg"
+! !
+
 !JavaVM class methodsFor:'native - sun.management'!
 
 _sun_management_VMManagementImpl_getVersion0: nativeContext