Skip to content

Handle InvalidLicenseExpression types converting from SPDX 2 to 3#407

Open
goneall wants to merge 2 commits intomasterfrom
issue406
Open

Handle InvalidLicenseExpression types converting from SPDX 2 to 3#407
goneall wants to merge 2 commits intomasterfrom
issue406

Conversation

@goneall
Copy link
Copy Markdown
Member

@goneall goneall commented Mar 31, 2026

Fixes #406

Fixes 406

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
* @return an SPDX spec version 3 InvalidLicenseExpression
* @throws InvalidSPDXAnalysisException on any errors converting
*/
public InvalidLicenseExpression convertAndStore(org.spdx.library.model.v2.license.InvalidLicenseExpression fromInvalidExpression) throws InvalidSPDXAnalysisException {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
public InvalidLicenseExpression convertAndStore(org.spdx.library.model.v2.license.InvalidLicenseExpression fromInvalidExpression) throws InvalidSPDXAnalysisException {
public InvalidLicenseExpression convertAndStore(org.spdx.library.model.v2.license.InvalidLicenseExpression fromInvalidLicenseExpression) throws InvalidSPDXAnalysisException {

Since this is a public API, should we keep the full name here?

(I see an example from ExtractedLicenseInfo -> fromExtractedLicenseInfo at line 802)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point - I'll update the parameter name

Signed-off-by: Gary O'Neall <gary@sourceauditor.com>
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.

SPDX Conversion from SPDX 2.X to SPDX 3.X fails if there is an InvalidLicenseExpression

2 participants