JavaNativeMethodImpl_OpenJDK7.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 20 Feb 2013 23:36:32 +0000
branchdevelopment
changeset 2381 5dea0cfb9426
parent 2380 9195eccdcbd9
parent 2378 7b724ff1af94
child 2429 ebece4dcaab9
permissions -rw-r--r--
Merged 9195eccdcbd9 and 13b1fc3fa090
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2041
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     1
"
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     2
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     3
                            SWING Research Group, Czech Technical University in Prague
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     4
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    10
 hereby transferred.
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    11
"
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    12
"{ Package: 'stx:libjava' }"
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    13
2380
9195eccdcbd9 Merged 08505399cea8 and 0adf7bbcf2c9 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069 2353
diff changeset
    14
JavaNativeMethodImpl_OpenJDK6 subclass:#'JavaNativeMethodImpl_OpenJDK7'
2041
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    15
	instanceVariableNames:''
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    16
	classVariableNames:''
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    17
	poolDictionaries:'JavaVMData'
2041
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    18
	category:'Languages-Java-Support-OpenJDK7'
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    19
!
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    20
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    21
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'documentation'!
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    22
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    23
copyright
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    24
"
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    25
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    26
                            SWING Research Group, Czech Technical University in Prague
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    27
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    33
 hereby transferred.
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    34
"
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    35
! !
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    36
2380
9195eccdcbd9 Merged 08505399cea8 and 0adf7bbcf2c9 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069 2353
diff changeset
    37
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    38
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.io'!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    39
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    40
_java_io_FileOutputStream_open: this _: a1 _: a2 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    41
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    42
    <javanative: 'java/io/FileOutputStream' name: 'open(Ljava/lang/String;Z)V'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    43
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    44
    ^ JavaVM unimplementedNativeMethodSignal raise
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    45
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    46
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    47
_java_io_FileOutputStream_write: this _: a1 _: a2 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    48
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    49
    <javanative: 'java/io/FileOutputStream' name: 'write(IZ)V'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    50
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    51
    ^ JavaVM unimplementedNativeMethodSignal raise
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    52
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    53
2050
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    54
_java_io_FileOutputStream_writeBytes: this _:bytes _: offset _: count _: append
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    55
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    56
    <javanative: 'java/io/FileOutputStream' name: 'writeBytes([BIIZ)V'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    57
2050
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    58
    ^ self anyStream_write: this bytes: bytes offset: offset count: count append: append == 1.
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    59
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    60
    "Modified: / 08-02-2013 / 11:57:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    61
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    62
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    63
_java_io_UnixFileSystem_createFileExclusively: this _: a1 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    64
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    65
    <javanative: 'java/io/UnixFileSystem' name: 'createFileExclusively(Ljava/lang/String;)Z'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    66
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    67
    ^ JavaVM unimplementedNativeMethodSignal raise
