JavaExceptionTableEntry.st
author vranyj1
Fri, 19 Aug 2011 08:58:19 +0000
changeset 749 e898eaeff091
parent 748 da0840b7798c
child 2108 ca8c4e7db2e8
permissions -rw-r--r--
Synchronized with CVS repository at: :ext:vrany@dialin.exept.de:/cvs/stx
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
     1
"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
     2
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
     3
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
     4
                            SWING Research Group, Czech Technical University in Prague
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
     5
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
     6
 Parts of the code written by Claus Gittinger are under following
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
     7
 license:
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
     8
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
     9
 This software is furnished under a license and may be used
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    10
 only in accordance with the terms of that license and with the
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    11
 inclusion of the above copyright notice.   This software may not
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    12
 be provided or otherwise made available to, or used by, any
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    13
 other person.  No title to or ownership of the software is
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    14
 hereby transferred.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    15
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    16
 Parts of the code written at SWING Reasearch Group [1] are MIT licensed:
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    17
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    18
 Permission is hereby granted, free of charge, to any person
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    19
 obtaining a copy of this software and associated documentation
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    20
 files (the 'Software'), to deal in the Software without
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    21
 restriction, including without limitation the rights to use,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    22
 copy, modify, merge, publish, distribute, sublicense, and/or sell
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    23
 copies of the Software, and to permit persons to whom the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    24
 Software is furnished to do so, subject to the following
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    25
 conditions:
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    26
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    27
 The above copyright notice and this permission notice shall be
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    28
 included in all copies or substantial portions of the Software.
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    29
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    30
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    31
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    32
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    33
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    34
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    35
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    36
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    37
 OTHER DEALINGS IN THE SOFTWARE.
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    38
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    39
 [1] Code written at SWING Research Group contain a signature
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    40
     of one of the above copright owners.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    41
"
713
75e92ac63bf1 category change
cg
parents: 454
diff changeset
    42
"{ Package: 'stx:libjava' }"
75e92ac63bf1 category change
cg
parents: 454
diff changeset
    43
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
    44
Object subclass:#JavaExceptionTableEntry
b23a6474754f intitial checkin
cg
parents:
diff changeset
    45
	instanceVariableNames:'startPC endPC handlerPC catchType'
b23a6474754f intitial checkin
cg
parents:
diff changeset
    46
	classVariableNames:''
b23a6474754f intitial checkin
cg
parents:
diff changeset
    47
	poolDictionaries:''
713
75e92ac63bf1 category change
cg
parents: 454
diff changeset
    48
	category:'Languages-Java-Support'
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
    49
!
b23a6474754f intitial checkin
cg
parents:
diff changeset
    50
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    51
!JavaExceptionTableEntry class methodsFor:'documentation'!
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    52
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    53
copyright
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    54
"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    55
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    56
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    57
                            SWING Research Group, Czech Technical University in Prague
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    58
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    59
 Parts of the code written by Claus Gittinger are under following
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    60
 license:
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    61
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    62
 This software is furnished under a license and may be used
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    63
 only in accordance with the terms of that license and with the
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    64
 inclusion of the above copyright notice.   This software may not
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    65
 be provided or otherwise made available to, or used by, any
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    66
 other person.  No title to or ownership of the software is
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    67
 hereby transferred.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    68
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    69
 Parts of the code written at SWING Reasearch Group [1] are MIT licensed:
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    70
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    71
 Permission is hereby granted, free of charge, to any person
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    72
 obtaining a copy of this software and associated documentation
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    73
 files (the 'Software'), to deal in the Software without
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    74
 restriction, including without limitation the rights to use,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    75
 copy, modify, merge, publish, distribute, sublicense, and/or sell
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    76
 copies of the Software, and to permit persons to whom the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    77
 Software is furnished to do so, subject to the following
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    78
 conditions:
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    79
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    80
 The above copyright notice and this permission notice shall be
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    81
 included in all copies or substantial portions of the Software.
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    82
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    83
 THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    84
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    85
 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    86
 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    87
 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    88
 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    89
 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    90
 OTHER DEALINGS IN THE SOFTWARE.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    91
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    92
 [1] Code written at SWING Research Group contain a signature
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    93
     of one of the above copright owners.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    94
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
    95
