Message4526

Author marcdownie
Recipients cgroves, fwierzbicki, kfitch42, marcdownie, zyasoft
Date 2009-04-17.15:47:05
SpamBayes Score 1.5730222e-08
Marked as misclassified No
Message-id <1239983225.81.0.710361700713.issue1285@psf.upfronthosting.co.za>
In-reply-to
Content
I fear it's more complex than this. 

If I change my example to:

package somepackage;

public class Banana {
       public void amethod() {}

       public void amethod(int x, int y) {}

       // added this method
       public void bmethod(){}
}

---
and:

package somepackage;

public class Pear extends Banana {
       public void amethod(int x, int y)
       {
       }
}

---

then Pear().bmethod() works as expected (even though 
Pear.class.getDeclaredMethods() will not contain a bmethod). Had it not 
worked I would have seen this bug immediately (I have a lot of code that 
runs with respectJavaAccessibility=false).
History
Date User Action Args
2009-04-17 15:47:05marcdowniesetmessageid: <1239983225.81.0.710361700713.issue1285@psf.upfronthosting.co.za>
2009-04-17 15:47:05marcdowniesetrecipients: + marcdownie, cgroves, fwierzbicki, zyasoft, kfitch42
2009-04-17 15:47:05marcdownielinkissue1285 messages
2009-04-17 15:47:05marcdowniecreate