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 - AssertionError: dotPos=187239 != insertionOffset=187244 cookie=null selectedText='null' origDot=187239
Summary: AssertionError: dotPos=187239 != insertionOffset=187244 cookie=null selectedT...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-15 15:56 UTC by sviatopolk
Modified: 2017-10-04 10:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219941


Attachments
stacktrace (3.22 KB, text/plain)
2015-09-15 15:56 UTC, sviatopolk
Details
stacktrace (3.28 KB, text/plain)
2017-10-04 10:14 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
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