Hi,
I fixed the bug.

I changed the function "getTextMessage()"  at
trunk/java/tools/org/apache/derby/iapi/tools/i18n/LocalizedResource.java.

    public String getTextMessage(String key, Object... objectArr) {

        if (res == null){

            setResource();
        }

        if(key=="IJ_UnabToEsta") {
            try{

            return "No connection available";
            }
        catch(Exception e){
        String tmpFormat = key;

        for (int i=0; objectArr != null && i<objectArr.length; i++)
            tmpFormat = tmpFormat + ", <{" + (i) + "}>";
            return MessageFormat.format(tmpFormat, objectArr);
        }

        }

        else{

            try{

                return MessageFormat.format(res.getString(key), objectArr);
            } catch (Exception e) {
                    String tmpFormat = key;

                    for (int i=0; objectArr != null && i<objectArr.length;
i++)
                        tmpFormat = tmpFormat + ", <{" + (i) + "}>";
                    return MessageFormat.format(tmpFormat, objectArr);
            }
        }

    }

On Sun, Aug 7, 2016 at 4:20 PM, dulanja mallikarachchi <
[email protected]> wrote:

> Hi All,
>
> I'm new to Apache Derby, and I like to start working on "DERBY-3419
> Incorrect error message in ij for disconnect with no active connections"
> issue.
>
> Any information about the issue is highly appreciated.
>
> Thank you!
>

Reply via email to