[155747] Document is corrupted after importing comment node.
diff --git a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/domdocument/CommentImplForJSP.java b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/domdocument/CommentImplForJSP.java
index ef6ea04..455df72 100644
--- a/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/domdocument/CommentImplForJSP.java
+++ b/bundles/org.eclipse.jst.jsp.core/src/org/eclipse/jst/jsp/core/internal/domdocument/CommentImplForJSP.java
@@ -15,8 +15,20 @@
import org.eclipse.jst.jsp.core.internal.regions.DOMJSPRegionContexts;
import org.eclipse.wst.xml.core.internal.document.CommentImpl;
import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+/**
+ * CommentImplForJSP
+ */
public class CommentImplForJSP extends CommentImpl {
+ protected CommentImplForJSP() {
+ super();
+ }
+
+ protected CommentImplForJSP(CommentImpl that) {
+ super(that);
+ }
+
protected boolean isNestedCommentClose(String regionType) {
boolean result = regionType == DOMJSPRegionContexts.JSP_COMMENT_CLOSE;
return result;
@@ -30,4 +42,9 @@
protected void setOwnerDocument(Document ownerDocument) {
super.setOwnerDocument(ownerDocument);
}
+
+ public Node cloneNode(boolean deep) {
+ CommentImpl cloned = new CommentImplForJSP(this);
+ return cloned;
+ }
}