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...
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: t_h
Keywords: I18N, SIMPLEFIX
: 155814 (view as bug list)
Depends on:
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:

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(
	at org.netbeans.core.startup.CLIOptions.cli(
	at org.netbeans.CLIHandler.notifyHandlers(
	at org.netbeans.CLIHandler.initialize(
	at org.netbeans.CLIHandler.initialize(
	at org.netbeans.MainImpl.execute(
	at org.netbeans.MainImpl.main(
	at org.netbeans.Main.main(
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
Comment 6 Quality Engineering 2009-03-11 22:51:11 UTC
Integrated into 'main-golden', will be available in build *200903111543* on (upload may still be in progress)
User: Tomas Holy <>
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!