"
454
38f590639d65 *** empty log message ***
cg
parents: 264
diff changeset
    96
! !
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
    97
135
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
    98
!JavaExceptionTableEntry class methodsFor:'instance creation'!
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
    99
b23a6474754f intitial checkin
cg
parents:
diff changeset
   100
startPC:start_pc endPC:end_pc handlerPC:handler_pc catchType:catch_type
b23a6474754f intitial checkin
cg
parents:
diff changeset
   101
    ^ self new startPC:start_pc endPC:end_pc handlerPC:handler_pc catchType:catch_type
b23a6474754f intitial checkin
cg
parents:
diff changeset
   102
b23a6474754f intitial checkin
cg
parents:
diff changeset
   103
    "Created: 16.4.1996 / 12:11:13 / cg"
b23a6474754f intitial checkin
cg
parents:
diff changeset
   104
! !
b23a6474754f intitial checkin
cg
parents:
diff changeset
   105
135
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   106
!JavaExceptionTableEntry methodsFor:'accessing'!
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   107
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   108
catchType
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   109
    "return the value of the instance variable 'catchType' (automatically generated)"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   110
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   111
    ^ catchType
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   112
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   113
    "Created: 7.2.1997 / 21:01:23 / cg"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   114
!
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   115
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   116
endPC
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   117
    "return the value of the instance variable 'endPC' (automatically generated)"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   118
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   119
    ^ endPC
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   120
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   121
    "Created: 7.2.1997 / 20:53:23 / cg"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   122
!
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   123
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   124
handlerPC
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   125
    "return the value of the instance variable 'handlerPC' (automatically generated)"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   126
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   127
    ^ handlerPC
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   128
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   129
    "Created: 7.2.1997 / 20:06:31 / cg"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   130
!
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   131
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   132
startPC
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   133
    "return the value of the instance variable 'startPC' (automatically generated)"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   134
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   135
    ^ startPC
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   136
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   137
    "Created: 7.2.1997 / 20:53:20 / cg"
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   138
! !
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   139
164
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   140
!JavaExceptionTableEntry methodsFor:'printing & storing'!
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   141
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   142
displayString
226
a48121c92205 better displayString
cg
parents: 164
diff changeset
   143
    ^ super displayString , '(' , catchType displayString,
a48121c92205 better displayString
cg
parents: 164
diff changeset
   144
                                  ' in ' , startPC printString , '..' ,
