@@ -725,8 +725,7 @@ public void testStringException() {
725725 assertEquals (ISO7816 .SW_FUNC_NOT_SUPPORTED , responseApdu .getSW ());
726726 }
727727
728- //@Test
729- // FIXME: sometimes this fails with JDK-11 for some reason from line 835 onwards
728+ @ Test
730729 public void testTLVException () {
731730 Simulator instance = getReadySimulator ();
732731
@@ -829,11 +828,11 @@ public void testTLVException() {
829828 assertEquals (ISO7816 .SW_FUNC_NOT_SUPPORTED , responseApdu .getSW ());
830829
831830 // Test TLVException.TAG_SIZE_GREATER_THAN_127 with try catch
832- // apdu = new byte[]{CLA_TLV_EXCEPTION, INS_HAS_CATCH_EXCEPTION, 0, 0};
833- // Util.setShort(apdu, ISO7816.OFFSET_P1, TLVException.TAG_SIZE_GREATER_THAN_127);
834- // result = instance.transmitCommand(apdu);
835- // responseApdu = new ResponseAPDU(result);
836- // assertEquals(ISO7816.SW_FUNC_NOT_SUPPORTED, responseApdu.getSW());
831+ apdu = new byte []{CLA_TLV_EXCEPTION , INS_HAS_CATCH_EXCEPTION , 0 , 0 };
832+ Util .setShort (apdu , ISO7816 .OFFSET_P1 , TLVException .TAG_SIZE_GREATER_THAN_127 );
833+ result = instance .transmitCommand (apdu );
834+ responseApdu = new ResponseAPDU (result );
835+ assertEquals (ISO7816 .SW_FUNC_NOT_SUPPORTED , responseApdu .getSW ());
837836
838837 // Test TLVException.TAG_NUMBER_GREATER_THAN_32767 with try catch
839838 apdu = new byte []{CLA_TLV_EXCEPTION , INS_HAS_CATCH_EXCEPTION , 0 , 0 };
0 commit comments