Project

Profile

Help

Revision b832a6b2

Added by Michael Kay about 12 years ago

Fix bug 2893201 QName.fromClarkName() truncates URI

View differences:

latest9.1/bj/net/sf/saxon/s9api/QName.java
140 140
            if (closeBrace < 0) {
141 141
                throw new IllegalArgumentException("No closing '}' in Clark name");
142 142
            }
143
            namespaceURI = expandedName.substring(1, closeBrace - 1);
143
            namespaceURI = expandedName.substring(1, closeBrace);
144 144
            if (closeBrace == expandedName.length()) {
145 145
                throw new IllegalArgumentException("Missing local part in Clark name");
146 146
            }
latest9.2/hej/net/sf/saxon/s9api/QName.java
140 140
            if (closeBrace < 0) {
141 141
                throw new IllegalArgumentException("No closing '}' in Clark name");
142 142
            }
143
            namespaceURI = expandedName.substring(1, closeBrace - 1);
143
            namespaceURI = expandedName.substring(1, closeBrace);
144 144
            if (closeBrace == expandedName.length()) {
145 145
                throw new IllegalArgumentException("Missing local part in Clark name");
146 146
            }

Also available in: Unified diff