由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - a question about jni
相关主题
anyone saw this on code?JavaBean variable name standard
新手问题 -- dynamic variable and dynamic functions.how to solve the problem: the members change by each other .
array 在java里 是一定放在heap 吗?问一个java的面试题 (转载)
Java 问题什么是functionality test?
How to write java function for printing?Windows2000中CLASSPATH怎么设?
Is this a Bug or not?get System environment variable
JavaFXinterface可不可以有variable?
Don't call virtual functions in constructor/destructorjava 程序中的实时控制
相关话题的讨论汇总
话题: jni话题: jint话题: java话题: variable话题: question
进入Java版参与讨论
1 (共1页)
b******e
发帖数: 13
1
I create a simple jni function taking a jint argument, then print that value
out. But when i call this function in java passing a java int variable to
it, it prints out some random number. However if i change jint to jdouble
and pass java double variable, it works fine. Any ideas why? Thanks.
F****n
发帖数: 3271
2
Most likely, you made some type cast mistakes in your C/C++ code.

value

【在 b******e 的大作中提到】
: I create a simple jni function taking a jint argument, then print that value
: out. But when i call this function in java passing a java int variable to
: it, it prints out some random number. However if i change jint to jdouble
: and pass java double variable, it works fine. Any ideas why? Thanks.

1 (共1页)
进入Java版参与讨论
相关主题
java 程序中的实时控制How to write java function for printing?
help on this scope questionIs this a Bug or not?
Re: java里怎么判断一个文件存在不存在?JavaFX
Suggestion Re: 发现 synchronized 的一个问题Don't call virtual functions in constructor/destructor
anyone saw this on code?JavaBean variable name standard
新手问题 -- dynamic variable and dynamic functions.how to solve the problem: the members change by each other .
array 在java里 是一定放在heap 吗?问一个java的面试题 (转载)
Java 问题什么是functionality test?
相关话题的讨论汇总
话题: jni话题: jint话题: java话题: variable话题: question