Hi,
for the code snippet below assume that 'c' is a reference to a local interface.
someMethod(Integer pk) {
Customer c = custHome.findByPrimaryKey(pk);
Object o = c;
otherMethod(o);
}
otherMethod(Object o) {
System.out.println("object");
}
otherMethod(Customer c) {
System.out.println("customer");
}
The output from the above is "object" using Jboss 3.0.3? So, can anyone answer why the otherMethod(Customer c) method isnt being called instead?
thanks in advance,
Dean