You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Jean-frederic Clere <jf...@telefonica.net> on 2005/12/15 00:02:37 UTC

jchevm+ibm_core

Hi,

I am trying to get working jchevm+ibm_core (+some classpath classes). 
But I am fighting with the following (in (my) System.java):
+++
        private static String mydefault = "ISO-8859-1";

        // private static native String getEncoding(int type);
        static String getEncoding(int type) {
                return mydefault;
        }
+++
It appairs that mydefault is null ;-(

Any hints?

Cheers

Jean-Frederic

Re: jchevm+ibm_core

Posted by Jean-frederic Clere <jf...@telefonica.net>.
Archie Cobbs wrote:

> Jean-frederic Clere wrote:
>
>> I am trying to get working jchevm+ibm_core (+some classpath classes). 
>> But I am fighting with the following (in (my) System.java):
>> +++
>>        private static String mydefault = "ISO-8859-1";
>>
>>        // private static native String getEncoding(int type);
>>        static String getEncoding(int type) {
>>                return mydefault;
>>        }
>> +++
>> It appairs that mydefault is null ;-(
>
>
> A probable cause is because you have a class initialization loop,
> and "mydefault" has not been set yet.

Thanks, that was the problem.

Cheers

Jean-frederic

>
> -Archie
>
> __________________________________________________________________________ 
>
> Archie Cobbs      *        CTO, Awarix        *      
> http://www.awarix.com
>


Re: jchevm+ibm_core

Posted by Archie Cobbs <ar...@dellroad.org>.
Jean-frederic Clere wrote:
> I am trying to get working jchevm+ibm_core (+some classpath classes). 
> But I am fighting with the following (in (my) System.java):
> +++
>        private static String mydefault = "ISO-8859-1";
> 
>        // private static native String getEncoding(int type);
>        static String getEncoding(int type) {
>                return mydefault;
>        }
> +++
> It appairs that mydefault is null ;-(

A probable cause is because you have a class initialization loop,
and "mydefault" has not been set yet.

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com