2052
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    68
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    69
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    70
_java_io_Win32FileSystem_canonicalize0: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    71
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    72
    <javanative: 'java/io/Win32FileSystem' name: 'canonicalize0(Ljava/lang/String;)Ljava/lang/String;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    73
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    74
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    75
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    76
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    77
_java_io_Win32FileSystem_canonicalizeWithPrefix0: this _: a1 _: a2 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    78
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    79
    <javanative: 'java/io/Win32FileSystem' name: 'canonicalizeWithPrefix0(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    80
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    81
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    82
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    83
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    84
_java_io_Win32FileSystem_checkAccess: this _: a1 _: a2 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    85
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    86
    <javanative: 'java/io/Win32FileSystem' name: 'checkAccess(Ljava/io/File;I)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    87
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    88
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    89
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    90
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    91
_java_io_Win32FileSystem_createDirectory: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    92
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    93
    <javanative: 'java/io/Win32FileSystem' name: 'createDirectory(Ljava/io/File;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    94
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    95
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    96
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    97
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    98
_java_io_Win32FileSystem_createFileExclusively: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    99
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   100
    <javanative: 'java/io/Win32FileSystem' name: 'createFileExclusively(Ljava/lang/String;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   101
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   102
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   103
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   104
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   105
_java_io_Win32FileSystem_delete0: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   106
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   107
    <javanative: 'java/io/Win32FileSystem' name: 'delete0(Ljava/io/File;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   108
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   109
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   110
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   111
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   112
_java_io_Win32FileSystem_getBooleanAttributes: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   113
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   114
    <javanative: 'java/io/Win32FileSystem' name: 'getBooleanAttributes(Ljava/io/File;)I'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   115
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   116
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   117
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   118
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   119
_java_io_Win32FileSystem_getDriveDirectory: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   120
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   121
    <javanative: 'java/io/Win32FileSystem' name: 'getDriveDirectory(I)Ljava/lang/String;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   122
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   123
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   124
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   125
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   126
_java_io_Win32FileSystem_getLastModifiedTime: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   127
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   128
    <javanative: 'java/io/Win32FileSystem' name: 'getLastModifiedTime(Ljava/io/File;)J'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   129
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   130
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   131
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   132
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   133
_java_io_Win32FileSystem_getLength: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   134
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   135
    <javanative: 'java/io/Win32FileSystem' name: 'getLength(Ljava/io/File;)J'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   136
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   137
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   138
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   139
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   140
_java_io_Win32FileSystem_getSpace0: this _: a1 _: a2 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   141
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   142
    <javanative: 'java/io/Win32FileSystem' name: 'getSpace0(Ljava/io/File;I)J'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   143
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   144
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   145
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   146
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   147
_java_io_Win32FileSystem_list: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   148
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   149
    <javanative: 'java/io/Win32FileSystem' name: 'list(Ljava/io/File;)[Ljava/lang/String;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   150
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   151
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   152
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   153
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   154
_java_io_Win32FileSystem_listRoots0: this 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   155
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   156
    <javanative: 'java/io/Win32FileSystem' name: 'listRoots0()I'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   157
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   158
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   159
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   160
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   161
_java_io_Win32FileSystem_rename0: this _: a1 _: a2 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   162
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   163
    <javanative: 'java/io/Win32FileSystem' name: 'rename0(Ljava/io/File;Ljava/io/File;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   164
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   165
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   166
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   167
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   168
_java_io_Win32FileSystem_setLastModifiedTime: this _: a1 _: a2 _: a3 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   169
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   170
    <javanative: 'java/io/Win32FileSystem' name: 'setLastModifiedTime(Ljava/io/File;J)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   171
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   172
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   173
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   174
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   175
_java_io_Win32FileSystem_setPermission: this _: a1 _: a2 _: a3 _: a4 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   176
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   177
    <javanative: 'java/io/Win32FileSystem' name: 'setPermission(Ljava/io/File;IZZ)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   178
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   179
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   180
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   181
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   182
_java_io_Win32FileSystem_setReadOnly: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   183
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   184
    <javanative: 'java/io/Win32FileSystem' name: 'setReadOnly(Ljava/io/File;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   185
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   186
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   187
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   188
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   189
_java_io_WinNTFileSystem_getDriveDirectory: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   190
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   191
    <javanative: 'java/io/WinNTFileSystem' name: 'getDriveDirectory(I)Ljava/lang/String;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   192
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   193
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   194
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   195
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   196
_java_io_WinNTFileSystem_getSpace0: this _: a1 _: a2 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   197
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   198
    <javanative: 'java/io/WinNTFileSystem' name: 'getSpace0(Ljava/io/File;I)J'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   199
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   200
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   201
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   202
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   203
_java_io_WinNTFileSystem_initIDs: this 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   204
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   205
    <javanative: 'java/io/WinNTFileSystem' name: 'initIDs()V'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   206
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   207
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   208
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   209
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   210
_java_io_WinNTFileSystem_rename0: this _: a1 _: a2 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   211
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   212
    <javanative: 'java/io/WinNTFileSystem' name: 'rename0(Ljava/io/File;Ljava/io/File;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   213
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   214
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   215
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   216
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   217
_java_io_WinNTFileSystem_setLastModifiedTime: this _: a1 _: a2 _: a3 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   218
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   219
    <javanative: 'java/io/WinNTFileSystem' name: 'setLastModifiedTime(Ljava/io/File;J)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   220
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   221
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   222
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   223
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   224
_java_io_WinNTFileSystem_setPermission: this _: a1 _: a2 _: a3 _: a4 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   225
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   226
    <javanative: 'java/io/WinNTFileSystem' name: 'setPermission(Ljava/io/File;IZZ)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   227
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   228
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   229
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   230
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   231
_java_io_WinNTFileSystem_setReadOnly: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   232
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   233
    <javanative: 'java/io/WinNTFileSystem' name: 'setReadOnly(Ljava/io/File;)Z'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   234
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   235
    ^ JavaVM unimplementedNativeMethodSignal raise
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   236
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   237
2380
9195eccdcbd9 Merged 08505399cea8 and 0adf7bbcf2c9 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069 2353
diff changeset
   238
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   239
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.lang'!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   240
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   241
_java_lang_ClassLoader_getCaller: this _: a1 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   242
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   243
    <javanative: 'java/lang/ClassLoader' name: 'getCaller(I)Ljava/lang/Class;'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   244
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   245
    "/ index 0: java.lang.ClassLoader.class
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   246
    "/ index 1: the immediate caller of index 0.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   247
    "/ index 2: the immediate caller of index 1.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   248
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   249
    | ctx |
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   250
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   251
    ctx := self nativeContext sender.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   252
    a1 timesRepeat:[
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   253
        ctx := ctx sender
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   254
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   255
    ^JavaVM reflection javaClassObjectForClass: ctx receiver class theNonMetaclass
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   256
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   257
    "Modified: / 07-02-2013 / 23:35:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   258
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   259
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   260
_java_lang_Thread_setNativeName: this _: a1 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   261
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   262
    <javanative: 'java/lang/Thread' name: 'setNativeName(Ljava/lang/String;)V'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   263
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   264
    ^ JavaVM unimplementedNativeMethodSignal raise
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   265
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   266
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   267
_java_lang_Throwable_fillInStackTrace: this _: a1 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   268
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   269
    <javanative: 'java/lang/Throwable' name: 'fillInStackTrace(I)Ljava/lang/Throwable;'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   270
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   271
    | java_lang_Throwable  exceptionObject  list  con |
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   272
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   273
    java_lang_Throwable := Java classNamed: 'java/lang/Throwable'.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   274
    exceptionObject := this.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   275
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   276
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   277
    "/ debugging only
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   278
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   279
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   280
    (java_lang_Throwable notNil and:[(exceptionObject isKindOf: java_lang_Throwable) not]) ifTrue: [
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   281
        self error:'Thrown object is not a java.lang.Throwable'.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   282
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   283
    con := self nativeContext sender.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   284
    "/ Just a guess, there is no comment what the parameter means...
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   285
    a1 timesRepeat: [ con := con sender ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   286
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   287
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   288
    "/ we are not interrested in all intermediate Exception frames ...
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   289
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   290
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   291
    FullExceptionTrace ifFalse: [
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   292
        "/ first, skip any JavaVM contexts
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   293
        [ con receiver == exceptionObject ] whileFalse: [ con := con sender ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   294
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   295
        "/ then, all exception-init contexts
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   296
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   297
        [ con receiver == exceptionObject ] whileTrue: [ con := con sender ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   298
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   299
    list := OrderedCollection new.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   300
    [ con notNil ] whileTrue: [
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   301
        (con isJavaContext) ifTrue: [
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   302
            "/ add a copy, in case the context continues with some
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   303
            "/ cleanup ...
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   304
            list add: con shallowCopy
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   305
        ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   306
        con := con sender
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   307
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   308
    exceptionObject instVarNamed: 'backtrace' put: (list asArray).
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   309
    ^ nil.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   310
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   311
    "Modified: / 08-02-2013 / 01:28:44 / Jan Vrany <jan.vrany@fit.cvut.cz>"
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   312
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   313
2380
9195eccdcbd9 Merged 08505399cea8 and 0adf7bbcf2c9 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069 2353
diff changeset
   314
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   315
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - java.util.zip'!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   316
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   317
_java_util_zip_ZipFile_getCommentBytes: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   318
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   319
    <javanative: 'java/util/zip/ZipFile' name: 'getCommentBytes(J)[B'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   320
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   321
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   322
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   323
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   324
    ^zmember fileComment asByteArray
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   325
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   326
    "Modified: / 08-02-2013 / 09:46:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   327
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   328
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   329
_java_util_zip_ZipFile_getEntry: this _: a1 _: a2 _: a3 _: a4 
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   330
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   331
    <javanative: 'java/util/zip/ZipFile' name: 'getEntry(J[BZ)J'>
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   332
    "
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   333
    !!!!!!WARNING!!!!!!!!
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   334
    In Open JDK 7, it takes byte array instead of string like in Open JDK 6!!!!!!!!
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   335
    "
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   336
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   337
    | zipArchive  filename  member |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   338
2057
4c8ec3832206 Kludge for windows / BCC 5.5 to workaround open file limit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2052
diff changeset
   339
    zipArchive := self getZipArchiveAt:a1.
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   340
    filename := a3 asString.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   341
    member := (zipArchive findMemberAllowForMissingTrailingSlash: filename).
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   342
    member isNil ifTrue: [
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   343
        ^ 0
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   344
    ] ifFalse: [
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   345
        ^ ZipEntryCache indexOf: member ifAbsent:[
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   346
            ZipEntryCache add: member.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   347
            ZipEntryCache size.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   348
        ]
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   349
    ]
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   350
2057
4c8ec3832206 Kludge for windows / BCC 5.5 to workaround open file limit.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2052
diff changeset
   351
    "Modified: / 11-02-2013 / 12:45:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   352
!
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   353
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   354
_java_util_zip_ZipFile_getEntryBytes: this _: jzentry _: a2 _: type 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   355
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   356
    <javanative: 'java/util/zip/ZipFile' name: 'getEntryBytes(JI)[B'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   357
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   358
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   359
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   360
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   361
    type == 1 "JZENTRY_EXTRA" ifTrue:[
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   362
        ^zmember extraFieldLength == 0
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   363
            ifTrue:[nil]
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   364
            ifFalse:[zmember extraField asByteArray].
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   365
    ].
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   366
    type == 2 "JZENTRY_COMMENT" ifTrue:[
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   367
        ^zmember fileCommentLength == 0
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   368
            ifTrue:[nil]
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   369
            ifFalse:[zmember fileComment asByteArray].
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   370
    ].
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   371
    self breakPoint: #jv.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   372
    JavaVM throwZipException: 'Unknown type in getEntryBytes()'.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   373
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   374
    "Modified: / 08-02-2013 / 09:53:43 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   375
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   376
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   377
_java_util_zip_ZipFile_getEntryCSize: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   378
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   379
    <javanative: 'java/util/zip/ZipFile' name: 'getEntryCSize(J)J'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   380
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   381
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   382
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   383
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   384
    ^zmember compressedSize
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   385
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   386
    "Modified: / 08-02-2013 / 09:44:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   387
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   388
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   389
_java_util_zip_ZipFile_getEntryCrc: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   390
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   391
    <javanative: 'java/util/zip/ZipFile' name: 'getEntryCrc(J)J'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   392
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   393
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   394
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   395
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   396
    ^zmember crc32
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   397
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   398
    "Modified: / 08-02-2013 / 09:45:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   399
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   400
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   401
_java_util_zip_ZipFile_getEntryFlag: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   402
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   403
    <javanative: 'java/util/zip/ZipFile' name: 'getEntryFlag(J)I'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   404
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   405
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   406
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   407
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   408
    ^zmember generalPurposBitFlag
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   409
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   410
    "Modified: / 08-02-2013 / 09:42:24 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   411
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   412
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   413
_java_util_zip_ZipFile_getEntryMethod: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   414
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   415
    <javanative: 'java/util/zip/ZipFile' name: 'getEntryMethod(J)I'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   416
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   417
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   418
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   419
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   420
    ^zmember compressionMethod
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   421
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   422
    "Modified: / 08-02-2013 / 09:44:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   423
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   424
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   425
_java_util_zip_ZipFile_getEntrySize: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   426
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   427
    <javanative: 'java/util/zip/ZipFile' name: 'getEntrySize(J)J'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   428
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   429
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   430
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   431
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   432
    ^zmember uncompressedSize
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   433
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   434
    "Modified: / 08-02-2013 / 09:43:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   435
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   436
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   437
_java_util_zip_ZipFile_getEntryTime: this _: jzentry _: a2 
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   438
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   439
    <javanative: 'java/util/zip/ZipFile' name: 'getEntryTime(J)J'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   440
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   441
    |  zmember |
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   442
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   443
    zmember := ZipEntryCache at: jzentry.
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   444
    ^zmember lastModFileTime
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   445
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   446
    "Modified: / 08-02-2013 / 09:45:35 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   447
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   448
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   449
_java_util_zip_ZipFile_open: this _: a1 _: a2 _: a3 _: a4 _: a5 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   450
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   451
    <javanative: 'java/util/zip/ZipFile' name: 'open(Ljava/lang/String;IJZ)J'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   452
2045
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   453
    "No mmap support for zip files yet, use Open JDK 6 implementation"
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   454
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   455
    | path  mode  lastModTime  result |
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   456
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   457
    path := Java as_ST_String: a1.
2045
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   458
    "/(path endsWith:'.jar') ifFalse:[self breakPoint: #jv].
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   459
    mode := a2.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   460
    lastModTime := a3.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   461
    result := path asFilename.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   462
    result ifNil: [ JavaVM throwZipException ].
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   463
    ^[
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   464
        | i zar |
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   465
        zar := ZipArchive readingFrom: result readStream.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   466
        i := ZipCache indexOf: nil.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   467
        i ~~ 0 ifTrue:[
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   468
            ZipCache at: i put: zar.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   469
            i
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   470
        ] ifFalse:[
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   471
            ZipCache add: zar.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   472
            ZipCache size.
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   473
        ].
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   474
    ] on: Error do:[:ex|
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   475
        JavaVM throwZipException:'Cannot open zip file: ' , ex description
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   476
    ]
cc12924bfbe8 More natives for Open JDK 7. VM boots, but cannot load classes using ext class loader.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2044
diff changeset
   477
2046
3309a3bc8615 Initial support for Open JDK 7 finished. VM boots, Groovy 1+1 works.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2045
diff changeset
   478
    "Modified: / 08-02-2013 / 09:16:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   479
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   480
2380
9195eccdcbd9 Merged 08505399cea8 and 0adf7bbcf2c9 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069 2353
diff changeset
   481
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   482
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'native - sun.misc'!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   483
2052
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   484
_sun_misc_Perf_attach: this _: a1 _: a2 _: a3 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   485
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   486
    <javanative: 'sun/misc/Perf' name: 'attach(Ljava/lang/String;II)Ljava/nio/ByteBuffer;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   487
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   488
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   489
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   490
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   491
_sun_misc_Perf_createByteArray: this _: a1 _: a2 _: a3 _: a4 _: a5 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   492
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   493
    <javanative: 'sun/misc/Perf' name: 'createByteArray(Ljava/lang/String;II[BI)Ljava/nio/ByteBuffer;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   494
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   495
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   496
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   497
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   498
_sun_misc_Perf_createLong: this _: a1 _: a2 _: a3 _: a4 _: a5 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   499
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   500
    <javanative: 'sun/misc/Perf' name: 'createLong(Ljava/lang/String;IIJ)Ljava/nio/ByteBuffer;'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   501
2378
7b724ff1af94 Added sun.misc.Perf native to make OpenJDK 7 boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069
diff changeset
   502
    | memory |
7b724ff1af94 Added sun.misc.Perf native to make OpenJDK 7 boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069
diff changeset
   503
7b724ff1af94 Added sun.misc.Perf native to make OpenJDK 7 boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069
diff changeset
   504
    memory := JavaVM performance counters at: (Java as_ST_String: a1) ifAbsentPut:[ ByteArray new: 8].
7b724ff1af94 Added sun.misc.Perf native to make OpenJDK 7 boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069
diff changeset
   505
    ^JAVA java nio HeapByteBuffer new: memory with: 0 with: 8.
7b724ff1af94 Added sun.misc.Perf native to make OpenJDK 7 boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069
diff changeset
   506
7b724ff1af94 Added sun.misc.Perf native to make OpenJDK 7 boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069
diff changeset
   507
    "Modified: / 20-02-2013 / 00:13:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
2052
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   508
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   509
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   510
_sun_misc_Perf_detach: this _: a1 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   511
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   512
    <javanative: 'sun/misc/Perf' name: 'detach(Ljava/nio/ByteBuffer;)V'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   513
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   514
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   515
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   516
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   517
_sun_misc_Perf_highResCounter: this 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   518
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   519
    <javanative: 'sun/misc/Perf' name: 'highResCounter()J'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   520
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   521
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   522
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   523
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   524
_sun_misc_Perf_highResFrequency: this 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   525
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   526
    <javanative: 'sun/misc/Perf' name: 'highResFrequency()J'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   527
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   528
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   529
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   530
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   531
_sun_misc_Perf_registerNatives: this 
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   532
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   533
    <javanative: 'sun/misc/Perf' name: 'registerNatives()V'>
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   534
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   535
    "Nothing to do here"
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   536
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   537
    "Modified: / 11-02-2013 / 02:53:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   538
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   539
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   540
_sun_misc_Unsafe_copyMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 _: a7 _: a8 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   541
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   542
    <javanative: 'sun/misc/Unsafe' name: 'copyMemory(Ljava/lang/Object;JLjava/lang/Object;JJ)V'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   543
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   544
    ^ JavaVM unimplementedNativeMethodSignal raise
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   545
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   546
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   547
_sun_misc_Unsafe_defineAnonymousClass: this _: a1 _: a2 _: a3 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   548
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   549
    <javanative: 'sun/misc/Unsafe' name: 'defineAnonymousClass(Ljava/lang/Class;[B[Ljava/lang/Object;)Ljava/lang/Class;'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   550
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   551
    ^ JavaVM unimplementedNativeMethodSignal raise
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   552
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   553
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   554
_sun_misc_Unsafe_setMemory: this _: a1 _: a2 _: a3 _: a4 _: a5 _: a6 
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   555
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   556
    <javanative: 'sun/misc/Unsafe' name: 'setMemory(Ljava/lang/Object;JJB)V'>
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   557
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   558
    ^ JavaVM unimplementedNativeMethodSignal raise
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   559
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   560
2380
9195eccdcbd9 Merged 08505399cea8 and 0adf7bbcf2c9 (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2069 2353
diff changeset
   561
2041
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   562
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'documentation'!
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   563
2069
75d40b7b986f Added version_CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2057
diff changeset
   564
version_CVS
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   565
    ^ '$Header: /cvs/stx/stx/libjava/JavaNativeMethodImpl_OpenJDK7.st,v 1.1 2013-02-16 18:08:32 vrany Exp $'
2069
75d40b7b986f Added version_CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2057
diff changeset
   566
!
75d40b7b986f Added version_CVS
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2057
diff changeset
   567
2041
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   568
version_HG
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   569
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   570
    ^ '$Changeset: <not expanded> $'
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   571
! !
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   572