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 217607 - 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:
: 215920 217463 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-08-30 09:05 UTC by Vladimir Riha
Modified: 2012-09-06 19:39 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191974


Attachments
stacktrace (8.30 KB, text/plain)
2012-08-30 09:05 UTC, Vladimir Riha
Details
stacktrace (8.90 KB, text/plain)
2012-09-04 16:55 UTC, _ tboudreau
Details
Example source (51.85 KB, application/javascript)
2012-09-04 17:40 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-08-30 09:05:32 UTC
Build: NetBeans IDE Dev (Build EaselCSS-601-on-20120829)
VM: Java HotSpot(TM) Client VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Linux

User Comments:
vriha: completing via code completion in js file




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:541)
   at com.oracle.nashorn.ir.UnaryNode.accept(UnaryNode.java:123)
   at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:123)
   at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:122)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:239)
   at com.oracle.nashorn.ir.IfNode.accept(IfNode.java:79)
Comment 1 Vladimir Riha 2012-08-30 09:05:33 UTC
Created attachment 123723 [details]
stacktrace
Comment 2 Petr Hejl 2012-09-02 14:23:04 UTC
Vlado do you have a test case for this?
Comment 3 Vladimir Riha 2012-09-03 05:11:39 UTC
I'm afraid I don't. I'll try to reproduce it and attach sample file if possible
Comment 4 _ tboudreau 2012-09-04 16:55:59 UTC
Created attachment 123903 [details]
stacktrace

Selected part of a javascript function and pressed ALT-SHIFT-F
Comment 5 Petr Hejl 2012-09-04 17:17:19 UTC
(In reply to comment #4)
> Created attachment 123903 [details]
> stacktrace
> 
> Selected part of a javascript function and pressed ALT-SHIFT-F

Please provide the test case. It always required for formatting issues.
Comment 6 _ tboudreau 2012-09-04 17:40:38 UTC
Created attachment 123904 [details]
Example source
Comment 7 Petr Hejl 2012-09-05 10:01:19 UTC
Fixed in web-main ccde0267fd41.
Thanks for the report.
Comment 8 Quality Engineering 2012-09-06 02:09:04 UTC
Integrated into 'main-golden', will be available in build *201209060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ccde0267fd41
User: Petr Hejl <phejl@netbeans.org>
Log: #217607 - AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit
Comment 9 Vladimir Riha 2012-09-06 08:04:56 UTC
no exception on given sample => verified. Thanks

Product Version: NetBeans IDE Dev (Build 201209060001)
Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01
System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
Comment 10 Petr Hejl 2012-09-06 15:04:07 UTC
*** Bug 217463 has been marked as a duplicate of this bug. ***
Comment 11 Petr Hejl 2012-09-06 19:39:21 UTC
*** Bug 215920 has been marked as a duplicate of this bug. ***