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 255306

Summary: AssertionError: dotPos=187239 != insertionOffset=187244 cookie=null selectedText='null' origDot=187239
Product: editor Reporter: sviatopolk
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: tboudreau
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 219941
Attachments: stacktrace
stacktrace

Description sviatopolk 2015-09-15 15:56:20 UTC
This bug was originally marked as duplicate of bug 239475, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 Beta (Build 201508041349)
VM: OpenJDK 64-Bit Server VM, 24.79-b02, OpenJDK Runtime Environment, 1.7.0_79-b14
OS: Linux

User Comments:
sviatopolk: Try to break a line in the end of a comment block
/**
 *
 */
between the last asterisk and the closing slash.




Stacktrace: 
java.lang.AssertionError: dotPos=187239 != insertionOffset=187244 cookie=null selectedText='null' origDot=187239
   at org.netbeans.editor.BaseKit$InsertBreakAction.performLineBreakInsertion(BaseKit.java:1431)
   at org.netbeans.editor.BaseKit$InsertBreakAction.access$200(BaseKit.java:1318)
   at org.netbeans.editor.BaseKit$InsertBreakAction$1.run(BaseKit.java:1353)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:356)
   at org.netbeans.editor.BaseKit$InsertBreakAction.actionPerformed(BaseKit.java:1344)
   at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:339)
Comment 1 sviatopolk 2015-09-15 15:56:22 UTC
Created attachment 156191 [details]
stacktrace
Comment 2 _ tboudreau 2017-10-04 10:14:41 UTC
Created attachment 165241 [details]
stacktrace

Using a hint to convert to lambda