@@ -78,13 +78,15 @@ public static class LineNumberTables {
7878 //~ Constructors -------------------------------------------------------------------------------------------------------------
7979
8080 LineNumberTables (ClassInfo ci ) {
81- byte [] classBuf = null ;
81+ byte [] classBuf ;
8282
8383 try {
8484 classBuf = ci .getClassFileBytes ();
8585 } 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+ }
8890
8991 int nMethods = ci .getMethodNames ().length ;
9092 startPCs = new char [nMethods ][];
@@ -243,13 +245,15 @@ public static class LocalVariableTables {
243245 }
244246
245247 private LocalVariableTables (ClassInfo ci , int [] tablesOffsets , char [] tablesLengths ) {
246- byte [] classBuf = null ;
248+ byte [] classBuf ;
247249
248250 try {
249251 classBuf = ci .getClassFileBytes ();
250252 } 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+ }
253257
254258 int nMethods = ci .getMethodNames ().length ;
255259 startPCs = new char [nMethods ][];
@@ -335,13 +339,15 @@ public class StackMapTables {
335339 private boolean hasTable ;
336340
337341 StackMapTables () {
338- byte [] classBuf = null ;
342+ byte [] classBuf ;
339343
340344 try {
341345 classBuf = ClassInfo .this .getClassFileBytes ();
342346 } 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+ }
345351
346352 int nMethods = ClassInfo .this .getMethodNames ().length ;
347353 frames = new StackMapFrame [nMethods ][];
0 commit comments