Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3081

javax.faces.Application addBehaviors() throws UnsupportedOperationException when it shouldn't

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.5-SNAPSHOT
    • 2.0.5
    • General
    • None

    Description

      Line 140 of javax.faces.Application is currently:

      application.addBehavior(behaviorId, behaviorClass);

      when it should be:

      return application.addBehavior(behaviorId, behaviorClass);

      without the return we fall through and throw the UnsupportedOperationException when we shouldn't.

      Attachments

        1. MYFACES-3081.patch
          0.5 kB
          Michael Freedman

        Activity

          People

            lu4242 Leonardo Uribe
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: