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 145006 - I18N - --locale option without argument causes java.lang.ArrayIndexOutOfBoundsException:
Summary: I18N - --locale option without argument causes java.lang.ArrayIndexOutOfBound...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: t_h
URL:
Keywords: I18N, SIMPLEFIX
: 155814 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-25 13:31 UTC by Masaki Katakai
Modified: 2009-03-12 14:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch for the AOOBE in locale case (3.50 KB, patch)
2008-08-25 15:53 UTC, Lukas Hasik
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2008-08-25 13:31:03 UTC
When I tried --locale option without any argument e.g. ja, it causes
the following exception and exits.

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 5
	at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:161)
	at org.netbeans.core.startup.CLIOptions.cli(CLIOptions.java:92)
	at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:227)
	at org.netbeans.CLIHandler.initialize(CLIHandler.java:476)
	at org.netbeans.CLIHandler.initialize(CLIHandler.java:346)
	at org.netbeans.MainImpl.execute(MainImpl.java:180)
	at org.netbeans.MainImpl.main(MainImpl.java:75)
	at org.netbeans.Main.main(Main.java:75)
Comment 1 Lukas Hasik 2008-08-25 15:53:19 UTC
Created attachment 68254 [details]
patch for the AOOBE in locale case
Comment 2 Lukas Hasik 2008-08-25 16:01:13 UTC
I'm not sure who is responsible for the CLI... 
I've attached patch.
Comment 3 Jesse Glick 2008-08-25 16:05:05 UTC
Yarda normally handles CLI issues.
Comment 4 t_h 2009-03-09 16:50:37 UTC
*** Issue 155814 has been marked as a duplicate of this issue. ***
Comment 5 t_h 2009-03-09 17:26:43 UTC
f0c5c6e25ec8
Comment 6 Quality Engineering 2009-03-11 22:51:11 UTC
Integrated into 'main-golden', will be available in build *200903111543* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f0c5c6e25ec8
User: Tomas Holy <t_h@netbeans.org>
Log: #145006: I18N --locale option without argument causes java.lang.ArrayIndexOutOfBoundsException
Comment 7 Masaki Katakai 2009-03-12 14:54:11 UTC
Verified the fix on 200903120302 build. Thank you!