JavaNativeMethodImpl_OpenJDK7.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 11 Feb 2013 03:29:54 -0800
branchopenjdk7-support
changeset 2052 e65c246adabc
parent 2050 c77d58b7076b
child 2057 4c8ec3832206
permissions -rw-r--r--
Initial support for SUN JDK 7. Not yet finished.
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
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
    14
JavaNativeMethodImpl_OpenJDK6 subclass:#JavaNativeMethodImpl_OpenJDK7
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
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    37
!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
    38
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    39
_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
    40
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    41
    <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
    42
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    43
    ^ 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
    44
!
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
_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
    47
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    48
    <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
    49
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    50
    ^ 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
    51
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    52
2050
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    53
_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
    54
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    55
    <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
    56
2050
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    57
    ^ 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
    58
c77d58b7076b Fixed native java.io.FileOutputStream.writeBytes([BIIZ)V
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2049
diff changeset
    59
    "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
    60
!
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
_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
    63
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    64
    <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
    65
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
    66
    ^ 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
    67
!
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
_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
    70
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    71
    <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
    72
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    73
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    74
!
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
_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
    77
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    78
    <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
    79
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    80
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    81
!
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
_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
    84
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    85
    <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
    86
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    87
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    88
!
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
_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
    91
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    92
    <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
    93
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    94
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    95
!
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
_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
    98
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
    99
    <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
   100
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   101
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   102
!
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
_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
   105
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   106
    <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
   107
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   108
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   109
!
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
_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
   112
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   113
    <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
   114
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   115
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   116
!
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
_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
   119
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   120
    <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
   121
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   122
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   123
!
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
_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
   126
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   127
    <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
   128
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   129
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   130
!
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
_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
   133
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   134
    <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
   135
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   136
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   137
!
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
_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
   140
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   141
    <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
   142
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   143
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   144
!
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
_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
   147
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   148
    <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
   149
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   150
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   151
!
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
_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
   154
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   155
    <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
   156
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   157
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   158
!
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
_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
   161
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   162
    <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
   163
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   164
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   165
!
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
_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
   168
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   169
    <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
   170
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   171
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   172
!
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
_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
   175
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   176
    <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
   177
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   178
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   179
!
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
_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
   182
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   183
    <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
   184
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   185
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   186
!
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
_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
   189
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   190
    <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
   191
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   192
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   193
!
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
_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
   196
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   197
    <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
   198
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   199
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   200
!
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
_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
   203
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   204
    <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
   205
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   206
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   207
!
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
_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
   210
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   211
    <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
   212
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   213
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   214
!
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
_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
   217
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   218
    <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
   219
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   220
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   221
!
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
_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
   224
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   225
    <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
   226
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   227
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   228
!
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
_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
   231
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   232
    <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
   233
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   234
    ^ 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
   235
! !
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
!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
   238
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   239
_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
   240
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   241
    <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
   242
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   243
    "/ 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
   244
    "/ 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
   245
    "/ 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
   246
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   247
    | ctx |
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 := 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
   250
    a1 timesRepeat:[
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   251
        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
   252
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   253
    ^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
   254
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   255
    "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
   256
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   257
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   258
_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
   259
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   260
    <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
   261
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   262
    ^ 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
   263
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   264
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   265
_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
   266
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   267
    <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
   268
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   269
    | 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
   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 := 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
   272
    exceptionObject := this.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   273
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   274
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   275
    "/ debugging only
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
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   278
    (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
   279
        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
   280
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   281
    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
   282
    "/ 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
   283
    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
   284
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   285
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   286
    "/ 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
   287
    "/
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   288
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   289
    FullExceptionTrace ifFalse: [
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   290
        "/ 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
   291
        [ 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
   292
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   293
        "/ 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
   294
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   295
        [ 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
   296
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   297
    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
   298
    [ 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
   299
        (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
   300
            "/ 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
   301
            "/ cleanup ...
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   302
            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
   303
        ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   304
        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
   305
    ].
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   306
    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
   307
    ^ nil.
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   308
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   309
    "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
   310
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   311
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   312
!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
   313
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
   314
_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
   315
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   316
    <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
   317
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
   318
    |  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
   319
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
   320
    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
   321
    ^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
   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
    "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
   324
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   325
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
   326
_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
   327
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
   328
    <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
   329
    "
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
    !!!!!!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
   331
    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
   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
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
    | 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
   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
    zipArchive := ZipCache at: a1.
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
    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
   338
    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
   339
    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
   340
        ^ 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
   341
    ] 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
   342
        ^ 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
   343
            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
   344
            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
   345
        ]
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
    ]
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
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
    "Modified: / 08-02-2013 / 09:35:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
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
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
   351
_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
   352
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   353
    <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
   354
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
   355
    |  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
   356
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
   357
    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
   358
    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
   359
        ^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
   360
            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
   361
            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
   362
    ].
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
    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
   364
        ^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
   365
            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
   366
            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
   367
    ].
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
    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
   369
    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
   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
    "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
   372
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   373
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
   374
_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
   375
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   376
    <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
   377
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
   378
    |  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
   379
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
   380
    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
   381
    ^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
   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
    "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
   384
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   385
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
   386
_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
   387
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   388
    <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
   389
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
   390
    |  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
   391
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
   392
    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
   393
    ^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
   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
    "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
   396
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   397
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
   398
_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
   399
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   400
    <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
   401
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
   402
    |  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
   403
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
   404
    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
   405
    ^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
   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
    "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
   408
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   409
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
   410
_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
   411
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   412
    <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
   413
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
   414
    |  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
   415
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
   416
    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
   417
    ^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
   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
    "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
   420
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   421
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
   422
_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
   423
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   424
    <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
   425
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
   426
    |  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
   427
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
   428
    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
   429
    ^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
   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
    "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
   432
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   433
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
   434
_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
   435
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   436
    <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
   437
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
   438
    |  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
   439
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
   440
    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
   441
    ^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
   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
    "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
   444
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   445
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   446
_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
   447
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   448
    <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
   449
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
   450
    "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
   451
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
   452
    | 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
   453
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
   454
    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
   455
    "/(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
   456
    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
   457
    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
   458
    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
   459
    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
   460
    ^[
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
        | 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
   462
        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
   463
        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
   464
        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
   465
            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
   466
            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
   467
        ] 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
   468
            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
   469
            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
   470
        ].
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
    ] 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
   472
        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
   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
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
   475
    "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
   476
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   477
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   478
!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
   479
