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 144386 - IllegalArgumentException: unmatched braces in the pattern at position 13
Summary: IllegalArgumentException: unmatched braces in the pattern at position 13
Status: RESOLVED DUPLICATE of bug 136961
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-19 12:50 UTC by scolytus
Modified: 2009-01-28 10:20 UTC (History)
1 user (show)

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 scolytus 2008-08-19 12:50:27 UTC
Build: NetBeans IDE Dev (Build 200807040101)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86
User comments: 1) duplicated a file template for PHP (the original also doesn't work)
2) creating a new file using the wizard and this template
3) wizard says "unmatched braces in the pattern at position 13"
4) exception pops up

the created file stops before this line from template: "    function __construct()"
There aren't any replacements made at this time.
The template isn't using any placeholders except some ${name} tags.
I also can't find mismatched braces.
STACKTRACE: (first 10 lines)
java.lang.IllegalArgumentException: unmatched braces in the pattern at position 13
        at org.openide.util.MapFormat.processPattern(MapFormat.java:213)
        at org.openide.util.MapFormat.format(MapFormat.java:262)
        at java.text.Format.format(Format.java:140)
        at org.openide.loaders.FileEntry$Format.createFromTemplate(FileEntry.java:243)
        at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(MultiDataObject.java:707)
        at org.netbeans.modules.gsf.GsfDataObject.handleCreateFromTemplate(GsfDataObject.java:117)
        at org.openide.loaders.DataObject$CreateAction.run(DataObject.java:1277)
        at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(DataObjectPool.java:258)
        at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:120)
        at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:499)
Comment 1 Lukas Hasik 2008-08-20 10:05:39 UTC

*** This issue has been marked as a duplicate of 136961 ***