Index: com/caucho/quercus/program/JavaClassDef.java =================================================================== --- com/caucho/quercus/program/JavaClassDef.java (revision 6252) +++ com/caucho/quercus/program/JavaClassDef.java (working copy) @@ -1287,6 +1287,9 @@ if (method.isAnnotationPresent(Hide.class)) continue; + if (method.getDeclaringClass() == Object.class) + continue; + if ("iterator".equals(method.getName()) && method.getParameterTypes().length == 0 && Iterator.class.isAssignableFrom(method.getReturnType())) { @@ -1320,14 +1323,6 @@ _functionMap.put(fun.getName(), fun); } } - - introspectMethods(moduleContext, type.getSuperclass()); - - Class []ifcs = type.getInterfaces(); - - for (Class ifc : ifcs) { - introspectMethods(moduleContext, ifc); - } } public JavaMethod getToString()