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 268695

Summary: AssertionError: should never have two equal TokenSequence TokenSequence for text/x-php5/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 6 tokens: *[0]: " " <6033,6034> WS[3] De
Product: web Reporter: legitalk
Component: Editing infrastructureAssignee: Milutin Kristofic <mkristofic>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226963
Attachments: stacktrace

Description legitalk 2016-10-26 13:32:54 UTC
This bug was originally marked as duplicate of bug 268097, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201610210002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Windows 7

User Comments:
legitalk: Trying to enter to new line after "<script type="text/javascript">"




Stacktrace: 
java.lang.AssertionError: should never have two equal TokenSequence TokenSequence for text/x-php5/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 6 tokens:
*[0]: " " <6033,6034> WS[3] DefT, la=1, st=HLS(hc=1834492393,s=9,ss=1,es=1,tag=script), @11e87183
T[1]: "type" F(4) ARGUMENT[7] FlyT, la=1, st=HLS(hc=-1422864042,s=12,ss=1,es=1,tag=script,attribute=type), @40ca6241
T[2]: "=" F(1) OPERATOR[8] FlyT, st=HLS(hc=-1420024328,s=14,ss=1,es=1,tag=script,attribute=type), @6f40897
T[3]: ""text/javascript"" <6039,6056> VALUE[9] DefT, st=HLS(hc=-328238728,s=9,ss=1,es=1,tag=script,scriptType=text/javascript), @3345574d
T[4]: ">" F(1) TAG_CLOSE_SYMBOL[19] FlyT, st=HLS(hc=-2040534985,s=35,ss=1,es=1,scriptType=text/javascript), @714dbbeb
T[5]: "\n  function del(a){" <6057,6076> SCRIPT[1] DefT, la=1, st=HLS(hc=-2040534985,s=35,ss=1,es=1,scriptType=text/javascript), @5429430a

 text/html, LH: org.netbeans.api.html.lexer.HTMLTokenId$1
   at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:281)
   at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:278)
   at java.util.TimSort.gallopLeft(TimSort.java:585)
   at java.util.TimSort.mergeAt(TimSort.java:507)
   at java.util.TimSort.mergeCollapse(TimSort.java:441)
   at java.util.TimSort.sort(TimSort.java:245)
Comment 1 legitalk 2016-10-26 13:32:56 UTC
Created attachment 162649 [details]
stacktrace
Comment 2 Milutin Kristofic 2016-11-02 14:22:32 UTC

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