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.
I just paste some code from Internet and the exception appear in a MIDlet: javax.swing.text.BadLocationException: Invalid offset=-2 not within <0, 1225> at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1266) at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1261) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:129) at org.netbeans.editor.Utilities.getRowStart(Utilities.java:112) at org.netbeans.modules.kjava.editor.hints.PreprocessorHintsProvider.getHints(PreprocessorHintsProvider.java:49) at org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:264) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:520) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:953)
Can you provide the text in clipboard and file you've pasted it in, please?
Created attachment 30885 [details] code example
I have attachmented the file, I don't know if this is related with the exception, but I made refactoring to change the name of the package. The text come from PDF file.
Looks like the kjava.editor.hints.PreprocessorHintsProvider requests an invalid offset. Reassigning for evaluation.
reassigning
moving to mobility component
I will have a look at this, this is my component.
Cannot duplicate, not enough information.
invalid status is used for INVALID issues. This issue appeared. When you don't have enought information use INCOMPETE keyword. When you cannot reproduce the issue then use WORKSFORME status. thank you ;)
x
verified 20070426 agree