Hibernate-jipijapa 5.4.21.Final - issue in org.jboss.as.jpa.hibernate5.management.HibernateStatistics

Description

Trying to integrate hibernate orm 5.4.21.Final in Wildfly 20.0.1.Final, In the module Hibernate JipiJapa

https://mvnrepository.com/artifact/org.hibernate/hibernate-jipijapa/5.4.21.Final

came across an issue in the class - org.jboss.as.jpa.hibernate5.management.HibernateStatistics.

Line # 185 in source code has this code (+ 3 more instances in this class - in the constructor):
getChildrenNames().add( ENTITY );

But the “getChildrenNames()” is defined in the superclass org.jboss.as.jpa.hibernate5.management.HibernateAbstractStatistics returns an unmodifiableSet
@Override
public Set getChildrenNames() {
return Collections.unmodifiableSet( childrenNames );
}
hence raising an exception java.lang.UnsupportedOperationException

Environment

Wildfly - wildfly-20.0.1.Final, JDK 11

Activity

Show:
Nathan Xu
September 2, 2020, 1:58 AM

seems duplicated with

Nathan Xu
September 2, 2020, 3:50 AM

PR created at:

Vijay Pandey
September 2, 2020, 4:11 AM

Thanks Nathan Xu

Nathan Xu
September 2, 2020, 12:58 PM

It turns out another PR has already been created for HHH-13378: Closed my PR. Seems it impacts 5.4 still.

Vijay Pandey
September 2, 2020, 3:58 PM

I hope this gets in the next release, look like this PR has been there since 2019.

Assignee

Unassigned

Reporter

Vijay Pandey

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

5.3.17

Affects versions

Priority

Major
Configure