changeset 74:1b3c6eec7d31

Merge
author asaha
date Tue, 30 Jun 2009 16:23:54 -0700
parents a97dd57a6260 1687f5192ce7
children e8d3c15bb7f6
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java	Sun Jun 21 23:51:39 2009 -0700
+++ b/src/share/classes/com/sun/org/apache/xerces/internal/impl/XMLScanner.java	Tue Jun 30 16:23:54 2009 -0700
@@ -1027,6 +1027,9 @@
                     int c = fEntityScanner.peekChar();
                     if (XMLChar.isMarkup(c) || c == ']') {
                         fStringBuffer.append((char)fEntityScanner.scanChar());
+                    } else if (c != -1 && isInvalidLiteral(c)) {
+                        reportFatalError("InvalidCharInSystemID",
+                            new Object[] {Integer.toString(c, 16)});
                     }
                 } while (fEntityScanner.scanLiteral(quote, ident) != quote);
                 fStringBuffer.append(ident);