Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8014021

TreeMaker.Params behaves inconsistently when the owning method has the same number of parameters as the number of parameter types requested

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 8
    • tools
    • b15
    • generic
    • generic

      Normally TreeMaker.Params creates parameters of the types passed in. However, if the owner is a method, and the method happens to have the same number of parameters as the number of parameters requested, the types of the owner method's parameters are used.

      I believe this is a poorly designed dual use. It caused unexpected failures in code that used it when the parameter lengths happened to match.

            jlahoda Jan Lahoda
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: