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 231077 - line comments in plain css: javax.swing.text.BadLocationException: Wrong (offset+length)=247 > getLength()=246
Summary: line comments in plain css: javax.swing.text.BadLocationException: Wrong (off...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: All All
: P4 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-11 11:13 UTC by Marek Fukala
Modified: 2014-10-06 13:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 196059


Attachments
stacktrace (2.46 KB, text/plain)
2013-06-11 11:13 UTC, Marek Fukala
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Fukala 2013-06-11 11:13:50 UTC
This bug was originally marked as duplicate of bug 216906, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 20130611-12216e6b334a)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b31
OS: Mac OS X

User Comments:
GUEST: Rename interfase

mfukala: using rule editor on an empy class rule I added alignment-baseline property and selected after-edge value.




Stacktrace: 
javax.swing.text.BadLocationException: Wrong (offset+length)=247 > getLength()=246
   at org.netbeans.editor.BaseDocument.handleRemove(BaseDocument.java:949)
   at org.netbeans.editor.BaseDocument$FilterBypassImpl.remove(BaseDocument.java:2476)
   at javax.swing.text.DocumentFilter.remove(DocumentFilter.java:79)
   at org.openide.text.CloneableEditorSupport$DocFilter.remove(CloneableEditorSupport.java:3113)
   at org.netbeans.editor.BaseDocument.remove(BaseDocument.java:929)
   at org.netbeans.modules.css.model.api.Model.applyChanges(Model.java:561)
Comment 1 Marek Fukala 2013-06-11 11:13:52 UTC
Created attachment 135630 [details]
stacktrace
Comment 2 Marek Fukala 2013-06-11 11:15:58 UTC
It is reproducible in a css file which contains a line comment at the end of the file. Line comments itself should not be allowed in plain css files but just in SASS/LESS files.