Message4859

Author cgroves
Recipients cgroves, sreimers
Date 2009-06-29.02:26:43
SpamBayes Score 1.5028817e-10
Marked as misclassified No
Message-id <1246242404.52.0.0316311797755.issue1381@psf.upfronthosting.co.za>
In-reply-to
Content
In r6500 I added a test that calls all the methods on Implementation in the following Java code 
from Python:

public class DisagreeingInterfaceOverrides {

    public interface StringArg {

        String call(String arg);
    }

    public interface IntArg {

        String call(int arg);
    }

    public interface ListArg {

        String call(List<Object> arg);
    }

    public interface ArrayListArg {

        String call(List<Object> arg);
    }

    public static class Implementation implements StringArg, IntArg, ListArg, ArrayListArg {

        public String call(String arg) {
            return "String";
        }

        public String call(int arg) {
            return "int";
        }

        public String call(List<Object> arg) {
            return "List";
        }

        public String call(ArrayList<Object> arg) {
            return "ArrayList";
        }
    }
}

When using the type specified for each method, I got the proper String back from that method.

Could you attach some code that causes the problem?  I'm not able to reproduce it from your 
description.
History
Date User Action Args
2009-06-29 02:26:44cgrovessetmessageid: <1246242404.52.0.0316311797755.issue1381@psf.upfronthosting.co.za>
2009-06-29 02:26:44cgrovessetrecipients: + cgroves, sreimers
2009-06-29 02:26:44cgroveslinkissue1381 messages
2009-06-29 02:26:43cgrovescreate