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 152095 - IllegalArgumentException: Unmatched braces in the pattern.
Summary: IllegalArgumentException: Unmatched braces in the pattern.
Status: RESOLVED FIXED
Alias: None
Product: nblocalization
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jeremie Bertolino
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 16:09 UTC by tebosoftware
Modified: 2009-05-26 02:14 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 134969


Attachments
stacktrace (1.68 KB, text/plain)
2008-11-01 16:10 UTC, tebosoftware
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tebosoftware 2008-11-01 16:09:53 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows Vista, 6.0, x86

User Comments:
tebosoftware: Estava Debugando



Stacktrace: 
java.lang.IllegalArgumentException: Unmatched braces in the pattern.
        at java.text.MessageFormat.applyPattern(MessageFormat.java:476)
        at java.text.MessageFormat.<init>(MessageFormat.java:350)
        at java.text.MessageFormat.format(MessageFormat.java:811)
        at org.openide.util.NbBundle.getMessage(NbBundle.java:696)
        at org.openide.util.NbBundle.getMessage(NbBundle.java:645)
        at org.netbeans.modules.debugger.jpda.ui.debugging.ClickableIcon.changeIcon(ClickableIcon.java:153)
Comment 1 tebosoftware 2008-11-01 16:10:03 UTC
Created attachment 73049 [details]
stacktrace
Comment 2 Martin Entlicher 2008-11-03 13:22:16 UTC
The pattern is 'Suspend thread {0}' or 'Resume thread {0}'. I do not see any unmatched braces there.

tebosoftware, does this occur every time you start debugger? Is it reproducible?
Comment 3 tebosoftware 2008-11-03 13:36:40 UTC
It's already happened 3 or 4 times.
it's happen when a step into a function.
Comment 4 Martin Entlicher 2008-11-03 14:01:01 UTC
This must be a bug in the Spanish translation.
Comment 5 Martin Entlicher 2008-11-03 14:11:50 UTC
Correction: Portuguese translation is used.
Comment 6 Masaki Katakai 2008-11-03 14:27:54 UTC
Jeremie,

Could you check the file and fix it?

java2/debugger-jpda-ui/debugger-jpda-ui/org/netbeans/modules/debugger/jpda/ui/debugging/Bundle_pt_BR.properties

LBL_RESUME_THREAD=Retomar thread \{ \{\{0\}\}

I think it should be

LBL_RESUME_THREAD=Retomar thread {0}

I'm sorry it could not be found in validation script.
Comment 7 Jeremie Bertolino 2008-11-03 14:43:44 UTC
Issue fixed accordingly.
Please verify with tomorrow once the localization plugin has been updated.