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