src/JavaObject.st
author vranyj1
Sun, 04 Dec 2011 19:53:48 +0000
branchjk_new_structure
changeset 1213 fc90769151e8
parent 1209 953b9d7c328a
child 1217 a7d011bc112b
permissions -rw-r--r--
- fix in reflection over methods (signature is nil for non-generic methods) - few more fake natives (management beans) - make sure that java Thread objects have tid field set. - fix in JavaSocket
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
     1
"
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     2
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
1152
040cba55a7d2 Copyright fixes
vranyj1
parents: 1109
diff changeset
     3
1155
vranyj1
parents: 1152
diff changeset
     4
 New code and modifications done at SWING Research Group [1]:
1152
040cba55a7d2 Copyright fixes
vranyj1
parents: 1109
diff changeset
     5
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     6
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     7
                            SWING Research Group, Czech Technical University in Prague
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
     8
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
     9
 This software is furnished under a license and may be used
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    10
 only in accordance with the terms of that license and with the
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    11
 inclusion of the above copyright notice.   This software may not
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    12
 be provided or otherwise made available to, or used by, any
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    13
 other person.  No title to or ownership of the software is
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    14
 hereby transferred.
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    15
1155
vranyj1
parents: 1152
diff changeset
    16
 [1] Code written at SWING Research Group contains a signature
vranyj1
parents: 1152
diff changeset
    17
     of one of the above copright owners. For exact set of such code,
vranyj1
parents: 1152
diff changeset
    18
     see the differences between this version and version stx:libjava
1152
040cba55a7d2 Copyright fixes
vranyj1
parents: 1109
diff changeset
    19
     as of 1.9.2010
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    20
"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    21
"{ Package: 'stx:libjava' }"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    22
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    23
Object subclass:#JavaObject
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    24
	instanceVariableNames:''
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    25
	classVariableNames:''
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    26
	poolDictionaries:''
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    27
	category:'Languages-Java-Classes'
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    28
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    29
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    30
!JavaObject class methodsFor:'documentation'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    31
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    32
copyright
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    33
"
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    34
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
1152
040cba55a7d2 Copyright fixes
vranyj1
parents: 1109
diff changeset
    35
1155
vranyj1
parents: 1152
diff changeset
    36
 New code and modifications done at SWING Research Group [1]:
1152
040cba55a7d2 Copyright fixes
vranyj1
parents: 1109
diff changeset
    37
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    38
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    39
                            SWING Research Group, Czech Technical University in Prague
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    40
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    41
 This software is furnished under a license and may be used
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    42
 only in accordance with the terms of that license and with the
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    43
 inclusion of the above copyright notice.   This software may not
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    44
 be provided or otherwise made available to, or used by, any
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    45
 other person.  No title to or ownership of the software is
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    46
 hereby transferred.
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    47
1155
vranyj1
parents: 1152
diff changeset
    48
 [1] Code written at SWING Research Group contains a signature
vranyj1
parents: 1152
diff changeset
    49
     of one of the above copright owners. For exact set of such code,
vranyj1
parents: 1152
diff changeset
    50
     see the differences between this version and version stx:libjava
1152
040cba55a7d2 Copyright fixes
vranyj1
parents: 1109
diff changeset
    51
     as of 1.9.2010
