Uploaded image for project: 'Seam 2'
  1. Seam 2
  2. JBSEAM-2301

JBoss EL bug handling overloaded methods with varargs mixed in

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0.GA
    • Fix Version/s: The future
    • Component/s: EL
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Call facesMessages.add("Message", null) instead

      Show
      Call facesMessages.add("Message", null) instead

      Description

      Doing facesMessages.add("Message") from an EL expression doesn't work, complaining about the String class not being compatible with the FacesMessage class. The problem is caused by a combination of two things:

      1. There are two FacesMessages.add(...) that can accept one parameter: add(FacesMessage facesMessage) and add(String messageTemplate, Object... params)

      2. The FacesMessages.add(...) that accepts a String as the first parameter can optionally accept additional parameters through a vararg

      If only one of those was the case, it'd work fine. However, having both at the same time triggers the error.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                IGx89 Matthew Lieder (Inactive)
              • Votes:
                1 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: