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 183149 - BadLocationException on typed '#' char
Summary: BadLocationException on typed '#' char
Status: RESOLVED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal (vote)
Assignee: Andrew Korostelev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-30 06:59 UTC by Andrew Korostelev
Modified: 2010-03-30 09:15 UTC (History)
0 users

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 Andrew Korostelev 2010-03-30 06:59:17 UTC
if user types '#' char as the first char in property value, the following exception appears:

javax.swing.text.BadLocationException: Invalid offset=-1 not within <0, 7540>
	at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1390)
	at org.netbeans.editor.Utilities.checkOffsetValid(Utilities.java:1385)
	at org.netbeans.editor.Utilities.getRowStart(Utilities.java:157)
	at org.netbeans.editor.Utilities.getRowStart(Utilities.java:140)
	at org.netbeans.modules.javafx.fxd.composer.editor.SyntaxErrorsHighlightingTask.getPosition(SyntaxErrorsHighlightingTask.java:108)
	at org.netbeans.modules.javafx.fxd.composer.editor.SyntaxErrorsHighlightingTask.run(SyntaxErrorsHighlightingTask.java:81)
	at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:654)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Andrew Korostelev 2010-03-30 09:15:59 UTC
http://hg.netbeans.org/javafx/rev/e316fc83e58a
workaround lack of error offset data for reference parsing error.
Should be fixed in FXDReference.parse in the next fx sdk