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

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


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
public Set getChildrenNames() {
return Collections.unmodifiableSet( childrenNames );

hence raising an exception java.lang.UnsupportedOperationException

1 Like