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 85907 - Exception after pasting
Summary: Exception after pasting
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-27 16:36 UTC by Petr Hrebejk
Modified: 2007-01-17 10:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2006-09-27 16:36:07 UTC
Think I've seen this before but don't know if it's reported. I copy a method
body from another class into my currently edited class, and get this (build
060714). Looks like something is just caching stale data about the document size
and trying to use it. Probably just doing whatever it's doing under the document
lock would fix it.

java.lang.IndexOutOfBoundsException: Invalid line index=65 >= lineCount=55
at org.netbeans.editor.LineRootElement.getElement(LineRootElement.java:92)
at org.openide.text.NbDocument$DocumentRenderer.run(NbDocument.java:679)
at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1187)
at org.openide.text.NbDocument$DocumentRenderer.renderToInt(NbDocument.java:655)
at org.openide.text.NbDocument.findLineOffset(NbDocument.java:159)
at org.openide.text.DocumentLine$Set.getOriginal(DocumentLine.java:965)
at
org.netbeans.modules.editor.hints.i18n.I18NChecker.getLinePart(I18NChecker.java:181)
at
org.netbeans.modules.editor.hints.i18n.I18NChecker.parseForErrors(I18NChecker.java:164)
at org.netbeans.modules.editor.hints.i18n.I18NChecker.run(I18NChecker.java:81)
at org.netbeans.modules.editor.hints.i18n.I18NChecker.run(I18NChecker.java:62)
at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:779)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:429)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:287)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:668)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:693)
[catch] at java.lang.Thread.run(Thread.java:626)
Comment 1 Petr Hrebejk 2006-10-09 11:36:09 UTC
Can't reproduce any more.