After upgrading to Java 1.7 and still seeing the same misbehavior, I thought it 
would be a Good Thing (TM) to have a look at the Javadocs of HashSet. And bingo:

http://docs.oracle.com/javase/7/docs/api/java/util/HashSet.html

Quoting from the Javadoc:

"This class implements the Set interface, backed by a hash table (actually a 
HashMap instance). It makes no guarantees as to the iteration order of the set; 
in particular, it does not guarantee that the order will remain constant over 
time."

So I'm guessing now that what I'm seeing is not even a misbehavior in the first 
place. But why is HashSet being used in NodeUtil instead of something like 
ArrayList? Is this the bug?

-will

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=aff7b09a-169e-4df7-ba78-5d2e0da2f2d4


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to