https://bugs.linuxfoundation.org/show_bug.cgi?id=1297
Bug #: 1297
Summary: ClassCastException with data licenses where restricted
to local licenses only
Product: SPDX
Version: 2.0
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Pretty Printer
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
In SpdxDocumentContainer, there is this line:
dataLicense =
(SpdxListedLicense)(LicenseInfoFactory.parseSPDXLicenseString(SPDX_DATA_LICENSE_ID,
this));
This poses a problem when running the SPDXParser.OnlyUseLocalLicenses system
property is set to true. Should this happen, even the parser not match the
hardcoded constant ("CC0-1.0") to a listed license and will instead return an
ExtractedLicenseInfo, resulting in a ClassCastException.
Since the class cast is otherwise a no-op, it should be removed.
--
Configure bugmail: https://bugs.linuxfoundation.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech