Issue222799
Created on 2000-11-18.18:53:30 by bckfnn, last changed 2000-11-18.22:10:11 by bckfnn.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 18:53:30 | bckfnn | create | |
Created on 2000-11-18.18:53:30 by bckfnn, last changed 2000-11-18.22:10:11 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg35 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.18:53:30 | |
A float PyArray will be autoconverted to a double array. Even when the
float array is a valid arg to a java method.
------------------ FILE: test157.py ------------------
import test157j
from jarray import *
f = zeros(2,'d');
print test157j.test(f);
print f
f = zeros(2,'f'); f
print test157j.test(f);
print f
------------------ END ------------------
------------------ FILE: test157j.java ------------------
public class test157j {
public static String test(float[] arr) {
arr[0]=100;
return "float";
}
public static String test(double[] arr) {
arr[0]=100;
return "double";
}
}
------------------ END ------------------
|
|||
| msg36 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.22:10:11 | |
Fixed in Pyarray where the autoconversion is disabled. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 18:53:30 | bckfnn | create | |
Supported by Python Software Foundation,
Powered by Roundup