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 217463 - AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit
Summary: AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVis...
Status: RESOLVED DUPLICATE of bug 217607
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: issues@javascript
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-27 13:11 UTC by KhArtNJava
Modified: 2012-09-06 15:04 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 191878


Attachments
stacktrace (5.88 KB, text/plain)
2012-08-27 13:11 UTC, KhArtNJava
Details
JS file (17.91 KB, application/x-javascript)
2012-08-27 13:13 UTC, KhArtNJava
Details
nps (40.47 KB, application/octet-stream)
2012-08-27 13:15 UTC, KhArtNJava
Details

Note You need to log in before you can comment on or make changes to this bug.
Description KhArtNJava 2012-08-27 13:11:31 UTC
Build: NetBeans IDE Dev (Build 201208270001)
VM: Java HotSpot(TM) Client VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24
OS: Windows 7

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 org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:239)
   at com.oracle.nashorn.ir.IfNode.accept(IfNode.java:79)
   at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:819)
Comment 1 KhArtNJava 2012-08-27 13:11:33 UTC
Created attachment 123608 [details]
stacktrace
Comment 2 KhArtNJava 2012-08-27 13:13:24 UTC
Created attachment 123609 [details]
JS file
Comment 3 KhArtNJava 2012-08-27 13:15:33 UTC
Created attachment 123610 [details]
nps
Comment 4 KhArtNJava 2012-08-27 13:16:50 UTC
go to the line 408
if ($(this).html(). == findedUniqueValues[i]
type eq after html().
if ($(this).html().eq == findedUniqueValues[i]
press ctrl+space
Comment 5 Petr Hejl 2012-09-04 07:27:05 UTC
Is this issue still valid? Does not happen for me in trunk.
Comment 6 Petr Hejl 2012-09-06 15:04:07 UTC

*** This bug has been marked as a duplicate of bug 217607 ***