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 211922 - IllegalArgumentException: name="Bookmarks are cool.": char at [9] not allowed
Summary: IllegalArgumentException: name="Bookmarks are cool.": char at [9] not allowed
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Miloslav Metelka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-02 03:14 UTC by MackSix
Modified: 2012-05-29 05:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 187135


Attachments
stacktrace (3.81 KB, text/plain)
2012-05-02 03:15 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-05-02 03:14:57 UTC
Build: NetBeans IDE Dev (Build 201205010400)
VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20
OS: Windows Vista

User Comments:
MackSix: 1) Open Bookmarks Window. 
2) Press Table View of Bookmarks Button.
3) Enter a name for a bookmark that has a space.
This Exception occurs.

MackSix: Can't enter a period for Bookmark Name either.

GUEST: Trying to add a Name for my Bookmark which contains a space between words throws an exception. A a workaround i can enter names with underscores, but i think empty spaces should be allowed.




Stacktrace: 
java.lang.IllegalArgumentException: name="Bookmarks are cool.": char at [9] not allowed
   at org.netbeans.modules.editor.bookmarks.BookmarkInfo.setName(BookmarkInfo.java:114)
   at org.netbeans.modules.editor.bookmarks.BookmarkUtils.setBookmarkNameUnderLock(BookmarkUtils.java:81)
   at org.netbeans.modules.editor.bookmarks.ui.BookmarksTableModel.setValueAt(BookmarksTableModel.java:203)
   at javax.swing.JTable.setValueAt(JTable.java:2744)
   at org.netbeans.swing.etable.ETable.setValueAt(ETable.java:772)
   at javax.swing.JTable.editingStopped(JTable.java:4726)
Comment 1 MackSix 2012-05-02 03:15:02 UTC
Created attachment 118939 [details]
stacktrace
Comment 2 Jiri Prox 2012-05-02 11:00:43 UTC
Reproducible,

please fix it ASAP, since the exception is quite annoying - it keeps appearing until the bookmark is renamed to suitable name (fortunately the exception dialog is not modal :-)
Comment 3 Jan Becicka 2012-05-03 08:44:22 UTC
Caused by Mila. Issue 156124
Comment 4 Miloslav Metelka 2012-05-28 13:56:16 UTC
http://hg.netbeans.org/jet-main/rev/595946fe40af
Comment 5 Quality Engineering 2012-05-29 05:47:32 UTC
Integrated into 'main-golden', will be available in build *201205290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/595946fe40af
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #211922 - IllegalArgumentException: name="Bookmarks are cool.": char at [9] not allowed - bookmark name characters not restricted.