Index: . =================================================================== --- . (revision 601279) +++ . (working copy) @@ -294,8 +294,8 @@ public void testBcCaseBands() throws IOException, Pack200Exception { byte[] bytes = new byte[] {(byte)170,(byte)171, (byte)255, 2, 5, // bc_case_count - 8, 8, 8, 8, 8, 8, 8, // bc_case_value - 8, 8}; // bc_label + 8, 8, 8, 8, 8, 8, // bc_case_value + 8, 8, 8, 8, 8, 8, 8, 8, 8}; // bc_label InputStream in = new ByteArrayInputStream(bytes); bcBands.unpack(in); assertEquals(2, bcBands.getMethodByteCodePacked()[0][0].length); @@ -303,11 +303,9 @@ assertEquals(2, bc_case_count.length); assertEquals(2, bc_case_count[0]); assertEquals(5, bc_case_count[1]); - int[][] bc_case_value = bcBands.getBcCaseValue(); - assertEquals(2, bc_case_value.length); - assertEquals(2, bc_case_value[0].length); - assertEquals(5, bc_case_value[1].length); - assertEquals(2, bcBands.getBcLabel().length); + int[] bc_case_value = bcBands.getBcCaseValue(); + assertEquals(6, bc_case_value.length); + assertEquals(9, bcBands.getBcLabel().length); } /** @@ -381,7 +379,7 @@ 0, 0, // bc_case_count (required by tableswitch (170) and lookupswitch (171)) // Now that we're actually doing real label lookup, need valid labels // 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8 }; // bc_label band - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // bc_label band + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // bc_label band InputStream in = new ByteArrayInputStream(bytes); bcBands.unpack(in); assertEquals(16, bcBands.getMethodByteCodePacked()[0][0].length);