﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4804	[PATCH] bug in OsmApi capabilities parsing	eric.marsden@…	team	"Please see patch below: SAX parsing is incorrectly iterating on qName.length() instead of atts.getLength(). 

This bug seems to be silently ignored by openjdk6, but causes problems with classpath-based JVMs. 


{{{
Index: src/org/openstreetmap/josm/io/OsmApi.java
===================================================================
--- src/org/openstreetmap/josm/io/OsmApi.java	(révision 3157)
+++ src/org/openstreetmap/josm/io/OsmApi.java	(copie de travail)
@@ -121,7 +121,7 @@
         }
 
         @Override public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException {
-            for (int i=0; i< qName.length(); i++) {
+            for (int i=0; i< atts.getLength(); i++) {
                 capabilities.put(qName, atts.getQName(i), atts.getValue(i));
             }
         }

}}}
"	defect	closed	normal		Core		duplicate		
