Puts the JVMS exception_table corresponding to the Handler list that begins with the given element. This includes the exception_table_length field. @param firstHandler the beginning of a Handler list. May be null . @param output where the exception_table_length and exception_table st
(final Handler firstHandler, final ByteVector output)
| 184 | * @param output where the exception_table_length and exception_table structures must be put. |
| 185 | */ |
| 186 | static void putExceptionTable(final Handler firstHandler, final ByteVector output) { |
| 187 | output.putShort(getExceptionTableLength(firstHandler)); |
| 188 | Handler handler = firstHandler; |
| 189 | while (handler != null) { |
| 190 | output |
| 191 | .putShort(handler.startPc.bytecodeOffset) |
| 192 | .putShort(handler.endPc.bytecodeOffset) |
| 193 | .putShort(handler.handlerPc.bytecodeOffset) |
| 194 | .putShort(handler.catchType); |
| 195 | handler = handler.nextHandler; |
| 196 | } |
| 197 | } |
| 198 | } |
no test coverage detected