[hibernate-issues] [JIRA] (HHH-14082) Hibernate cannot determine it's own version in modular configuration

Márk Zalavári (JIRA) jira at hibernate.atlassian.net
Fri Jun 19 10:04:57 EDT 2020


Márk Zalavári ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A621fb265-0e89-4ec4-952d-5b95a3aabd4a ) *created* an issue

Hibernate ORM ( https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiZjFiNTJmZTRkNTNjNDA4ZWI1ZDUzYjBlZjFkMzdhZGEiLCJwIjoiaiJ9 ) / Bug ( https://hibernate.atlassian.net/browse/HHH-14082?atlOrigin=eyJpIjoiZjFiNTJmZTRkNTNjNDA4ZWI1ZDUzYjBlZjFkMzdhZGEiLCJwIjoiaiJ9 ) HHH-14082 ( https://hibernate.atlassian.net/browse/HHH-14082?atlOrigin=eyJpIjoiZjFiNTJmZTRkNTNjNDA4ZWI1ZDUzYjBlZjFkMzdhZGEiLCJwIjoiaiJ9 ) Hibernate cannot determine it's own version in modular configuration ( https://hibernate.atlassian.net/browse/HHH-14082?atlOrigin=eyJpIjoiZjFiNTJmZTRkNTNjNDA4ZWI1ZDUzYjBlZjFkMzdhZGEiLCJwIjoiaiJ9 )

Issue Type: Bug Affects Versions: 5.4.17 Assignee: Unassigned Components: hibernate-core Created: 19/Jun/2020 07:04 AM Environment: OpenJDK 11.0.7
Spring Boot 2.3.1
Spring 5.2.7
Hibernate 5.4.17 Priority: Minor Reporter: Márk Zalavári ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A621fb265-0e89-4ec4-952d-5b95a3aabd4a )

When Hibernate is initialized in a modular configuration, the org.hibernate.Version.getVersionString() method returns the "WORKING" String instead of the version. ( org.hibernate.annotations.common.Version is working perfectly)

2020-06-19 15:47:47.939  INFO 40280 --- [           main] o.hibernate.jpa.internal.util.LogHelper  : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-06-19 15:47:47.967  INFO 40280 --- [           main] org.hibernate.Version                    : HHH000412: Hibernate ORM core version [WORKING]
2020-06-19 15:47:48.026  INFO 40280 --- [           main] o.hibernate.annotations.common.Version   : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}

Currently the Version gets the information via:

Version. class. getPackage().getImplementationVersion()

But in modular mode it should call this instead:

Version. class. getModule().getDescriptor().version() 

(I know that's not a possibility for now due to source level 1.8, but maybe in the future...)

( https://hibernate.atlassian.net/browse/HHH-14082#add-comment?atlOrigin=eyJpIjoiZjFiNTJmZTRkNTNjNDA4ZWI1ZDUzYjBlZjFkMzdhZGEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-14082#add-comment?atlOrigin=eyJpIjoiZjFiNTJmZTRkNTNjNDA4ZWI1ZDUzYjBlZjFkMzdhZGEiLCJwIjoiaiJ9 )

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#100130- sha1:5f5b10c )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200619/b14b4fdc/attachment.html 


More information about the hibernate-issues mailing list