Mercurial Hosting > luan
comparison src/luan/lib/JavaLib.java @ 63:ebe578282363
minor fix
git-svn-id: https://luan-java.googlecode.com/svn/trunk@64 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 09 Jan 2013 22:54:50 +0000 |
parents | 7c05f53ef6cb |
children | 177cfdc2bdb3 |
comparison
equal
deleted
inserted
replaced
62:7c05f53ef6cb | 63:ebe578282363 |
---|---|
350 new Class[]{st.cls}, | 350 new Class[]{st.cls}, |
351 new InvocationHandler() { | 351 new InvocationHandler() { |
352 public Object invoke(Object proxy,Method method, Object[] args) | 352 public Object invoke(Object proxy,Method method, Object[] args) |
353 throws Throwable | 353 throws Throwable |
354 { | 354 { |
355 if( args==null ) | |
356 args = new Object[0]; | |
355 String name = method.getName(); | 357 String name = method.getName(); |
356 Object fnObj = t.get(name); | 358 Object fnObj = t.get(name); |
357 if( fnObj==null && base!=null ) | 359 if( fnObj==null && base!=null ) |
358 return method.invoke(base,args); | 360 return method.invoke(base,args); |
359 LuanFunction fn = luan.checkFunction(LuanElement.JAVA,fnObj); | 361 LuanFunction fn = luan.checkFunction(LuanElement.JAVA,fnObj); |