|
Hi Steve,
I have been running into the same problem as HHH-2277 bidirectional <key-many-to-one> both lazy=false fetch=join lead to infinite loop using Hibernate 4.3.6.Final.
I have done some digging and feel I have a fix for this, however I cannot get a clean run of the unit tests. I am not sure how to proceed. I thought I could just create a branch and use the gradlew clean build, but like I said I get 3 exceptions. Given my unstable environment, I hesitate to trust that after I make my changes I have not broken something.
The following are the tests that fail:
LongInElementsTest. testLongInElementsByHQL
java.lang.StackOverflowError
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:416)
at java.lang.StringBuffer.append(StringBuffer.java:237)
at antlr.BaseAST.toStringList(BaseAST.java:341)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
at antlr.BaseAST.toStringList(BaseAST.java:347)
...
StandaloneSchemaToolsNamingTest. testSchemaExportNamingAndNamingDelegatorSpecified
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.hibernate.test.schematoolsnaming.StandaloneSchemaToolsNamingTest.testSchemaExportNamingAndNamingDelegatorSpecified(StandaloneSchemaToolsNamingTest.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
StandaloneSchemaToolsNamingTest. testSchemaUpdateNamingAndNamingDelegatorSpecified
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.assertTrue(Assert.java:41)
at org.junit.Assert.assertFalse(Assert.java:64)
at org.junit.Assert.assertFalse(Assert.java:74)
at org.hibernate.test.schematoolsnaming.StandaloneSchemaToolsNamingTest.testSchemaUpdateNamingAndNamingDelegatorSpecified(StandaloneSchemaToolsNamingTest.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Please advise how to proceed. I would be more than happy to provide my fix to the Loader class.
Thanks,
Jeff
|