yoyokko / jnlua

Automatically exported from code.google.com/p/jnlua
0 stars 0 forks source link

这里有一些BUG #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
modify this method in DefaultJavaReflector
    private Method getPublicSuperclassMethod(Class<?> clazz, String methodName,
            Class<?>[] parameterTypes) {
        Class<?> superclass = clazz.getSuperclass();
        while (superclass != null) {
            // Ignore non-public superclasses
//          if (!Modifier.isPublic(superclass.getModifiers())) {
//              continue;
//          }
//          zhangzhenjiang
            if (!Modifier.isPublic(superclass.getModifiers())) {
                return null;
            }

Original issue reported on code.google.com by zblu...@gmail.com on 2 Dec 2012 at 11:13

GoogleCodeExporter commented 9 years ago
I can confirm this to be a bug.

Original comment by an...@naef.com on 16 May 2013 at 8:20

GoogleCodeExporter commented 9 years ago
This bug has been fixed in 1.0.4 and 0.9.6 respectively. Please note that 
returning null is not an ideal solution, as the loop should continue and may 
still find a method further up in the tree.

Original comment by an...@naef.com on 28 Jul 2013 at 10:09

GoogleCodeExporter commented 9 years ago

Original comment by an...@naef.com on 28 Jul 2013 at 10:10