Message10242

Author jsaiz
Recipients jsaiz, zyasoft
Date 2015-09-10.08:27:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1441873622.05.0.418503027142.issue2391@psf.upfronthosting.co.za>
In-reply-to
Content
Inserting this in the line 292 of PyJavaType.java solves it:

// === START PATCH FOR BUG 2391 ===

Comparator<Method> methodComparator = new Comparator<Method>() {
    @Override public int compare(Method m1, Method m2) {
        Class<?> c1 = m1.getClass();
        Class<?> c2 = m2.getClass();
        return c1.isAssignableFrom(c2)? -1 : c2.isAssignableFrom(c1)? 1 : 0;
    }
};
Arrays.sort(methods, methodComparator);

// ==== END PATCH FOR BUG 2391 ====
History
Date User Action Args
2015-09-10 08:27:02jsaizsetmessageid: <1441873622.05.0.418503027142.issue2391@psf.upfronthosting.co.za>
2015-09-10 08:27:02jsaizsetrecipients: + jsaiz, zyasoft
2015-09-10 08:27:02jsaizlinkissue2391 messages
2015-09-10 08:27:01jsaizcreate