Mercurial Hosting > luan
changeset 212:5b9726553ac8
don't convert returned primitive arrays to tables for java methods
git-svn-id: https://luan-java.googlecode.com/svn/trunk@213 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 08 Jul 2014 20:03:43 +0000 |
parents | 284eddd599b1 |
children | 4a27f24ce2b5 |
files | core/src/luan/LuanJavaFunction.java dist/luan-core-trunk.jar dist/luan-logging-trunk.jar dist/luan-web-trunk.jar |
diffstat | 4 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 284eddd599b1 -r 5b9726553ac8 core/src/luan/LuanJavaFunction.java --- a/core/src/luan/LuanJavaFunction.java Tue Jul 08 19:31:05 2014 +0000 +++ b/core/src/luan/LuanJavaFunction.java Tue Jul 08 20:03:43 2014 +0000 @@ -210,7 +210,7 @@ Class<?> rtnType = m.getReturnType(); if( rtnType == Void.TYPE ) return RTN_NOTHING; - if( convertArray && rtnType.isArray() ) + if( convertArray && rtnType.isArray() && !rtnType.getComponentType().isPrimitive() ) return RTN_ARRAY; return RTN_SAME; }
diff -r 284eddd599b1 -r 5b9726553ac8 dist/luan-core-trunk.jar Binary file dist/luan-core-trunk.jar has changed