minor java.util.TreeMap bug

Timothy Stack stack at cs.utah.edu
Mon Sep 25 11:08:35 PDT 2000


hi,

I don't know if this is a real bug or not, but in java.util.TreeMap
there's this line in deleteNode:

325:			x.parent = y.parent;

The problem is that x can be NIL which is a global variable, which seems
bad.  One might think a quick fix would be to test for NIL and not set the
parent, but this causes more grief because the other functions reference
parent without checking if its non-nil.  Probably not a big problem, just
thought i'd let you know.

tim


More information about the kaffe mailing list