Default
java considers integer literals as ints and real literals as doubles.
so compiler treats '1' as int. So it is specifying there is no method which accepts
1)int or broder types of int
2) Integer or broder types of Integer
3) Var- agrs which accepts one of above two.
Please type cast as myObject.doSomth((short)1);
Now compiler treats as short type argument.
[ November 29, 2007: Message edited by: rami marri ]