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 268585

Summary: AssertionError: FormatToken{kind=TEXT, offset=1970, text=<, id=OPERATOR_LOWER}
Product: javascript Reporter: Ralph Ruijs <ralphbenjamin>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226833
Attachments: stacktrace

Description Ralph Ruijs 2016-10-19 11:02:54 UTC
Build: NetBeans IDE Dev (Build 20161017-c1eaafe3418a)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Linux

User Comments:
ralphbenjamin: Format react code




Stacktrace: 
java.lang.AssertionError: FormatToken{kind=TEXT, offset=1970, text=<, id=OPERATOR_LOWER}
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatVisitor.enterJsxElementNode(JsFormatVisitor.java:177)
   at com.oracle.js.parser.ir.JsxElementNode.accept(JsxElementNode.java:83)
   at com.oracle.js.parser.ir.JsxAttributeNode.accept(JsxAttributeNode.java:68)
   at com.oracle.js.parser.ir.Node.accept(Node.java:280)
   at com.oracle.js.parser.ir.JsxElementNode.accept(JsxElementNode.java:85)
   at com.oracle.js.parser.ir.Node.accept(Node.java:280)
Comment 1 Ralph Ruijs 2016-10-19 11:02:56 UTC
Created attachment 162554 [details]
stacktrace
Comment 2 Milutin Kristofic 2017-01-19 13:03:46 UTC
Better assert report in dev build by http://hg.netbeans.org/jet-main/rev/5b682de69f40
Comment 3 Quality Engineering 2017-01-21 03:04:48 UTC
Integrated into 'main-silver', will be available in build *201701210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5b682de69f40
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #268585 - AssertionError: FormatToken{kind=TEXT, offset=1970, text=<, id=OPERATOR_LOWER}