This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271108

Summary: Cannot create an ANT debugger watch in a build script
Product: xml Reporter: Jiri Kovalsky <jkovalsky>
Component: Schema ToolsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 102070
Attachments: stacktrace

Description Jiri Kovalsky 2017-07-17 13:14:04 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.141-b15, Java(TM) SE Runtime Environment, 1.8.0_141-b15
OS: Linux

User Comments:
jkovalsky: Hit line breakpoint in Ant build.xml script and wanted to create a new watch which was not possible due to disabled editing.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.editor.ext.ExtSyntaxSupport cannot be cast to org.netbeans.modules.xml.text.syntax.XMLSyntaxSupport
   at org.netbeans.modules.xml.schema.completion.SchemaBasedCompletionProvider.getAutoQueryTypes(SchemaBasedCompletionProvider.java:79)
   at org.netbeans.modules.editor.completion.CompletionImpl.insertUpdate(CompletionImpl.java:350)
   at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:85)
   at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:201)
   at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1659)
   at org.netbeans.editor.BaseDocument.handleInsertString(BaseDocument.java:847)
Comment 1 Jiri Kovalsky 2017-07-17 13:14:06 UTC
Created attachment 164779 [details]
stacktrace
Comment 2 Jiri Kovalsky 2017-07-17 13:49:44 UTC
FYI, this reproduces only in 8.2 and not in development build 201707050001. I used all JDK 8 Updates 111, 121, 131 and 141 and it reproduces in 8.2 but not in trunk builds.
Comment 3 Jiri Kovalsky 2017-10-10 10:02:21 UTC
Reproducible with JDK 8 Update 151 as well.