Skip to content

Fix FaultTest line numbers after SPDX header shift#21

Open
Ekats wants to merge 1 commit into
martinpaljak:nextfrom
Ekats:fix-faulttest-line-numbers
Open

Fix FaultTest line numbers after SPDX header shift#21
Ekats wants to merge 1 commit into
martinpaljak:nextfrom
Ekats:fix-faulttest-line-numbers

Conversation

@Ekats

@Ekats Ekats commented May 4, 2026

Copy link
Copy Markdown

Summary

Commit 7113bb4 (Switch license headers to SPDX/REUSE) added 2 SPDX lines to the top of every file, including FaultApplet.java, but didn't bump the line refs in FaultTest. 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, so it was a no-op even before the shift. Removed.

Test plan

  • ./mvnw -pl simulator test -Dtest=FaultTesttestFault and testNoFault both pass
  • ./mvnw clean install — 218 tests, 0 failures, 0 errors

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant