jersey
  1. jersey
  2. JERSEY-647

AbstractImplicitViewMethod.toString generates NPE when called against a class

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.7
    • Component/s: core
    • Labels:
      None
    • Environment:

      JDK 1.6.23 Windows 7

      Description

      Calling toString on an AbstractImplicitViewMethod assumes it is associated with a method and can generate an NPE when associated with a Class as the method object is null.

      This happens for example when an AbstractImplicitViewMethod object is passed to the create method of a ResourceFilterFactory when a resource class is annotated with @Path (and possibly other resource identifying annotations) instead of a resource method.

        Activity

        Hide
        Martin Matula added a comment -

        You are right - this would always fail, since for all implicit views there is no method (that's why they are implicit ). Fixed.

        Show
        Martin Matula added a comment - You are right - this would always fail, since for all implicit views there is no method (that's why they are implicit ). Fixed.

          People

          • Assignee:
            Martin Matula
            Reporter:
            jsl123
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: