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

Summary: I18N - --locale option without argument causes java.lang.ArrayIndexOutOfBoundsException:
Product: platform Reporter: Masaki Katakai <masaki>
Component: Launchers&CLIAssignee: t_h <t_h>
Status: VERIFIED FIXED    
Severity: blocker CC: lhasik
Priority: P4 Keywords: I18N, SIMPLEFIX
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: patch for the AOOBE in locale case

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!