Author pzack
Recipients akong, crotwell, fwierzbicki, pzack
Date 2008-03-16.17:01:36
SpamBayes Score 0.025915936
Marked as misclassified No
Message-id <>
This *is* a bug.  Consider this java code:

package test;

public class MyClass {

   public static String func(MyClass c)
      return "In static function";
   public String func()
      return "In class method";

and this jython code:

from test import MyClass

mc = MyClass()
print mc.func()
print MyClass.func(mc)
print 'Test complete'

The Output is:
In class method
In class method
Test complete

this is wrong.

I've attached a modification to the __call__ method in 
org.python.core.PyRefectedFunction that will repair this
method resolution order.  I'll create a patch for this later.

Date User Action Args
2008-03-16 17:01:37pzacksetspambayes_score: 0.0259159 -> 0.025915936
recipients: + pzack, fwierzbicki, crotwell, akong
2008-03-16 17:01:37pzacksetspambayes_score: 0.0259159 -> 0.0259159
messageid: <>
2008-03-16 17:01:37pzacklinkissue1002 messages
2008-03-16 17:01:37pzackcreate