Uploaded image for project: 'Tiles'
  1. Tiles
  2. TILES-328

Cast to ServletContext instead of using reflection

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.4
    • 2.1.1
    • tiles-core
    • None

    Description

      In org.apache.tiles.access.TilesAccess.get/set/removeAttribute, instead of using reflection to call the methods, cast the context object to a ServletContext and then call the methods directly. This reduces the chance of having a SecurityException occur, since the ServletContext interface for these methods are public, but the specific context may not be reflectable.

      Attachments

        Issue Links

          Activity

            People

              brenmcguire Antonio Petrelli
              ecapachedev Eddy Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: