[JIRA] (OSJ-349) Version.getVersion() does not work when using JPMS
Marcus Hert da Coregio (Jira)
jira at shibboleth.atlassian.net
Thu Jan 27 20:03:19 UTC 2022
Marcus Hert da Coregio ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A59830fca-3db6-4669-8c1e-b4b2c111a8e5 ) *commented* on OSJ-349 ( https://shibboleth.atlassian.net/browse/OSJ-349?atlOrigin=eyJpIjoiYTViOGI3NGM1NGNhNGI3YWIyYWVkMDljMGY3ZGE0NGEiLCJwIjoiaiJ9 )
Re: Version.getVersion() does not work when using JPMS ( https://shibboleth.atlassian.net/browse/OSJ-349?atlOrigin=eyJpIjoiYTViOGI3NGM1NGNhNGI3YWIyYWVkMDljMGY3ZGE0NGEiLCJwIjoiaiJ9 )
>
>
>
> There is also another way to workaround this problem, that is doing like
> so Version.class.getModule().getDescriptor().version().get() , but since getModule()
> is a JDK 9 feature, this code does not compile with Java 8.
>
>
Actually, rephrasing that, it would be nicer to just be able to call getVersion() regardless of whether or not an application is using JPMS.
( https://shibboleth.atlassian.net/browse/OSJ-349#add-comment?atlOrigin=eyJpIjoiYTViOGI3NGM1NGNhNGI3YWIyYWVkMDljMGY3ZGE0NGEiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/OSJ-349#add-comment?atlOrigin=eyJpIjoiYTViOGI3NGM1NGNhNGI3YWIyYWVkMDljMGY3ZGE0NGEiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100189- sha1:0bbbf41 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20220127/fe5f111e/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-51bb0e8c-1d49-44cd-9a78-16d8bd47a90c
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220127/fe5f111e/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-53967b00-0fc7-4939-b810-746867ee85a9
Type: image/png
Size: 425 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220127/fe5f111e/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-0d3fed5b-19c2-43bb-98ac-762c45b59882
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20220127/fe5f111e/attachment-0005.png>
More information about the commits
mailing list