Brian Jones <[EMAIL PROTECTED]> writes:
> Hey guys,
>
> I've tried to use code like the following with Japhar.
>
> String fstr = new String("3.14");
> try {
> Float f = new Float(fstr);
> } catch (NumberFormatException nfe) {
> System.out.println("caught exception: " +
> nfe.getMessage());
> }
>
> This fails with Japhar+JDK
>
> native frame: java/lang/Double.valueOf0
> java frame: java/lang/Float.<init> (pc = 9)
> java frame: FloatTest.parseFloat (39, pc = 7)
> java frame: FloatTest.main (5, pc = 95)
> Bus error
This is still true, I can reproduce this consistently. Use the test
code above to find the problem.
> and Japhar+Classpath
>
> native frame: java/lang/Float.parseFloat
> java frame: java/lang/Float.<init> (34, pc = 9)
> java frame: FloatTest.parseFloat (39, pc = 7)
> java frame: FloatTest.main (5, pc = 78)
This was my fault. This occurred when I tried to convert a null
jstring to a utf char c string, at least I think that did it.
Brian
--
|-------------------------------|Software Engineer
|Brian Jones |[EMAIL PROTECTED]
|[EMAIL PROTECTED] |http://www.nortel.net
|http://www.classpath.org/ |------------------------------