[Thinlet-development] thinlet/src/java/thinlet Thinlet.java,1.23,1.24
Brought to you by:
bajzat
From: Andrzej B. <ab...@us...> - 2005-01-21 16:22:29
|
Update of /cvsroot/thinlet/thinlet/src/java/thinlet In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19308 Modified Files: Thinlet.java Log Message: The object reference comparison here doesn't work, especially on the JVM running under Symbian OS. Replace it with equals(). This bug would cause certain non-typical operations to fail, like e.g. retrieving children created with parseDOM(). Index: Thinlet.java =================================================================== RCS file: /cvsroot/thinlet/thinlet/src/java/thinlet/Thinlet.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- Thinlet.java 19 Jan 2005 03:02:02 -0000 1.23 +++ Thinlet.java 21 Jan 2005 16:22:08 -0000 1.24 @@ -5139,7 +5139,7 @@ } // possibly fall-through from above for (Object[] entry = (Object[]) component; entry != null; entry = (Object[]) entry[2]) { - if (entry[0] == key) { + if (entry[0].equals(key)) { return entry[1]; } } |