dynamobi/enki — Issue #9: [ENK-1] infinite recursion in XmiFileComparator due to cyclic refs
Author: dynamobi-build
Created: 2011-12-30 02:07:55+00:00
State: open
Labels: ENK

[reporter="jvs", created="Sat, 16 Aug 2008 21:52:41 -0500 (GMT-05:00)"]
So far I have only been able to hit this on tikki01-red using Sun JDK 1.5.0_09 (and even then only intermittently), probably due to order non-determinism in the XMI export used by JmiMemTest. But I think XmiFileComparator needs to protect itself against chasing reference cycles.

Testsuite: net.sf.farrago.test.JmiMemTest

Tests run: 8, Failures: 0, Errors: 1, Time elapsed: 33.162 sec

Testcase: testClassValuedAttributes took 0.654 sec

Testcase: testEarlyBinding took 0.125 sec

Testcase: testBreakOneToOneAssoc took 0.092 sec

Testcase: testExportImport took 0.341 sec

Testcase: testMassiveExportImport took 24.417 sec

Caused an ERROR

null

java.lang.StackOverflowError

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:434)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:507)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:481)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:467)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:507)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:481)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:507)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:481)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:467)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:507)

at org.eigenbase.enki.test.XmiFileComparator$ElementComparator.compare(X

miFileComparator.java:481)