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 8977 - StringIndexOfBoundException on add file attribute
Summary: StringIndexOfBoundException on add file attribute
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P4 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-21 21:20 UTC by pzajac
Modified: 2008-12-22 20:50 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 pzajac 2000-12-21 21:20:14 UTC
[release31-31]
Exception thrown on add filesystem attribute with object value:
(String) "\\"
java.lang.StringIndexOutOfBoundsException: String index out of range: 2
        at java.lang.String.charAt(String.java:507)
        at org.openide.filesystems.XMLMapAttr$Attr.decode(XMLMapAttr.java:536)
        at org.openide.filesystems.XMLMapAttr$Attr.putEntry(XMLMapAttr.java:299)
        at org.openide.filesystems.XMLMapAttr$Attr.<init>(XMLMapAttr.java:278)
        at
org.openide.filesystems.DefaultAttributes.writeAttribute(DefaultAttributes.java:248)
        at
org.openide.filesystems.AbstractFileObject.setAttribute(AbstractFileObject.java:251)
        at org.netbeans.qa.test.FileAttrib.randomAdd(FileAttrib.java:146)
        at org.netbeans.qa.test.FileAttrib.access$000(FileAttrib.java:20)
        at org.netbeans.qa.test.FileAttrib$TestRunnable.run(FileAttrib.java:247)
        at org.openide.util.Task.run(Task.java:124)
        at java.lang.Thread.run(Thread.java:484)
Comment 1 rmatous 2001-01-05 10:45:59 UTC
Fixed in main trunk. Loop is now correctly tested.
Comment 2 pzajac 2002-08-15 16:51:35 UTC
verified in Nb34 rc2
Comment 3 Quality Engineering 2003-07-01 16:16:00 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.