comparison src/luan/LuanJavaFunction.java @ 129:486a0641bca4

add pickle client/server; fix parser bugs; git-svn-id: https://luan-java.googlecode.com/svn/trunk@130 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 09 Jun 2014 09:16:16 +0000
parents d7be9b3abf1a
children 0594c132888b
comparison
equal deleted inserted replaced
128:f0a4abe58593 129:486a0641bca4
67 private Object doCall(LuanState luan,Object[] args) throws LuanException { 67 private Object doCall(LuanState luan,Object[] args) throws LuanException {
68 Object rtn; 68 Object rtn;
69 try { 69 try {
70 rtn = method.invoke(obj,args); 70 rtn = method.invoke(obj,args);
71 } catch(IllegalAccessException e) { 71 } catch(IllegalAccessException e) {
72 throw new RuntimeException(e); 72 throw new RuntimeException("method = "+method,e);
73 } catch(InvocationTargetException e) { 73 } catch(InvocationTargetException e) {
74 Throwable cause = e.getCause(); 74 Throwable cause = e.getCause();
75 if( cause instanceof Error ) 75 if( cause instanceof Error )
76 throw (Error)cause; 76 throw (Error)cause;
77 if( cause instanceof LuanException ) 77 if( cause instanceof LuanException )