octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #45264] ov-java.cc-tst fails with openjdk-7 jr


From: Rik
Subject: [Octave-bug-tracker] [bug #45264] ov-java.cc-tst fails with openjdk-7 jre 32 bit on octave 4.0.0
Date: Mon, 08 Jun 2015 16:24:33 +0000
User-agent: Mozilla/5.0 (X11; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0

Update of bug #45264 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #6:

I have replicated the results in comment #5 on 64-bit Ubuntu (12.04 LTS) with
both Octave 3.8.2 (works) and Octave 4.0.0 (fails).  Maybe it was obvious, but
after creating the Myclass.java file I also needed to run 'javac Myclass.java'
to create a .class file.

Just quickly glancing through the Mercurial logs, this changeset looks
suspicious.


changeset:   17665:78e9bfdc544e
user:        Michael Goffioul <address@hidden>
date:        Tue Oct 15 21:43:00 2013 -0400
summary:     * scripts/java/org/octave/ClassHelper.java (castArgument): Handle
conversion of float.

diff -r f4b0430fa5fd -r 78e9bfdc544e scripts/java/org/octave/ClassHelper.java
--- a/scripts/java/org/octave/ClassHelper.java  Tue Oct 15 16:33:30 2013
-0700
+++ b/scripts/java/org/octave/ClassHelper.java  Tue Oct 15 21:43:00 2013
-0400
@@ -623,6 +623,10 @@ public class ClassHelper
           {
             return new Long (((Number) obj).longValue ());
           }
+        else if (expType.equals (Float.TYPE) || expType.equals
(Float.class))
+          {
+            return new Float (((Number) obj).floatValue ());
+          }
       }
     else if (isBooleanClass (expType))
       {




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45264>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]