Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-1750

Update NameResolver's getProvider doc to say it should return null instead of returning IOException since IOExceptions are expensive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Skinning
    • None

    Description

      We might call NameResolver getProvider in a loop for each custom NameResolver - if there are custom NameResolvers.
      And if so, then we do not want the method to return IOException if the file cannot be resolved.

      Therefore, change the javadoc to say it should return null if the file name cannot be resolved.

      Also, update the implementations that we have now so that we do not get NullPointerExceptions if getProvider returns null.

      Attachments

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            jeanne.waldman@oracle.com Jeanne Waldman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: