@@ -99,7 +99,7 @@ public void setup() throws Exception {
9999 @ Test
100100 public void should_not_modify_class_bytes_to_support_next_version ()
101101 throws Exception {
102- final byte [] originalBytes = createClass (Opcodes .V14 + 1 );
102+ final byte [] originalBytes = createClass (Opcodes .V15 + 1 );
103103 final byte [] bytes = new byte [originalBytes .length ];
104104 System .arraycopy (originalBytes , 0 , bytes , 0 , originalBytes .length );
105105 final long expectedClassId = CRC64 .classId (bytes );
@@ -122,14 +122,14 @@ private static byte[] createClass(final int version) {
122122 */
123123 @ Test
124124 public void instrument_should_throw_exception_for_unsupported_class_file_version () {
125- final byte [] bytes = createClass (Opcodes .V14 + 2 );
125+ final byte [] bytes = createClass (Opcodes .V15 + 2 );
126126 try {
127127 instrumenter .instrument (bytes , "UnsupportedVersion" );
128128 fail ("exception expected" );
129129 } catch (final IOException e ) {
130130 assertEquals ("Error while instrumenting UnsupportedVersion." ,
131131 e .getMessage ());
132- assertEquals ("Unsupported class file major version 60 " ,
132+ assertEquals ("Unsupported class file major version 61 " ,
133133 e .getCause ().getMessage ());
134134 }
135135 }
@@ -224,15 +224,15 @@ public void testSerialization() throws Exception {
224224 */
225225 @ Test
226226 public void instrumentAll_should_throw_exception_for_unsupported_class_file_version () {
227- final byte [] bytes = createClass (Opcodes .V14 + 2 );
227+ final byte [] bytes = createClass (Opcodes .V15 + 2 );
228228 try {
229229 instrumenter .instrumentAll (new ByteArrayInputStream (bytes ),
230230 new ByteArrayOutputStream (), "UnsupportedVersion" );
231231 fail ("exception expected" );
232232 } catch (final IOException e ) {
233233 assertEquals ("Error while instrumenting UnsupportedVersion." ,
234234 e .getMessage ());
235- assertEquals ("Unsupported class file major version 60 " ,
235+ assertEquals ("Unsupported class file major version 61 " ,
236236 e .getCause ().getMessage ());
237237 }
238238 }
0 commit comments