Bookmark Topic Watch Topic
  • New Topic

Nasty little overloaded var-args problem...  RSS feed

 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Report post to moderator
in the SCJP forum over here

It's the method(1) call that is unresolvable.

Got ideas?
Thanks
[ July 26, 2006: Message edited by: Barry Gaunt ]
 
Martin Simons
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Report post to moderator
No, both method(1) and method(new Integer("1")) will cause the error, but it never makes it to evaluating either of these statements, as the compiler fails simply parsing the method declarations. It hasn't even gotten to evaluating what is inside the methods.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion in the original thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!