From 54e12b5549908cdcacb9b0be463ae396b133fc5b Mon Sep 17 00:00:00 2001 From: E <23386186+Ekats@users.noreply.github.com> Date: Mon, 4 May 2026 21:27:10 +0300 Subject: [PATCH] Fix FaultTest line numbers after SPDX header shift MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 7113bb4 added 2 SPDX lines to FaultApplet.java but did not bump FaultTest's line refs. The IFEQ for `if (branch != 0)` moved from line 62 to 64, so the flip no longer fires and testFault returned 0x6f00 instead of 0x9000. The second ref (line 24) pointed at `foo = (byte[]) tmp;` — no conditional jump for the interceptor to flip, no-op even before the shift. Removed. --- .../src/test/java/com/licel/jcardsim/base/FaultTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/simulator/src/test/java/com/licel/jcardsim/base/FaultTest.java b/simulator/src/test/java/com/licel/jcardsim/base/FaultTest.java index c3dd40a5..f46e2d6e 100644 --- a/simulator/src/test/java/com/licel/jcardsim/base/FaultTest.java +++ b/simulator/src/test/java/com/licel/jcardsim/base/FaultTest.java @@ -17,9 +17,7 @@ public class FaultTest { public void testFault() { // Flip condition on step 2 (SELECT is step 1, the test command is step 2) var config = FaultyConfig.builder() - .faultyAt(2, FaultApplet.class, 62) - .faultyAt(2, FaultApplet.class, 24) - + .faultyAt(2, FaultApplet.class, 64) .build(); var instance = new Simulator(config); var aid = AIDUtil.create("010203040506");