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 216777 - AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit
Summary: AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVis...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-13 09:07 UTC by Jiri Skrivanek
Modified: 2012-08-20 09:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191494


Attachments
stacktrace (7.69 KB, text/plain)
2012-08-13 09:07 UTC, Jiri Skrivanek
Details
stacktrace (7.69 KB, text/plain)
2012-08-14 11:30 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2012-08-13 09:07:19 UTC
Build: NetBeans IDE Dev (Build EaselCSS-482-on-20120813)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b22
OS: Windows 7

User Comments:
jskrivanek: To reproduce:
- start to create HTML5 project
- select ace 0.2.0 to be added to libraries
- finish wizard
- open ace.js and press Alt+Shift+F to reformat




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:481)
   at com.oracle.nashorn.ir.UnaryNode.accept(UnaryNode.java:123)
   at com.oracle.nashorn.ir.CallNode.accept(CallNode.java:210)
   at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:122)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:179)
   at com.oracle.nashorn.ir.IfNode.accept(IfNode.java:79)
Comment 1 Jiri Skrivanek 2012-08-13 09:07:22 UTC
Created attachment 123033 [details]
stacktrace
Comment 2 Petr Hejl 2012-08-14 09:55:08 UTC
This has been already fixed some time ago f8820a37be1f.
Comment 3 Jiri Skrivanek 2012-08-14 11:30:47 UTC
Created attachment 123094 [details]
stacktrace

Still the same steps.
Comment 4 Petr Hejl 2012-08-14 11:35:35 UTC
Obviously the fix is not in your build. There is no assertion on line 481 anymore. Somebody working on easel branch should merge trunk changes.
Comment 5 Jiri Skrivanek 2012-08-20 09:41:26 UTC
Verified but new error found (#216578).