rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
acc.append(readNmtoken(true)); | String name = readNmtoken(true); acc.append(name); mm.addName(name); | private void readContentspec(String elementName) throws IOException, XMLStreamException { if (tryRead("EMPTY")) doctype.addElementDecl(elementName, "EMPTY"); else if (tryRead("ANY")) doctype.addElementDecl(elementName, "ANY"); else { StringBuffer acc = new StringBuffer(); req... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
readElements(acc); doctype.addElementDecl(elementName, acc.toString()); | model = readElements(acc); doctype.addElementDecl(elementName, acc.toString(), model); | private void readContentspec(String elementName) throws IOException, XMLStreamException { if (tryRead("EMPTY")) doctype.addElementDecl(elementName, "EMPTY"); else if (tryRead("ANY")) doctype.addElementDecl(elementName, "ANY"); else { StringBuffer acc = new StringBuffer(); req... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
String type, String enumeration) | String type, String enumeration, HashSet values) | private void readDefault(String elementName, String name, String type, String enumeration) throws IOException, XMLStreamException { int valueType = ATTRIBUTE_DEFAULT_SPECIFIED; int flags = LIT_ATTRIBUTE; String value = null, defaultType = null; boolean saved = expandPE; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
value = readLiteral(flags); | value = readLiteral(flags, false); | private void readDefault(String elementName, String name, String type, String enumeration) throws IOException, XMLStreamException { int valueType = ATTRIBUTE_DEFAULT_SPECIFIED; int flags = LIT_ATTRIBUTE; String value = null, defaultType = null; boolean saved = expandPE; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
value = readLiteral(flags); | value = readLiteral(flags, false); | private void readDefault(String elementName, String name, String type, String enumeration) throws IOException, XMLStreamException { int valueType = ATTRIBUTE_DEFAULT_SPECIFIED; int flags = LIT_ATTRIBUTE; String value = null, defaultType = null; boolean saved = expandPE; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
new AttributeDecl(type, value, valueType, enumeration); | new AttributeDecl(type, value, valueType, enumeration, values, inputStack.size() != 1); | private void readDefault(String elementName, String name, String type, String enumeration) throws IOException, XMLStreamException { int valueType = ATTRIBUTE_DEFAULT_SPECIFIED; int flags = LIT_ATTRIBUTE; String value = null, defaultType = null; boolean saved = expandPE; ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
{ peIsError = expandPE = true; | private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
peIsError = expandPE = false; } | private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
pushInput("", ">"); pushInput("[dtd]", ids); | pushInput("", ">", false, false); pushInput("[dtd]", ids, true, true); | private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char c = readCh(); if (c == '>') | int c = readCh(); if (c == 0x3e) | private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
else if (c == '\uffff') | else if (c == -1) | private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
checkDoctype(); if (validating) validateDoctype(); | private void readDoctypeDecl() throws IOException, XMLStreamException { if (!supportDTD) error("parser was configured not to support DTDs"); requireWhitespace(); String rootName = readNmtoken(true); skipWhitespace(); ExternalIds ids = readExternalIds(false, true); doctype = this.new Do... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
private void readElementDecl() throws IOException, XMLStreamException { requireWhitespace(); String name = readNmtoken(true); requireWhitespace(); readContentspec(name); skipWhitespace(); require('>'); //System.out.println("ElementDecl "+name); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
private void readElements(StringBuffer acc) | private ElementContentModel readElements(StringBuffer acc) | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char separator; | int separator; ElementContentModel model = new ElementContentModel(); | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
readContentParticle(acc); | model.addContentParticle(readContentParticle(acc)); | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char c = readCh(); | int c = readCh(); | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case ')': | case 0x29: | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '*': case '+': case '?': acc.append(c); | case 0x3f: acc.append('?'); model.min = 0; model.max = 1; break; case 0x2a: acc.append('*'); model.min = 0; model.max = -1; break; case 0x2b: acc.append('+'); model.min = 1; model.max = -1; | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
return; case ',': case '|': | return model; case 0x7c: model.or = true; case 0x2c: | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
acc.append(c); | acc.append(Character.toChars(c)); | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
error("bad separator in content model", new Character(c)); return; | error("bad separator in content model", "U+" + Integer.toHexString(c)); return model; | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
readContentParticle(acc); | model.addContentParticle(readContentParticle(acc)); | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (c == ')') | if (c == 0x29) | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
error("bad separator in content model", new Character(c)); return; | error("bad separator in content model", "U+" + Integer.toHexString(c)); return model; | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '?': case '*': case '+': acc.append(c); return; | case 0x3f: acc.append('?'); model.min = 0; model.max = 1; break; case 0x2a: acc.append('*'); model.min = 0; model.max = -1; break; case 0x2b: acc.append('+'); model.min = 1; model.max = -1; break; | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
return; | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
return model; | private void readElements(StringBuffer acc) throws IOException, XMLStreamException { char separator; // Parse first content particle skipWhitespace(); readContentParticle(acc); // End or separator skipWhitespace(); char c = readCh(); switch (c) { case ')': acc.append('... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
private void readEndElement() throws IOException, XMLStreamException { //System.err.println("readEndElement"); // pop element off stack String expected = (String) stack.removeLast(); require(expected); skipWhitespace(); require('>'); // Make element name available buf.setLength(0); buf.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
if (validating && doctype != null) endElementValidationHook(); | private void readEndElement() throws IOException, XMLStreamException { //System.err.println("readEndElement"); // pop element off stack String expected = (String) stack.removeLast(); require(expected); skipWhitespace(); require('>'); // Make element name available buf.setLength(0); buf.... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
char c = readCh(); | int c = readCh(); | private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (c == '"' || c == '\'') | if (c == 0x22 || c == 0x27) | private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
String value = readLiteral(flags | LIT_DISABLE_EREF); | String value = readLiteral(flags | LIT_DISABLE_EREF, true); int ai = value.indexOf('&'); while (ai != -1) { int sci = value.indexOf(';', ai); if (sci == -1) error("malformed reference in entity value", value); String ref = value.substring(ai + 1, sci); int[] cp = UnicodeReader.toCodePointArray(ref); if (cp.length == 0)... | private void readEntityDecl(boolean inExternalSubset) throws IOException, XMLStreamException { int flags = 0; // Check if parameter entity boolean peFlag = false; expandPE = false; requireWhitespace(); if (tryRead('%')) { peFlag = true; requireWhitespace(); } expandPE ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private void readEnumeration(boolean isNames, StringBuffer acc) | private void readEnumeration(boolean isNames, StringBuffer acc, HashSet values) | private void readEnumeration(boolean isNames, StringBuffer acc) throws IOException, XMLStreamException { acc.append('('); // first token skipWhitespace(); acc.append(readNmtoken(isNames)); // subsequent tokens skipWhitespace(); while (!tryRead(')')) { require('|'); acc.appe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
acc.append(readNmtoken(isNames)); | String token = readNmtoken(isNames); acc.append(token); values.add(token); | private void readEnumeration(boolean isNames, StringBuffer acc) throws IOException, XMLStreamException { acc.append('('); // first token skipWhitespace(); acc.append(readNmtoken(isNames)); // subsequent tokens skipWhitespace(); while (!tryRead(')')) { require('|'); acc.appe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
acc.append(readNmtoken(isNames)); | token = readNmtoken(isNames); if (validating && values.contains(token)) error("duplicate token", token); acc.append(token); values.add(token); | private void readEnumeration(boolean isNames, StringBuffer acc) throws IOException, XMLStreamException { acc.append('('); // first token skipWhitespace(); acc.append(readNmtoken(isNames)); // subsequent tokens skipWhitespace(); while (!tryRead(')')) { require('|'); acc.appe... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char c; | int c; | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
ids.publicId = readLiteral(LIT_NORMALIZE | LIT_PUBID | flags); | ids.publicId = readLiteral(LIT_NORMALIZE | LIT_PUBID | flags, false); | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (c == '"' || c == '\'') ids.systemId = absolutize(input.systemId, readLiteral(flags)); | if (c == 0x22 || c == 0x27) { String href = readLiteral(flags, false); ids.systemId = absolutize(input.systemId, href); } | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
ids.systemId = absolutize(input.systemId, readLiteral(flags)); | String href = readLiteral(flags, false); ids.systemId = absolutize(input.systemId, href); | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
c = ids.publicId.charAt(i); if (c >= 'a' && c <= 'z') | char d = ids.publicId.charAt(i); if (d >= 'a' && d <= 'z') | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (c >= 'A' && c <= 'Z') | if (d >= 'A' && d <= 'Z') | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (" \r\n0123456789-' ()+,./:=?;!*#@$_%".indexOf(c) != -1) | if (" \r\n0123456789-' ()+,./:=?;!*#@$_%".indexOf(d) != -1) | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
"U+" + Integer.toHexString(c)); | "U+" + Integer.toHexString(d)); | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
ids.systemId = absolutize(input.systemId, readLiteral(flags)); | String href = readLiteral(flags, false); ids.systemId = absolutize(input.systemId, href); | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (ids.systemId != null) | if (ids.systemId != null && !inNotation) | private ExternalIds readExternalIds(boolean inNotation, boolean isSubset) throws IOException, XMLStreamException { char c; int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; ExternalIds ids = new ExternalIds(); if (tryRead("PUBLIC")) { requireWhitespace(); ids.pub... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private String readLiteral(int flags) | private String readLiteral(int flags, boolean recognizePEs) | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); | int delim = readCh(); if (delim != 0x27 && delim != 0x22) error("expected '\"' or \"'\"", "U+" + Integer.toHexString(delim)); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char c = literalReadCh(); | int c = literalReadCh(recognizePEs); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '\n': case '\r': | case 0x0a: case 0x0d: | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
c = ' '; | c = 0x20; | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '\t': | case 0x09: | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
c = ' '; | c = 0x20; | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '&': | case 0x26: | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (c == '#') | if (c == 0x23) | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
c = '&'; | c = 0x26; | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
boolean hex = (c == 'x'); | boolean hex = (c == 0x78); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
c = ref[i]; | char x = ref[i]; | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
(c == '\n' || c == '\r')) c = ' '; else if ((flags & LIT_ATTRIBUTE) != 0 && c == '\t') c = ' '; literalBuf.append(c); | (x == 0x0a || x == 0x0d)) x = 0x20; else if ((flags & LIT_ATTRIBUTE) != 0 && x == 0x09) x = 0x20; literalBuf.append(x); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
c = '&'; | c = 0x26; | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (replaceERefs || (flags & LIT_NORMALIZE) > 0) { | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
(flags & LIT_ATTRIBUTE) != 0); | (flags & LIT_ATTRIBUTE) != 0, true); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
else error("parser is configured not to replace entity " + "references"); } | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
case '<': | case 0x3c: | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '\uffff': | case -1: | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
literalBuf.append(c); | literalBuf.append(Character.toChars(c)); | private String readLiteral(int flags) throws IOException, XMLStreamException { boolean saved = expandPE; char delim = readCh(); if (delim != '\'' && delim != '"') error("expected '\"' or \"'\"", new Character(delim)); literalBuf.setLength(0); if ((flags & LIT_DISABLE_PE) != 0) expandPE = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
readPI(); | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
readComment(); | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
char c = readCh(); | int c = readCh(); | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '<': | case 0x3c: | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case ']': | case 0x5d: | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '\uffff': | case -1: | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
expandPE = true; | expandPE = saved; | private void readMarkupdecl(boolean inExternalSubset) throws IOException, XMLStreamException { boolean saved = expandPE; mark(1); require('<'); reset(); expandPE = false; if (tryRead(TEST_ELEMENT_DECL)) { expandPE = saved; readElementDecl(); } else if (tryRead(TEST_ATT... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
nmtokenBuf.setLength(0); char c = readCh(); if (isName) { if (!isNameStartCharacter(c)) error("not a name start character", "U+" + Integer.toHexString(c)); } else { if (!isNameCharacter(c)) error("not a name character", "U+" + Integer.toHexString(c)); } nmtokenBuf.append(c); do { mark(1); c = readCh(); switch (c) { cas... | return readNmtoken(isName, nmtokenBuf); | private String readNmtoken(boolean isName) throws IOException, XMLStreamException { nmtokenBuf.setLength(0); char c = readCh(); if (isName) { if (!isNameStartCharacter(c)) error("not a name start character", "U+" + Integer.toHexString(c)); } else { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (validating) { ExternalIds notation = doctype.getNotation(notationName); if (notation != null) error("duplicate notation name", notationName); } | private void readNotationDecl(boolean inExternalSubset) throws IOException, XMLStreamException { requireWhitespace(); String notationName = readNmtoken(true); if (notationName.indexOf(':') != -1) error("illegal character ':' in notation name", notationName); requireWhitespace(); ExternalIds id... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
private void readNotationType(StringBuffer acc) | private void readNotationType(StringBuffer acc, HashSet values) | private void readNotationType(StringBuffer acc) throws IOException, XMLStreamException { requireWhitespace(); require('('); readEnumeration(true, acc); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
readEnumeration(true, acc); | readEnumeration(true, acc, values); | private void readNotationType(StringBuffer acc) throws IOException, XMLStreamException { requireWhitespace(); require('('); readEnumeration(true, acc); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
private void readPI() | private void readPI(boolean inDTD) | private void readPI() throws IOException, XMLStreamException { boolean saved = expandPE; expandPE = false; piTarget = readNmtoken(true); if (piTarget.indexOf(':') != -1) error("illegal character in PI target", new Character(':')); if ("xml".equalsIgnoreCase(piTarget)) error("illegal PI ta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (inDTD) doctype.addPI(piTarget, piData); | private void readPI() throws IOException, XMLStreamException { boolean saved = expandPE; expandPE = false; piTarget = readNmtoken(true); if (piTarget.indexOf(':') != -1) error("illegal character in PI target", new Character(':')); if ("xml".equalsIgnoreCase(piTarget)) error("illegal PI ta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
if (":".equals(elementName)) error("XML Namespaces forbids names consisting of a single colon"); | if (elementName.charAt(0) == ':' || elementName.charAt(elementName.length() - 1) == ':') error("not a QName", elementName); | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
char c = readCh(); while (c != '/' && c != '>') | int c = readCh(); while (c != 0x2f && c != 0x3e) | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
AttributeDecl decl = (AttributeDecl) entry.getValue(); | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
String base = getAttributeValue(XMLConstants.XML_NS_URI, "base"); bases.addFirst(base); | String uri = getAttributeValue(XMLConstants.XML_NS_URI, "base"); String base = getXMLBase(); bases.addFirst(absolutize(base, uri)); } if (namespaceAware) { int ci = elementName.indexOf(':'); if (ci != -1) { String prefix = elementName.substring(0, ci); String uri = getNamespaceURI(prefix); if (uri == null) error("unbo... | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '>': | case 0x3e: | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
case '/': | case 0x2f: | private int readStartElement() throws IOException, XMLStreamException { //System.err.println("readStartElement"); // Read element name String elementName = readNmtoken(true); attrs.clear(); // Push namespace context if (namespaceAware) { if (":".equals(elementName)) error("X... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
String v = readLiteral(flags); | String v = readLiteral(flags, false); | private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags); if ("1.0".equals(v)) input.xml11 = false;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
String enc = readLiteral(flags); if (!input.forceReader) input.setInputEncoding(enc); | String enc = readLiteral(flags, false); | private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags); if ("1.0".equals(v)) input.xml11 = false;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
input.setInputEncoding(enc); | private void readTextDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); if (tryRead("version")) { readEq(); String v = readLiteral(flags); if ("1.0".equals(v)) input.xml11 = false;... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
char c = readCh(); if (c == '\uffff') | int c = readCh(); if (c == -1) | private void readUntil(String delim) throws IOException, XMLStreamException { int startLine = input.line; try { while (!tryRead(delim)) { char c = readCh(); if (c == '\uffff') throw new EOFException(); else if (c < 32 && c != 10 && c != 9 &&... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
else if (c < 32 && c != 10 && c != 9 && c != 13) error("illegal XML character", Character.toString(c)); buf.append(c); | else if (input.xml11) { if (!isXML11Char(c) || isXML11RestrictedChar(c)) error("illegal XML 1.1 character", "U+" + Integer.toHexString(c)); } else if (!isChar(c)) error("illegal XML character", "U+" + Integer.toHexString(c)); buf.append(Character.toChars(c)); | private void readUntil(String delim) throws IOException, XMLStreamException { int startLine = input.line; try { while (!tryRead(delim)) { char c = readCh(); if (c == '\uffff') throw new EOFException(); else if (c < 32 && c != 10 && c != 9 &&... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
xmlVersion = readLiteral(flags); | xmlVersion = readLiteral(flags, false); | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
xmlEncoding = readLiteral(flags); if (!input.forceReader) input.setInputEncoding(xmlEncoding); | xmlEncoding = readLiteral(flags, false); | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
String standalone = readLiteral(flags); | String standalone = readLiteral(flags, false); | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
if (xmlEncoding != null) input.setInputEncoding(xmlEncoding); | private void readXMLDecl() throws IOException, XMLStreamException { final int flags = LIT_DISABLE_CREF | LIT_DISABLE_PE | LIT_DISABLE_EREF; requireWhitespace(); require("version"); readEq(); xmlVersion = readLiteral(flags); if ("1.0".equals(xmlVersion)) input.xml11 = false; else if (... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | |
private void reset() throws IOException { input.reset(); //System.out.println("\t(reset)"); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java | ||
char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) | int c = readCh(); while (c == -1 && inputStack.size() > 1) | private void skipWhitespace() throws IOException, XMLStreamException { boolean white; do { mark(1); char c = readCh(); while (c == '\uffff' && inputStack.size() > 1) { popInput(); c = readCh(); } white = (c == ' ' || c == '\t' || c == ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/XMLParser.java/buggy/core/src/classpath/gnu/gnu/xml/stream/XMLParser.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.