JavaUnresolvedClassConstant.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sun, 26 Apr 2015 21:07:30 +0100
changeset 3442 e59716e00703
parent 3324 a58245c0e83a
child 3360 1a8899091305
permissions -rw-r--r--
Oops, fix for commit 48320b2d4: Use first element of binding to read bound value For workspace variables it does not matter much as both values are valueholders, however in inspector and for debugger, binding contains block with fixed number of arguments.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
454
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
     1
"
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
     2
 COPYRIGHT (c) 1996-2015 by Claus Gittinger
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
     3
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
     4
 New code and modifications done at SWING Research Group [1]:
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
     5
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
     6
 COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
     7
                            SWING Research Group, Czech Technical University in Prague
454
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
     8
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
     9
 This software is furnished under a license and may be used
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    10
 only in accordance with the terms of that license and with the
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    11
 inclusion of the above copyright notice.   This software may not
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    12
 be provided or otherwise made available to, or used by, any
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    13
 other person.  No title to or ownership of the software is
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    14
 hereby transferred.
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    15
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    16
 [1] Code written at SWING Research Group contains a signature
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    17
     of one of the above copright owners. For exact set of such code,
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    18
     see the differences between this version and version stx:libjava
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    19
     as of 1.9.2010
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    20
"
713
75e92ac63bf1 category change
cg
parents: 625
diff changeset
    21
"{ Package: 'stx:libjava' }"
75e92ac63bf1 category change
cg
parents: 625
diff changeset
    22
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    23
JavaUnresolvedConstant subclass:#JavaUnresolvedClassConstant
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    24
	instanceVariableNames:'nameIndex fullName'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    25
	classVariableNames:''
083530508d9c intitial checkin
cg
parents:
diff changeset
    26
	poolDictionaries:''
713
75e92ac63bf1 category change
cg
parents: 625
diff changeset
    27
	category:'Languages-Java-Reader-Support'
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    28
!
083530508d9c intitial checkin
cg
parents:
diff changeset
    29
454
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    30
!JavaUnresolvedClassConstant class methodsFor:'documentation'!
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    31
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    32
copyright
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    33
"
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
    34
 COPYRIGHT (c) 1996-2015 by Claus Gittinger
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    35
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    36
 New code and modifications done at SWING Research Group [1]:
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    37
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
    38
 COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    39
                            SWING Research Group, Czech Technical University in Prague
454
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    40
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    41
 This software is furnished under a license and may be used
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    42
 only in accordance with the terms of that license and with the
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    43
 inclusion of the above copyright notice.   This software may not
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    44
 be provided or otherwise made available to, or used by, any
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    45
 other person.  No title to or ownership of the software is
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    46
 hereby transferred.
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    47
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    48
 [1] Code written at SWING Research Group contains a signature
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    49
     of one of the above copright owners. For exact set of such code,
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    50
     see the differences between this version and version stx:libjava
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
    51
     as of 1.9.2010
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    52
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    53
"
454
38f590639d65 *** empty log message ***
cg
parents: 443
diff changeset
    54
! !
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    55
135
098936234135 *** empty log message ***
cg
parents: 107
diff changeset
    56
!JavaUnresolvedClassConstant class methodsFor:'instance creation'!
1
083530508d9c intitial checkin
cg
parents:
diff changeset
    57
54
f37bcefb7091 avoid loading classes twice
cg
parents: 52
diff changeset
    58
fullName:nm
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    59
    |ref|
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    60
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    61
    ref := Java unresolvedClassRefFor:nm.
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    62
    ref notNil ifTrue:[^ ref].
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    63
2841
6fa1bcf9c997 JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
    64
    ref := self new setBinaryName: nm.
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    65
    Java rememberUnresolved:ref.
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    66
    ^ ref
392
03a101c707ec checkin from browser
cg
parents: 360
diff changeset
    67
03a101c707ec checkin from browser
cg
parents: 360
diff changeset
    68
    "Modified: / 19.10.1998 / 20:18:13 / cg"
54
f37bcefb7091 avoid loading classes twice
cg
parents: 52
diff changeset
    69
!
f37bcefb7091 avoid loading classes twice
cg
parents: 52
diff changeset
    70
