This discussion is archived
1 2 Previous Next 15 Replies Latest reply: May 19, 2010 9:42 AM by 843793 Go to original post RSS
  • 15. Re: Typed collection and method overloading
    843793 Newbie
    Currently Being Moderated
    ejp wrote:
    According to §4.3.3 JVMS this should give an error
    §4.3.3 JVMS doesn't say any such thing, or indeed anything about compile errors.
    Really, a good VM spec needn't even acknowledge the existence of a compiler since one need not exist to run bytecode on a VM.
    Or call one of the "overloads" by chance. This behavior doesn't seem to be right to me.
    It isn't.
    There is a condition mentioned in 15.12.2.5 under which the compiler can arbitrarily choose which method to call, and its choice is undefined.
1 2 Previous Next