Skip to content

Add back exception signature#402

Merged
goneall merged 1 commit intomasterfrom
excsig
Mar 12, 2026
Merged

Add back exception signature#402
goneall merged 1 commit intomasterfrom
excsig

Conversation

@goneall
Copy link
Member

@goneall goneall commented Mar 12, 2026

Add back the InvalidLicenseStringException to the
parseSPDXLicenseStringCompatV2 license signature.

The previous PR removed this due to a compiler warning. The change, however, breaks compatibility (e.g. the spdx-java-spreadsheet-store no longer compiles with the signature removed).

We could / should remove it in the future but it may be considered a breaking change. Not something for a patch release.

Add back the InvalidLicenseStringException to the
parseSPDXLicenseStringCompatV2 license signature.

The previous PR removed this due to a compiler warning.  The change,
however, breaks compatibility (e.g. the spdx-java-spreadsheet-store no
longer compiles with the signature removed).

We could / should remove it in the future but it may be considered a
breaking change.  Not something for a patch release.

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
@goneall goneall requested review from bact and pmonks March 12, 2026 20:38
Copy link
Collaborator

@pmonks pmonks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I saw that in the prior PR but wasn't sure if reducing the list of thrown exceptions was backwards compatibility breaking in Java or not. I guess I got my answer! 😉

@goneall
Copy link
Member Author

goneall commented Mar 12, 2026

Yeah I saw that in the prior PR but wasn't sure if reducing the list of thrown exceptions was backwards compatibility breaking in Java or not. I guess I got my answer! 😉

This surprised me a bit - but I'm glad I caught it before release!

Thanks @pmonks and @bact for the quick reviews!

@goneall goneall merged commit 0230dc2 into master Mar 12, 2026
1 check passed
@goneall goneall deleted the excsig branch March 12, 2026 20:43
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.

2 participants