Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-387

Deprecate method setUpCheckstyleClassloader in 3.1.2

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • None
    • None

    Description

      Current situation

      In 3.1.1, the PR https://github.com/apache/maven-checkstyle-plugin/pull/18 added a try-catch-block to the to-be-removed method call Checker::setClassLoader.

      Since users should be encuraged to upgrade and maven-plugin-developers should know that this method should be removed some time, a warning is to be issued if the method call was successful (i.e. when not entering the catch block).

      Caveat and drawbacks

      Related issues

      Documentation

      • maven-checkstyle-plugin is compatible with all checkstyle versions by functionality.
      • maven-checkstyle-plugin >= 3.1.2 will complain if checkstyle < 8.29 is being used, which is the default (since it requires checkstyle 8.19).
      • If we are ever going to remove the method Checker::setClassLoader, this means that earlier versions than checkstyle 8.26 are not supported. They will probably work just fine, but the method call became a 'real' no-op in 8.26. Might be worth documentation.

       

      Attachments

        Issue Links

          Activity

            People

              bmarwell Benjamin Marwell
              bmarwell Benjamin Marwell
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m