@@ -78,13 +78,15 @@ public static class LineNumberTables {
78
78
//~ Constructors -------------------------------------------------------------------------------------------------------------
79
79
80
80
LineNumberTables (ClassInfo ci ) {
81
- byte [] classBuf = null ;
81
+ byte [] classBuf ;
82
82
83
83
try {
84
84
classBuf = ci .getClassFileBytes ();
85
85
} catch (IOException ex1 ) { // Should not happen - class file already loaded once by this time
86
- } catch (ClassNotFoundException ex2 ) {
87
- } // Ditto
86
+ throw new RuntimeException (ex1 );
87
+ } catch (ClassNotFoundException ex2 ) { // Dtto
88
+ throw new RuntimeException (ex2 );
89
+ }
88
90
89
91
int nMethods = ci .getMethodNames ().length ;
90
92
startPCs = new char [nMethods ][];
@@ -243,13 +245,15 @@ public static class LocalVariableTables {
243
245
}
244
246
245
247
private LocalVariableTables (ClassInfo ci , int [] tablesOffsets , char [] tablesLengths ) {
246
- byte [] classBuf = null ;
248
+ byte [] classBuf ;
247
249
248
250
try {
249
251
classBuf = ci .getClassFileBytes ();
250
252
} catch (IOException ex1 ) { // Should not happen - class file already loaded once by this time
251
- } catch (ClassNotFoundException ex2 ) {
252
- } // Ditto
253
+ throw new RuntimeException (ex1 );
254
+ } catch (ClassNotFoundException ex2 ) { // Ditto
255
+ throw new RuntimeException (ex2 );
256
+ }
253
257
254
258
int nMethods = ci .getMethodNames ().length ;
255
259
startPCs = new char [nMethods ][];
@@ -335,13 +339,15 @@ public class StackMapTables {
335
339
private boolean hasTable ;
336
340
337
341
StackMapTables () {
338
- byte [] classBuf = null ;
342
+ byte [] classBuf ;
339
343
340
344
try {
341
345
classBuf = ClassInfo .this .getClassFileBytes ();
342
346
} catch (IOException ex1 ) { // Should not happen - class file already loaded once by this time
343
- } catch (ClassNotFoundException ex2 ) {
344
- } // Ditto
347
+ throw new RuntimeException (ex1 );
348
+ } catch (ClassNotFoundException ex2 ) { // Ditto
349
+ throw new RuntimeException (ex2 );
350
+ }
345
351
346
352
int nMethods = ClassInfo .this .getMethodNames ().length ;
347
353
frames = new StackMapFrame [nMethods ][];
0 commit comments