Message3088

Author pzack
Recipients akong, crotwell, fwierzbicki, pzack
Date 2008-03-16.17:01:36
SpamBayes Score 0.025915936
Marked as misclassified No
Message-id <1205686897.68.0.540766763899.issue1002@psf.upfronthosting.co.za>
In-reply-to
Content
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.

-Zack
History
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: <1205686897.68.0.540766763899.issue1002@psf.upfronthosting.co.za>
2008-03-16 17:01:37pzacklinkissue1002 messages
2008-03-16 17:01:37pzackcreate