2052
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   480
_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
   481
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   482
    <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
   483
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   484
    ^ JavaVM unimplementedNativeMethodSignal raise
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
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   487
_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
   488
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   489
    <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
   490
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   491
    ^ JavaVM unimplementedNativeMethodSignal raise
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
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   494
_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
   495
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   496
    <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
   497
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   498
    ^ JavaVM unimplementedNativeMethodSignal raise
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
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   501
_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
   502
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   503
    <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
   504
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   505
    ^ JavaVM unimplementedNativeMethodSignal raise
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   506
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   507
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   508
_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
   509
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   510
    <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
   511
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   512
    ^ JavaVM unimplementedNativeMethodSignal raise
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
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   515
_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
   516
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   517
    <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
   518
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   519
    ^ JavaVM unimplementedNativeMethodSignal raise
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
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   522
_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
   523
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   524
    <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
   525
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   526
    "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
   527
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   528
    "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
   529
!
e65c246adabc Initial support for SUN JDK 7. Not yet finished.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2050
diff changeset
   530
2044
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   531
_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
   532
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   533
    <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
   534
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   535
    ^ 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
   536
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   537
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   538
_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
   539
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   540
    <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
   541
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   542
    ^ 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
   543
!
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   544
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   545
_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
   546
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   547
    <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
   548
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   549
    ^ 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
   550
! !
15d698503afe Some more Open JDK 7 natives. Still does not boot.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2041
diff changeset
   551
2041
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   552
!JavaNativeMethodImpl_OpenJDK7 class methodsFor:'documentation'!
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   553
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   554
version_HG
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   555
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   556
    ^ '$Changeset: <not expanded> $'
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   557
! !
eb765dbc5b59 Added native method implementation class for OpenJDK7.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff changeset
   558