bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/30597] XML parsing deviates from Java behaviour


From: 2005 at kuarepoti-dju dot net
Subject: [Bug classpath/30597] XML parsing deviates from Java behaviour
Date: 26 Jan 2007 12:54:59 -0000


------- Comment #2 from 2005 at kuarepoti-dju dot net  2007-01-26 12:54 -------
Sorry, I forgot to describe what the two bugs actually are, although the
testcase already contains a brief description.

The first one is that CDATA sections in XML files are converted to text.
Normally, a tag, linebreak, cdata section, linebreak, end tag would result in
the child nodes text (the line break), cdata-section, text. Classpath parses
the cdata section as text and subsequently joins it with the linebreaks. This
is wrong, CDATA sections need to be preserved.

The second one is that the parser throws gnu.xml.dom.ls.DomLSException. This is
GNU specific and application authors have no chance of guarding against this.
FileNotFoundException should be used in this particular example. In general,
all internal exception types should be mapped to standard exceptions as per
API.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30597





reply via email to

[Prev in Thread] Current Thread [Next in Thread]