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

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.

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

Using a hint to convert to lambda