877
f5a5b93e1c78 Cleanup phase 1
vranyj1
parents: 752
diff changeset
    52
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    53
"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    54
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    55
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    56
!JavaObject class methodsFor:'misc'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    57
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    58
resolveClassRefs
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    59
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    60
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    61
resolveClassRefsIgnoring:setOfClasses
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    62
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    63
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    64
!JavaObject class methodsFor:'smalltalk interface'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    65
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    66
convertJavaObject:val signature:retValSignature
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    67
^ val.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    68
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    69
    retValSignature = 'void' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    70
	^ #void
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    71
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    72
    retValSignature = 'boolean' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    73
	val == 0 ifTrue:[^ false].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    74
	^ true
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    75
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    76
    retValSignature = 'int' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    77
	val isInteger ifFalse:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    78
	    self halt
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    79
	].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    80
	^ val
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    81
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    82
    retValSignature = 'char[]' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    83
	"/ these are ST-strings
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    84
	^ val
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    85
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    86
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    87
    retValSignature = 'char' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    88
	"/ these are ST-characters
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    89
	val isInteger ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    90
	    ^ Character value:val
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    91
	].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    92
	self halt.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    93
	^ val
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    94
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    95
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    96
    retValSignature = 'Object' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    97
	^ val
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    98
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
    99
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   100
    retValSignature = 'String' ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   101
	^ Java as_ST_String:val
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   102
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   103
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   104
    'no conversion for: ' print. val class name print. ' to: ' print. retValSignature printNL.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   105
    ^ val.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   106
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   107
    "Modified: 8.8.1997 / 12:07:23 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   108
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   109
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   110
javaStringFrom:aString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   111
    "hard-coding internas of java.lang.String here is bad ..."
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   112
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   113
    self halt.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   114
    ^ Java as_String:aString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   115
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   116
    "Modified: 7.8.1997 / 21:17:32 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   117
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   118
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   119
stringFromJavaString:aJavaString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   120
    "hard-coding internas of java.lang.String here is bad ..."
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   121
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   122
    self halt.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   123
    ^ Java as_ST_String:aJavaString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   124
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   125
    "Modified: 8.8.1997 / 12:07:29 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   126
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   127
1109
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   128
!JavaObject methodsFor:'finalization'!
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   129
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   130
finalize
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   131
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   132
    Logger log: 'Finalizing ', self javaDisplayString severity: #info facility: #JVM.
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   133
    [ self perform: #'finalize()V' ] on: Error do:["Nothing. see spec"]
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   134
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   135
    "Created: / 14-11-2011 / 12:32:05 / Jan Vrany <jan.vrany@fit.cvut.cz>"
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   136
! !
9bd0544f9046 Initial version of finalize() support - may crash VM!
vranyj1
parents: 1093
diff changeset
   137
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   138
!JavaObject methodsFor:'initialization'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   139
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   140
initializeToZero
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   141
    |sz|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   142
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   143
    sz := self class instSize.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   144
    1 to:sz do:[:i |
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   145
	self instVarAt:i put:0
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   146
    ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   147
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   148
1213
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   149
!JavaObject methodsFor:'inspecting'!
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   150
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   151
inspectorExtraAttributes
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   152
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   153
    | attrs nm |
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   154
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   155
    attrs := super inspectorExtraAttributes.
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   156
    nm := self class name.
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   157
    nm == #'java/lang/reflect/Method' ifTrue:[
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   158
        attrs at:'-method' put: (JavaVM reflection methodForJavaMethodObject: self).
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   159
        ^attrs.
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   160
    ].
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   161
    nm == #'java/lang/reflect/Class' ifTrue:[
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   162
        attrs at:'-class' put: (JavaVM reflection classForJavaClassObject: self).
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   163
        ^attrs.
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   164
    ].
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   165
    ^attrs
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   166
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   167
    "Created: / 04-12-2011 / 19:28:10 / Jan Vrany <jan.vrany@fit.cvut.cz>"
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   168
! !
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   169
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   170
!JavaObject methodsFor:'message sending'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   171
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   172
doesNotUnderstand:aMessage
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   173
    "as a courtesy to the smalltalker, try to map methods"
1001
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   174
    ^ JavaClass 
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   175
        perform: aMessage 
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   176
        onReceiver: self 
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   177
        from: thisContext sender 
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   178
        ifNotFound: [ super doesNotUnderstand: aMessage]
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   179
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   180
"/    [
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   181
"/    ^ JavaLookup instance 
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   182
"/            perform: aMessage onReceiver: self from: thisContext sender.
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   183
"/    ] on: JavaDoesNotUnderstandException
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   184
"/    do: [:e |
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   185
"/       ^ super doesNotUnderstand: aMessage.
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   186
"/    ]
949
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   187
"/    |args numArgs javaMethod sel retVal m|
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   188
"/
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   189
"/    args := aMessage arguments.
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   190
"/    numArgs := args size.
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   191
"/    sel := aMessage selector.
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   192
"/
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   193
"/    javaMethod := JavaClass lookupMethod:sel numArgs:numArgs in:self class static:false.
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   194
"/    javaMethod notNil ifTrue:[
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   195
"/        args notNil ifTrue:[
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   196
"/            args := JavaClass 
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   197
"/                        convertArgsToJava:args 
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   198
"/                        asSpecifiedIn:(javaMethod argSignature)
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   199
"/                        numArgs:numArgs.
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   200
"/        ].
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   201
"/        javaMethod isWrapped ifTrue:[
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   202
"/            m := javaMethod originalMethod
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   203
"/        ] ifFalse:[
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   204
"/            m := javaMethod
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   205
"/        ].
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   206
"/        retVal := javaMethod 
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   207
"/            valueWithReceiver:self 
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   208
"/            arguments:args
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   209
"/            selector:m selector 
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   210
"/            search:m javaClass
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   211
"/            sender:nil.
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   212
"/
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   213
"/        ^ JavaClass convertToSmalltalk:retVal type:(m returnType).
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   214
"/    ].
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   215
"/    ^ super doesNotUnderstand:aMessage
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   216
949
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   217
    "Modified: / 16-11-1998 / 16:50:56 / cg"
1001
2f02d9b0e50b Minor refactoring
kursjan
parents: 949
diff changeset
   218
    "Modified: / 19-09-2011 / 23:43:56 / Jan Kurs <kursjan@fit.cvut.cz>"
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   219
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   220
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   221
!JavaObject methodsFor:'printing & storing'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   222
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   223
displayString
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   224
1213
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   225
    ^String streamContents:[:s|self basicPrintOn: s].
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   226
1209
vranyj1
parents: 1155
diff changeset
   227
    JavaVM booted ifTrue:[
vranyj1
parents: 1155
diff changeset
   228
        | toString |
vranyj1
parents: 1155
diff changeset
   229
        [ toString := Java as_ST_String:(self perform:#'toString()Ljava/lang/String;').]
vranyj1
parents: 1155
diff changeset
   230
            on: Error do: [ toString := nil ].        
vranyj1
parents: 1155
diff changeset
   231
        toString notNil ifTrue:[        
vranyj1
parents: 1155
diff changeset
   232
            ^toString
vranyj1
parents: 1155
diff changeset
   233
        ]
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   234
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   235
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   236
    "Modified: / 04-11-1998 / 18:35:00 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   237
    "Modified: / 28-01-2011 / 15:10:05 / Marcel Hlopko <hlopik@gmail.com>"
1213
fc90769151e8 - fix in reflection over methods (signature is nil for non-generic methods)
vranyj1
parents: 1209
diff changeset
   238
    "Modified: / 04-12-2011 / 20:16:33 / Jan Vrany <jan.vrany@fit.cvut.cz>"
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   239
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   240
1209
vranyj1
parents: 1155
diff changeset
   241
printOn: aStream
vranyj1
parents: 1155
diff changeset
   242
    |myClassName |
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   243
1209
vranyj1
parents: 1155
diff changeset
   244
    myClassName := self class name.
vranyj1
parents: 1155
diff changeset
   245
    myClassName == #'java/lang/String' ifTrue:[
vranyj1
parents: 1155
diff changeset
   246
        aStream nextPut:$".
vranyj1
parents: 1155
diff changeset
   247
        aStream nextPutAll: (Java as_ST_String: self).
vranyj1
parents: 1155
diff changeset
   248
        aStream nextPut:$".
vranyj1
parents: 1155
diff changeset
   249
        ^self.
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   250
    ].
1209
vranyj1
parents: 1155
diff changeset
   251
    myClassName == #'java/lang/Class' ifTrue:[
vranyj1
parents: 1155
diff changeset
   252
        super printOn: aStream.
vranyj1
parents: 1155
diff changeset
   253
        aStream nextPut: $(.
vranyj1
parents: 1155
diff changeset
   254
        (JavaVM reflection classForJavaClassObject:self) javaName printOn: aStream.
vranyj1
parents: 1155
diff changeset
   255
        aStream nextPut: $).
vranyj1
parents: 1155
diff changeset
   256
        ^self.
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   257
    ].
1209
vranyj1
parents: 1155
diff changeset
   258
    myClassName == #'java.lang.reflect.Method' ifTrue:[
vranyj1
parents: 1155
diff changeset
   259
        super printOn: aStream.
vranyj1
parents: 1155
diff changeset
   260
        aStream nextPut: $(.
vranyj1
parents: 1155
diff changeset
   261
        (JavaVM reflection methodForJavaMethodObject:self) printOn: aStream.
vranyj1
parents: 1155
diff changeset
   262
        aStream nextPut: $).
vranyj1
parents: 1155
diff changeset
   263
        ^self.
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   264
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   265
1209
vranyj1
parents: 1155
diff changeset
   266
    JavaVM booted ifTrue:[
vranyj1
parents: 1155
diff changeset
   267
        | toString |
vranyj1
parents: 1155
diff changeset
   268
        [ toString := Java as_ST_String:(self perform:#'toString()Ljava/lang/String;').]
vranyj1
parents: 1155
diff changeset
   269
            on: Error do: [ toString := nil ].        
vranyj1
parents: 1155
diff changeset
   270
        toString notNil ifTrue:[        
vranyj1
parents: 1155
diff changeset
   271
            "/super printOn: aStream.
vranyj1
parents: 1155
diff changeset
   272
            "/aStream nextPut: $(.
vranyj1
parents: 1155
diff changeset
   273
            aStream nextPutAll: toString.
vranyj1
parents: 1155
diff changeset
   274
            "/aStream nextPut: $).
vranyj1
parents: 1155
diff changeset
   275
            ^self.
vranyj1
parents: 1155
diff changeset
   276
        ] 
vranyj1
parents: 1155
diff changeset
   277
    ].
vranyj1
parents: 1155
diff changeset
   278
    super printOn: aStream.
vranyj1
parents: 1155
diff changeset
   279
vranyj1
parents: 1155
diff changeset
   280
    "Created: / 04-12-2011 / 10:29:08 / Jan Vrany <jan.vrany@fit.cvut.cz>"
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   281
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   282
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   283
!JavaObject methodsFor:'queries'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   284
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   285
isJavaClassRef
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   286
    ^ false
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   287
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   288
    "Created: / 9.11.1999 / 17:13:37 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   289
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   290
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   291
isJavaMethodRef
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   292
    ^ false
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   293
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   294
    "Created: / 9.11.1999 / 15:43:21 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   295
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   296
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   297
isJavaObject
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   298
    ^ true
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   299
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   300
    "Created: 26.3.1997 / 13:34:17 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   301
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   302
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   303
!JavaObject methodsFor:'smalltalk interface'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   304
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   305
lookupMethod:selector numArgs:nargs
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   306
    "lookup a method"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   307
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   308
    |method cls sel|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   309
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   310
    sel := selector.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   311
    (sel includes:$:) ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   312
	sel := sel copyTo:(sel indexOf:$:)-1    
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   313
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   314
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   315
    sel := sel asSymbolIfInterned.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   316
    sel notNil ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   317
	cls := self class.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   318
	[cls notNil and:[cls ~~ JavaObject]] whileTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   319
	    cls methodDictionary keysAndValuesDo:[:jSel :aMethod |
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   320
		(jSel == sel ) ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   321
		    ^ aMethod
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   322
		]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   323
	    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   324
	    cls methodDictionary keysAndValuesDo:[:jSel :aMethod |
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   325
		(aMethod name = sel 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   326
		or:[aMethod signatureNameWithoutReturnType = sel]) ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   327
		    aMethod numArgs == nargs ifTrue:[
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   328
			^ aMethod
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   329
		    ]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   330
		]
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   331
	    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   332
	    cls := cls superclass.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   333
	].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   334
    ].
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   335
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   336
    ^ nil
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   337
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   338
    "
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   339
     |stack|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   340
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   341
     stack := (Java at:'java.util.Stack') basicNew.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   342
     stack lookupMethod:#'<init>' numArgs:0. 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   343
    "
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   344
    "
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   345
     |stack|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   346
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   347
     stack := (Java at:'java.util.Stack') new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   348
     stack lookupMethod:#isEmpty numArgs:0. 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   349
    "
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   350
    "
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   351
     |frame|
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   352
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   353
     frame := (Java at:'java.awt.Frame') new.
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   354
     frame lookupMethod:#'<init> (String)' numArgs:1. 
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   355
    "
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   356
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   357
    "Modified: 22.3.1997 / 00:56:54 / cg"
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   358
! !
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   359
1093
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   360
!JavaObject methodsFor:'unwind'!
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   361
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   362
unwindHandlerInContext: aContext 
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   363
    "given a context which has been marked for unwind,
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   364
     retrieve the handler block. This method is called when ST
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   365
     exception raises and stack is unwinding. JavaClass instance
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   366
     has an opportunity to clean up monitors"
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   367
    
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   368
    ^ JavaVM unwindHandlerForJavaContext: aContext.
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   369
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   370
    "Created: / 08-11-2011 / 12:25:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   371
! !
255c230a1c55 hacking monitors, not working yet :P
hlopkmar
parents: 1022
diff changeset
   372
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   373
!JavaObject class methodsFor:'documentation'!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   374
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   375
version
1022
38b710d7dfbc svn properties fixed
vranyj1
parents: 1001
diff changeset
   376
    ^ '$Id$'
752
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   377
!
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   378
ff7bc6428c9c branch jk_new_structure resurrected
vranyj1
parents:
diff changeset
   379
version_SVN
1022
38b710d7dfbc svn properties fixed
vranyj1
parents: 1001
diff changeset
   380
    ^ '$Id$'
949
8452984ed807 New Implementation of JavaLookup. Slow, no boxing, unboxing is old and needs to be rewritten.
kursjan
parents: 923
diff changeset
   381
! !