164
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   145
                                  endPC printString , '->' ,
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   146
                                  handlerPC printString , ')'
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   147
226
a48121c92205 better displayString
cg
parents: 164
diff changeset
   148
    "Modified: 15.8.1997 / 03:33:51 / cg"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   149
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   150
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   151
printOn: aStream
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   152
    super printOn: aStream.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   153
    aStream nextPut:$(.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   154
    catchType printOn: aStream.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   155
    aStream nextPutAll:' in ' , startPC printString , '..' ,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   156
                                  endPC printString , '->' ,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   157
                                  handlerPC printString , ')'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   158
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   159
    "Modified: / 15-08-1997 / 03:33:51 / cg"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   160
    "Created: / 25-02-2011 / 09:08:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
164
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   161
! !
724c443e6f79 *** empty log message ***
cg
parents: 135
diff changeset
   162
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
   163
!JavaExceptionTableEntry methodsFor:'private accessing'!
b23a6474754f intitial checkin
cg
parents:
diff changeset
   164
47
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   165
handlerPCFor:exception at:pc in:aMethod
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   166
    "if there is a handler for exceptionClass, with given pc,
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   167
     return the handler-PC; otherwise, return nil."
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   168
107
86a831b6728a *** empty log message ***
cg
parents: 100
diff changeset
   169
    |cls|
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   170
    "JV+MH@2011-02-25: You may wonder why there is endPC - 1:
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   171
    The Java VM Spec, 3rd edition, sec 4.7.3, page 78:
47
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   172
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   173
    The fact that end_pc is exclusive is a historical mistake in the design of the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   174
    Java virtual machine: if the Java virtual machine code for a method is exactly
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   175
    65535 bytes long and ends with an instruction that is 1 byte long, then that
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   176
    instruction cannot be protected by an exception handler. A compiler writer can
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   177
    work around this bug by limiting the maximum size of the generated Java
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   178
    virtual machine code for any method, instance initialization method, or static
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   179
    initializer (the size of any code array) to 65534 bytes.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   180
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   181
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   182
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   183
    (pc between:startPC and:endPC - 1) ifTrue:[
107
86a831b6728a *** empty log message ***
cg
parents: 100
diff changeset
   184
        (catchType == 0) ifTrue:[^ handlerPC].
122
e731a1c1d499 *** empty log message ***
cg
parents: 114
diff changeset
   185
        (catchType isNil) ifTrue:[^ handlerPC].
100
4b0da648dcc5 *** empty log message ***
cg
parents: 91
diff changeset
   186
        cls := aMethod javaClass.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   187
        catchType := catchType javaClass.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   188
107
86a831b6728a *** empty log message ***
cg
parents: 100
diff changeset
   189
        (catchType isKindOf:JavaClass) ifFalse:[
47
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   190
            self halt.
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   191
            ^ nil
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   192
        ].
111
23243f9273fa *** empty log message ***
cg
parents: 107
diff changeset
   193
        (exception isKindOf:catchType) ifTrue:[
47
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   194
            ^ handlerPC
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   195
        ].
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   196
        ^ nil
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   197
    ].
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   198
    ^ nil
255
2d8b3948a08a *** empty log message ***
cg
parents: 226
diff changeset
   199
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   200
    "Modified: / 07-01-1998 / 15:30:14 / cg"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   201
    "Modified: / 31-05-2011 / 09:53:46 / Jan Vrany <jan.vrany@fit.cvut.cz>"
47
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   202
!
b5f63f59c2c1 some net primitives added
cg
parents: 6
diff changeset
   203
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
   204
startPC:start_pc endPC:end_pc handlerPC:handler_pc catchType:catch_type
b23a6474754f intitial checkin
cg
parents:
diff changeset
   205
    startPC := start_pc.
b23a6474754f intitial checkin
cg
parents:
diff changeset
   206
    endPC := end_pc.
b23a6474754f intitial checkin
cg
parents:
diff changeset
   207
    handlerPC := handler_pc.
b23a6474754f intitial checkin
cg
parents:
diff changeset
   208
    catchType := catch_type
b23a6474754f intitial checkin
cg
parents:
diff changeset
   209
b23a6474754f intitial checkin
cg
parents:
diff changeset
   210
    "Created: 16.4.1996 / 12:11:45 / cg"
b23a6474754f intitial checkin
cg
parents:
diff changeset
   211
! !
b23a6474754f intitial checkin
cg
parents:
diff changeset
   212
135
098936234135 *** empty log message ***
cg
parents: 122
diff changeset
   213
!JavaExceptionTableEntry class methodsFor:'documentation'!
6
b23a6474754f intitial checkin
cg
parents:
diff changeset
   214
b23a6474754f intitial checkin
cg
parents:
diff changeset
   215
version
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   216
    ^ '$Id: JavaExceptionTableEntry.st,v 1.16 2011/08/18 18:42:48 vrany Exp $'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   217
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   218
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   219
version_SVN
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   220
    ^ '$Id: JavaExceptionTableEntry.st,v 1.16 2011/08/18 18:42:48 vrany Exp $'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents: 748
diff changeset
   221
! !