From: Edgar K. <edg...@gm...> - 2011-01-31 19:48:36
|
Hi, I'm having some strange issues when looping through a to-many relationship using the for-each loop: This works launching the app from Eclipse and Console: for (int i = 0 ; i < eo.relationshipObjects().count(); i++) { RelationshipObject relationshipObject = eo.relationshipObjects().get(i); // do something } This works launching the app from Eclipse and Console: for (Enumeration<RelationshipObject> enumerator: eo.relationshipObjects().objectEnumerator(); enumerator.hasMoreElements(); ) { RelationshipObject relationshipObject = enumerator.nextElement(); // do something } This works launching the app from Console but _not_ if launching from Eclipse: for (RelationshipObject relationshipObject = eo.relationshipObjects()) { // do something } I have only one JVM 1.6 and use Eclipse 3.6.1 and most recent versions of the frameworks (WOnder, WebObjects 5.4.3, WOLips...). My guess is that it has somehow with the implementation details of the for-each loop and therefore not faulting in the objects from the to-many relationship. Does anyone else have these issues and found a solution? cheers, Edgar |