RE: Are the following three things bugs or not??

"Daniel Leuck" <[email protected]> Tue, 10 Jan 2006 20:39:52 -0500
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
Hi Peter,

> 1. bsh % String str[]={"test"};
>    //  Error: Parser Error: In file: <unknown>
> Encountered "[" at line 1, column 11.

Yes, it's a bug with the grammar.

> 
> 2. bsh % Locale.UK.getDisplayName();
>    <Englisch (Vereinigtes Köigreich)> // case
> sensitive is very important, but ...

Its displaying the name of the language in your current locale's language.
If you want it in English use Locale.UK.getDisplayName(Locale.ENGLISH);
This is not a bug, and does not relate to BeanShell.

> 3. (This is not very bad:)
>    If we press "<-" (backspace) and then "TAB"
> (tabulator) we get:
>    Internal JConsole Error:
> javax.swing.text.BadLocationException: Length must be
> positive

Yes.  It's a bug.

> And could we change the following in JConsole class:
> PRIVATE Vector history = new Vector();
> to PROTECTED ?

I don't see a problem with this, unless Pat objects.  In general, I would
like to create a better abstracted console component and submit it to the
JDNC/SwingX project.  This component would be designed with pluggable
languages and subclassing in mind.

Cheers,
Daniel Leuck
http://www.ikayzo.com
http://www.javaui.net



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click