313
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    71
pool:aPool poolIndex:slotIndex fullName:aString
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    72
    ^ self new 
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    73
          pool:aPool poolIndex:slotIndex fullName:aString
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    74
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    75
    "Created: / 4.2.1998 / 22:13:13 / cg"
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    76
    "Modified: / 4.2.1998 / 22:13:28 / cg"
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    77
!
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    78
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
    79
pool:aPool poolIndex:slotIndex nameIndex:index
313
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    80
    ^ self new 
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    81
          pool:aPool poolIndex:slotIndex nameIndex:index
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    82
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
    83
    "Modified: / 4.2.1998 / 22:13:38 / cg"
21
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
    84
! !
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
    85
2678
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    86
!JavaUnresolvedClassConstant class methodsFor:'others'!
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    87
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    88
version_HG
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    89
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    90
    ^ '$Changeset: <not expanded> $'
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    91
! !
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
    92
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    93
!JavaUnresolvedClassConstant methodsFor:'* As yet uncategorized *'!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    94
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    95
javaClassForNew
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    96
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    97
    ^self javaClass
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    98
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
    99
    "Created: / 16-03-2011 / 16:09:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   100
! !
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   101
21
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
   102
!JavaUnresolvedClassConstant methodsFor:'accessing'!
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
   103
