Skip to content

Commit 2b912fc

Browse files
committed
[bugfix] no error logged on qname of CDATA section
fixes #4740 Do not log an error each time typeswitch is called on a CDATA section.
1 parent 3f9a9dc commit 2b912fc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

exist-core/src/main/java/org/exist/dom/QName.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class QName implements Comparable<QName> {
4747
public static final QName TEXT_QNAME = EMPTY_QNAME;
4848
public static final QName COMMENT_QNAME = EMPTY_QNAME;
4949
public static final QName DOCTYPE_QNAME = EMPTY_QNAME;
50-
50+
public static final QName CDATA_SECTION_QNAME = EMPTY_QNAME;
5151

5252
private final String localPart;
5353
private final String namespaceURI;

exist-core/src/main/java/org/exist/dom/persistent/StoredNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,8 @@ public QName getQName() {
214214
return QName.COMMENT_QNAME;
215215
case Node.DOCUMENT_TYPE_NODE:
216216
return QName.DOCTYPE_QNAME;
217+
case Node.CDATA_SECTION_NODE:
218+
return QName.CDATA_SECTION_QNAME;
217219
default:
218220
LOG.error("Unknown node type: {}", getNodeType());
219221
return null;

0 commit comments

Comments
 (0)