Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2084

AbstractMessageResponseTimeInterceptor has protected methods, but default (package) scope constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4
    • 2.0.11, 2.1.5
    • Core
    • None
    • Novice

    Description

      The class org.apache.cxf.management.interceptor.AbstractMessageResponseTimeInterceptor has several protected methods, indicating a desire to allow extension; however, the class cannot be extended by a class outside the package org.apache.cxf.management.interceptor, because it has an explicit constructor with no scope modifier (and thus is accessible only within the package).

      Presumably, this was an oversight, and the constructor should be protected, allowing clients of the API to extend the class.

      Otherwise, the protected modifier should be removed from the methods within the class, since it is meaningless, and consideration should be given to making the class non-public, since it will be unusable by anything but CXF internals (this would depend on the existing package structure of CXF, with which I am not familiar).

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            web.development.guys Web Development Guys
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.25h
                0.25h
                Remaining:
                Remaining Estimate - 0.25h
                0.25h
                Logged:
                Time Spent - Not Specified
                Not Specified