Fix return type handling for Proxy classes
authorMatthew Fortune <matthew.fortune@imgtec.com>
Wed, 13 Jul 2016 21:34:52 +0000 (21:34 +0000)
committerMatthew Fortune <mpf@gcc.gnu.org>
Wed, 13 Jul 2016 21:34:52 +0000 (21:34 +0000)
commit0d355cf973a80a3d15132ceabd55f6510f729d88
tree11cf9820abde4b603bbec44402852023a55e10fd
parent845a4b727a88af8f4008e24e1a02ce49607bd91a
Fix return type handling for Proxy classes

libjava/

* java/lang/reflect/natVMProxy.cc (unbox): Use ffi_arg for
integer return types smaller than a word.
* testsuite/libjava.jar/ReturnInvocationHandler.java: New file.
* testsuite/libjava.jar/ReturnProxyTest.jar: Likewise.
* testsuite/libjava.jar/ReturnProxyTest.java: Likewise.
* testsuite/libjava.jar/ReturnProxyTest.out: Likewise.
* testsuite/libjava.jar/ReturnProxyTest.xfail: Likewise.
* testsuite/libjava.jar/ReturnTypes.java: Likewise.
* testsuite/libjava.jar/ReturnTypesImpl.java: Likewise.

From-SVN: r238312
libjava/ChangeLog
libjava/java/lang/reflect/natVMProxy.cc
libjava/testsuite/libjava.jar/ReturnInvocationHandler.java [new file with mode: 0644]
libjava/testsuite/libjava.jar/ReturnProxyTest.jar [new file with mode: 0644]
libjava/testsuite/libjava.jar/ReturnProxyTest.java [new file with mode: 0644]
libjava/testsuite/libjava.jar/ReturnProxyTest.out [new file with mode: 0644]
libjava/testsuite/libjava.jar/ReturnProxyTest.xfail [new file with mode: 0644]
libjava/testsuite/libjava.jar/ReturnTypes.java [new file with mode: 0644]
libjava/testsuite/libjava.jar/ReturnTypesImpl.java [new file with mode: 0644]