I noticed that calling 
ListedLicenses.getListedLicenses().getLIcenseListVersion() returns "2.1 Jun 30, 
2015”, which is the version followed by a date. While informative, this 
“version” can’t be used to set the license list version of an SPDX document, as 
the spec requires the latter to be of the form “M.N”, where M is the major 
number and N is the minor. And here it gets interesting:


  *   The javadoc for the method is "Version of the license list being used by 
the SPDXLicenseInfoFactory”. This not only does not describe what behavior to 
expect, but references a deprecated class. If the version followed by a date is 
the expected output of this method, we should document it, so that the consumer 
may know to parse out the date in setting the license list version property on 
an SPDX document.
  *   It might be easier for SPDX tools just to set the license list version of 
the document by default, so that the API user doesn’t even have to worry about 
it.

I’m happy to make the changes, just want to be sure I’m not missing anything.

Thanks.

Yev
_______________________________________________
Spdx-tech mailing list
[email protected]
https://lists.spdx.org/mailman/listinfo/spdx-tech

Reply via email to