67
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   104
className
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   105
    |s nm|
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   106
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   107
    (fullName startsWith:$[) ifTrue:[
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   108
        "/ a ref for newarray or new or checkCast
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   109
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   110
        s := fullName readStream.
560
35f85d72be10 checkin from browser
cg
parents: 554
diff changeset
   111
        [ s peek == $[ ] whileTrue:[
35f85d72be10 checkin from browser
cg
parents: 554
diff changeset
   112
            s next.
35f85d72be10 checkin from browser
cg
parents: 554
diff changeset
   113
        ].
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   114
        nm := JavaMethod retvalSpecFromStream:s in:nil.
67
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   115
        ^ nm
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   116
    ].
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   117
    ^ fullName
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   118
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   119
    "Modified: / 8.1.1998 / 19:11:37 / cg"
67
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   120
!
a72c949d86dd *** empty log message ***
cg
parents: 54
diff changeset
   121
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   122
deref
271
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   123
    |refClassName cls|
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   124
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   125
    (fullName startsWith:'[L') ifTrue:[
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   126
        refClassName := fullName copyFrom:3 to:(fullName indexOf:$;)-1.
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   127
        cls := Java at:refClassName.
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   128
        cls notNil ifTrue:[
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   129
            ^ cls
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   130
        ].
2841
6fa1bcf9c997 JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
   131
        ^ JavaUnresolvedClassConstant basicNew setBinaryName: refClassName
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   132
    ].
317
40ef89f043c1 checkin from browser
cg
parents: 313
diff changeset
   133
    (fullName startsWith:'[[C') ifTrue:[
40ef89f043c1 checkin from browser
cg
parents: 313
diff changeset
   134
        ^ JavaBuiltInClassPointerRef new nameandType:'[C'.
40ef89f043c1 checkin from browser
cg
parents: 313
diff changeset
   135
    ].
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   136
271
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   137
    "Created: / 7.4.1997 / 13:38:07 / cg"
317
40ef89f043c1 checkin from browser
cg
parents: 313
diff changeset
   138
    "Modified: / 6.2.1998 / 01:21:01 / cg"
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   139
!
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   140
21
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
   141
fullName
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
   142
    ^ fullName
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
   143
93
2b1e50b70bb1 checkin from browser
cg
parents: 90
diff changeset
   144
!
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   145
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   146
javaClass
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   147
    | cls  clsName |
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   148
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   149
    "/fullName first == $[ ifTrue:[self halt].
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   150
    fullName isNil ifTrue: [
399
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   151
        self preResolve.
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   152
        fullName isNil ifTrue: [ self halt. ]
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   153
    ].
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   154
    (fullName first = $[) ifTrue: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   155
        cls := (JavaDescriptor fromString: fullName) javaClass
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   156
    ] ifFalse: [ cls := JavaVM classForName: fullName ].
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   157
    constantPool at: constantPoolIndex put: cls.
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   158
    ^ cls
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   159
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   160
    "old code:"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   161
    "
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   162
     (fullName startsWith:$[) ifTrue:[
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   163
        self halt.
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   164
        clsName := self className.
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   165
        (Java classForName:clsName) ifNil:
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   166
            [self error: 'Cannot resolve class ' , clsName].
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   167
        cls := (JavaDescriptor fromString: fullName) javaClass.
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   168
     ] ifFalse:[
431
fe362bcc1aeb checkin from browser
cg
parents: 399
diff changeset
   169
        clsName := fullName
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   170
     ].
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   171
     cls := Java classForName:clsName.
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   172
     constantPool at: constantPoolIndex put: cls.
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   173
     ^cls"
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   174
    "Modified: / 10-11-1998 / 19:29:28 / cg"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   175
    "Modified: / 11-02-2011 / 07:53:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   176
!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   177
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   178
lastName
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2841
diff changeset
   179
    | idx |
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   180
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2841
diff changeset
   181
    idx := fullName lastIndexOf:$/.
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2841
diff changeset
   182
    ^ idx isNil ifTrue:[ fullName ] ifFalse:[ fullName copyFrom:idx + 1 ].
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   183
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   184
    "Created: / 18-10-2010 / 22:20:13 / Jan Vrany <jan.vrany@fit.cvut.cz>"
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2841
diff changeset
   185
    "Modified: / 04-08-2014 / 15:50:29 / Jan Vrany <jan.vrany@fit.cvut.cz>"
54
f37bcefb7091 avoid loading classes twice
cg
parents: 52
diff changeset
   186
!
f37bcefb7091 avoid loading classes twice
cg
parents: 52
diff changeset
   187
136
164d2741defd *** empty log message ***
cg
parents: 135
diff changeset
   188
name
360
e3df9401df00 use #copyReplaceAll:with:
cg
parents: 317
diff changeset
   189
    ^ fullName copyReplaceAll:$/ with:$.
136
164d2741defd *** empty log message ***
cg
parents: 135
diff changeset
   190
360
e3df9401df00 use #copyReplaceAll:with:
cg
parents: 317
diff changeset
   191
    "Created: / 7.2.1997 / 23:44:47 / cg"
e3df9401df00 use #copyReplaceAll:with:
cg
parents: 317
diff changeset
   192
    "Modified: / 18.7.1998 / 22:57:47 / cg"
136
164d2741defd *** empty log message ***
cg
parents: 135
diff changeset
   193
!
164d2741defd *** empty log message ***
cg
parents: 135
diff changeset
   194
313
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   195
pool:aPool poolIndex:slotIndex fullName:aString
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   196
    constantPool := aPool.
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   197
    constantPoolIndex := slotIndex.
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   198
    fullName := aString.
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   199
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   200
    "Created: / 4.2.1998 / 22:15:22 / cg"
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   201
!
e2488feeb885 *** empty log message ***
cg
parents: 271
diff changeset
   202
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   203
pool:aPool poolIndex:slotIndex nameIndex:name_index
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   204
    constantPool := aPool.
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   205
    constantPoolIndex := slotIndex.
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   206
    nameIndex := name_index.
21
b9dd73f299dd checkin from browser
cg
parents: 13
diff changeset
   207
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   208
!
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   209
2841
6fa1bcf9c997 JavaClass>>#name vs. #binaryName refactoring
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
   210
setBinaryName: aNameString 
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   211
    fullName := aNameString
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   212
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   213
    "Created: 7.4.1997 / 13:37:45 / cg"
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   214
!
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   215
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   216
smalltalkArrayClass
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   217
    (fullName startsWith:'[[') ifTrue:[
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   218
        ^ Array
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   219
    ].
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   220
    (fullName startsWith:'[F') ifTrue:[
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   221
        ^ FloatArray
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   222
    ].
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   223
    (fullName startsWith:'[B') ifTrue:[
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   224
        ^ ByteArray
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   225
    ].
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   226
    self halt.
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   227
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   228
    "Created: 7.4.1997 / 13:35:25 / cg"
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   229
! !
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   230
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   231
!JavaUnresolvedClassConstant methodsFor:'converting'!
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   232
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   233
asClassPointerRef
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   234
    (fullName startsWith:'[[') ifTrue:[
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   235
        ^ JavaClassPointerRef class:Array nameandType:fullName
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   236
    ].
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   237
    (fullName startsWith:'[F') ifTrue:[
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   238
        ^ JavaClassPointerRef class:FloatArray nameandType:fullName
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   239
    ].
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   240
    (fullName startsWith:'[B') ifTrue:[
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   241
        ^ JavaClassPointerRef class:ByteArray nameandType:fullName
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   242
    ].
271
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   243
    (fullName startsWith:'[C') ifTrue:[
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   244
        ^ JavaClassPointerRef class:String nameandType:fullName
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   245
    ].
168
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   246
    self halt.
90e39cb3fa04 *** empty log message ***
cg
parents: 148
diff changeset
   247
271
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   248
    "Created: / 7.4.1997 / 13:40:29 / cg"
a69c9491d69b checkin from browser
cg
parents: 264
diff changeset
   249
    "Modified: / 25.1.1998 / 19:56:54 / cg"
1
083530508d9c intitial checkin
cg
parents:
diff changeset
   250
! !
083530508d9c intitial checkin
cg
parents:
diff changeset
   251
41
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
   252
!JavaUnresolvedClassConstant methodsFor:'printing & storing'!
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
   253
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
   254
displayString
52
1dc41619b6f8 checkin from browser
cg
parents: 50
diff changeset
   255
    fullName isNil ifTrue:[
83
2d61ef3579e4 *** empty log message ***
cg
parents: 70
diff changeset
   256
        ^ 'UnresolvedClass(** nil **)'
52
1dc41619b6f8 checkin from browser
cg
parents: 50
diff changeset
   257
    ].
360
e3df9401df00 use #copyReplaceAll:with:
cg
parents: 317
diff changeset
   258
    ^ 'UnresolvedClass(' , (fullName copyReplaceAll:$/ with:$.) , ')'
e3df9401df00 use #copyReplaceAll:with:
cg
parents: 317
diff changeset
   259
e3df9401df00 use #copyReplaceAll:with:
cg
parents: 317
diff changeset
   260
    "Modified: / 18.7.1998 / 22:57:36 / cg"
41
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
   261
! !
eb7974d88088 checkin from browser
cg
parents: 32
diff changeset
   262
399
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   263
!JavaUnresolvedClassConstant methodsFor:'queries'!
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   264
625
b0d1764545b5 checkin from browser
cg
parents: 568
diff changeset
   265
isJavaClassRef
b0d1764545b5 checkin from browser
cg
parents: 568
diff changeset
   266
    ^ true
b0d1764545b5 checkin from browser
cg
parents: 568
diff changeset
   267
b0d1764545b5 checkin from browser
cg
parents: 568
diff changeset
   268
    "Created: / 9.11.1999 / 17:07:15 / cg"
b0d1764545b5 checkin from browser
cg
parents: 568
diff changeset
   269
!
b0d1764545b5 checkin from browser
cg
parents: 568
diff changeset
   270
399
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   271
isUnresolvedClass
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   272
    ^ true
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   273
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   274
    "Created: / 20.10.1998 / 17:43:36 / cg"
443
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   275
!
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   276
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   277
package
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   278
    "extract from the fullName"
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   279
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   280
    |components|
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   281
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   282
    components := fullName asCollectionOfSubstringsSeparatedBy:$/.
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   283
    components size > 1 ifTrue:[
2552
f4c15588965e Changed usage of deprecated #copyWithoutLast: to #copyButLast:
Stefan Vogel <sv@exept.de>
parents: 2396
diff changeset
   284
        ^ (components copyButLast:1) asStringWith:$/
443
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   285
    ].
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   286
    ^ fullName
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   287
f5c1f55d8bdb *** empty log message ***
cg
parents: 431
diff changeset
   288
    "Created: / 12.11.1998 / 21:11:30 / cg"
399
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   289
! !
94d37f2032a1 classloader fixes.
cg
parents: 392
diff changeset
   290
1
083530508d9c intitial checkin
cg
parents:
diff changeset
   291
!JavaUnresolvedClassConstant methodsFor:'resolving'!
083530508d9c intitial checkin
cg
parents:
diff changeset
   292
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   293
preResolve
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   294
    |clsName cls nm ref|
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   295
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   296
    fullName isNil ifTrue:[
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   297
        "/ first, resolve my name ...
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   298
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   299
        clsName := constantPool at:nameIndex.
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   300
        "/ DEBUGGING
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   301
        clsName isString ifFalse:[
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   302
            self halt:'oops - no class name string in const pool'.
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   303
        ].
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   304
        fullName := clsName
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   305
    ].
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   306
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   307
    "/ try to resolve the class
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   308
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   309
    (fullName size == 1) ifTrue:[
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   310
            "/ good - this is a primitive
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   311
            ref := JavaBuiltInClassPointerRef class:(JavaDescriptor fromString: fullName) javaClass nameandType:fullName.
2108
ca8c4e7db2e8 category change
Claus Gittinger <cg@exept.de>
parents: 749
diff changeset
   312
            constantPool at:constantPoolIndex put:ref.
ca8c4e7db2e8 category change
Claus Gittinger <cg@exept.de>
parents: 749
diff changeset
   313
            ^ ref
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   314
    ].
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   315
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   316
    (fullName includes:$[) ifFalse:[
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   317
        cls := Java classNamed:fullName.
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   318
        cls notNil ifTrue:[
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   319
            "/ good - the class is already loaded.
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   320
            constantPool at:constantPoolIndex put:cls.
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   321
            ^ cls
2108
ca8c4e7db2e8 category change
Claus Gittinger <cg@exept.de>
parents: 749
diff changeset
   322
        ].
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   323
    ] ifTrue:[
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   324
        "
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   325
            Deal with Sun's malformed class refs generated by
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   326
            sun.misc.ProxyGenerator -  it generates
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   327
            java/lang/annotation/ElementType[] instead of
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   328
            [Ljava/lang/annotation/ElementType[];
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   329
            as the spec requires!!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   330
        "
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   331
        (fullName last == $] and:[(fullName at: fullName size - 1) == $[]) ifTrue:
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   332
            [fullName := '[L', (fullName copyTo: fullName size - 2) , ';'].
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   333
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   334
        (fullName includes: $L) ifFalse:[
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   335
            "/ good - this is a primitive array
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   336
            ref := JavaBuiltInClassPointerRef class:(JavaDescriptor fromString: fullName) javaClass nameandType:fullName.
107
86a831b6728a *** empty log message ***
cg
parents: 93
diff changeset
   337
            constantPool at:constantPoolIndex put:ref.
86a831b6728a *** empty log message ***
cg
parents: 93
diff changeset
   338
            ^ ref
86a831b6728a *** empty log message ***
cg
parents: 93
diff changeset
   339
        ].
565
3e8984edfedb *** empty log message ***
cg
parents: 560
diff changeset
   340
    ].
3e8984edfedb *** empty log message ***
cg
parents: 560
diff changeset
   341
3e8984edfedb *** empty log message ***
cg
parents: 560
diff changeset
   342
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   343
    (fullName startsWith:$[) ifFalse:[
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   344
        nm := self className.
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   345
        self rememberForResolveWith:nm.            
50
458467ce0e15 checkin from browser
cg
parents: 41
diff changeset
   346
    ].
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   347
    ^ self
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   348
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   349
    "Created: / 15-04-1996 / 15:51:42 / cg"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   350
    "Modified: / 06-07-1999 / 23:41:04 / cg"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   351
    "Modified: / 11-02-2011 / 10:41:47 / Jan Vrany <jan.vrany@fit.cvut.cz>"
90
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   352
! !
918e2740098c resolve rewritten
cg
parents: 83
diff changeset
   353
135
098936234135 *** empty log message ***
cg
parents: 107
diff changeset
   354
!JavaUnresolvedClassConstant class methodsFor:'documentation'!
1
083530508d9c intitial checkin
cg
parents:
diff changeset
   355
083530508d9c intitial checkin
cg
parents:
diff changeset
   356
version
2678
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
   357
    ^ '$Header: /cvs/stx/stx/libjava/JavaUnresolvedClassConstant.st,v 1.49 2013-09-06 00:41:27 vrany Exp $'
2208
6413aafdbd1f changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 2151
diff changeset
   358
!
6413aafdbd1f changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 2151
diff changeset
   359
6413aafdbd1f changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 2151
diff changeset
   360
version_CVS
2678
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2552
diff changeset
   361
    ^ '$Header: /cvs/stx/stx/libjava/JavaUnresolvedClassConstant.st,v 1.49 2013-09-06 00:41:27 vrany Exp $'
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   362
!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   363
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2108
diff changeset
   364
version_SVN
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   365
    ^ 'Id'
2108
ca8c4e7db2e8 category change
Claus Gittinger <cg@exept.de>
parents: 749
diff changeset
   366
! !
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2208
diff changeset
   367