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
Depends on:
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

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

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.

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