Bugs item #953043, was opened at 2004-05-13 07:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=953043&group_id=23735
Category: None
Group: None
Status: Open
Resolution: None
Priority: 6
Submitted By: Matthias Radestock (mradestock)
Assigned to: Nobody/Anonymous (nobody)
Summary: cpl for java classes must have Object last
Initial Comment:
interface Foo {}
public class Bar implements Foo {}
public class Baz {
public static int m(Object o) { return 0; }
public static int m(Foo o) { return 1; }
static public void main(String[] args) {
System.out.println(m(new Bar()));
}
}
The above prints "1" but when the same call to m is
made from s2j it returns 0.
The reason is that Object comes before Foo in the
java-class-precedence-list of Bar.
Fix on its way.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=953043&group_id=23735
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
|