GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [core] Deprecate PMDConfiguration#setClassloader and #getClassloader · Issue #4953 · pmd/pmd

[core] Deprecate PMDConfiguration#setClassloader and #getClassloader #4953

New issue
Copy link
New issue
Copy link
Closed
#6845
Closed
[core] Deprecate PMDConfiguration#setClassloader and #getClassloader#4953
#6845
Copy link
Assignees
adangel
Labels
a:suggestionAn idea, with little analysis on feasibility, to be consideredis:deprecationThe main focus is deprecating public APIs or rules, eg to make them internal, or removing them
Milestone
7.27.0

Description

@adangel
adangel
opened on Apr 11, 2024
Issue body actions

That's a suggestion for now:

  • Deprecate setClassloader/getClassloader
  • refactor PMDConfiguration to deal with a list of strings (a "classpath")
  • create the classloader only later, fully internally
  • Do not expose this classloader in any way in the public API

That way:

  • we are not tied anymore to using a classloader impl to load class files
  • we can make sure to close all files behind us

Refs:

  • [doc] Improve doc around PMDConfiguration#prependAuxclasspath #setClassloader #4952
  • [maven] Classloader not being closed after PMD run #2163
  • [java] Parsing failed in ParseLock#doParse() java.io.IOException: Stream closed #4899
  • [core] Disable Caching in URLConnection for ClasspathClassLoader #4949
  • [java] java.lang.OutOfMemoryError: Java heap space when accessing big Jar files with PMD 7 #6010
  • [java] Use .jar file caching when not running in parallel #6099

Activity

  1. adangel
    added
    a:suggestionAn idea, with little analysis on feasibility, to be considered
    is:deprecationThe main focus is deprecating public APIs or rules, eg to make them internal, or removing them
    on Apr 11, 2024
  2. adangel
    added this to the 7.19.0 milestone on Oct 27, 2025
  3. adangel
    modified the milestones: 7.19.0, 7.20.0 on Nov 24, 2025
  4. oowekyala
    added a commit that references this issue on Dec 4, 2025

    Make PmdClasspathWrapper not Closeable and immutable

    bf2350d
  5. oowekyala
    self-assigned this
    on Dec 4, 2025
  6. oowekyala
    added 3 commits that reference this issue on Dec 5, 2025

    Make PmdClasspathWrapper not Closeable and immutable

    2e230f1

    Fix pmd#4953 - deprecate methods of PMDConfiguration that use ClassLo…

    d99c8ac

    Make PmdClasspathWrapper not Closeable and immutable

    c2cf512
  7. adangel
    modified the milestones: 7.20.0, 7.21.0 on Dec 28, 2025
  8. adangel
    modified the milestones: 7.21.0, 7.22.0 on Jan 30, 2026
  9. adangel
    modified the milestones: 7.22.0, 7.23.0 on Feb 22, 2026
  10. adangel
    modified the milestones: 7.23.0, 7.24.0 on Mar 24, 2026
  11. adangel
    modified the milestones: 7.24.0, 7.25.0 on Apr 24, 2026
  12. stokpop
    added a commit that references this issue on May 14, 2026

    Add auxclasspath support and type-mapper infrastructure for Kotlin

    f1edf89
  13. adangel
    removed this from the 7.25.0 milestone on May 25, 2026
  14. adangel
    assigned
    adangel
    and unassigned
    oowekyala
    on Jul 3, 2026
  15. adangel
    added this to the 7.27.0 milestone on Jul 7, 2026
  16. adangel
    added a commit that references this issue on Jul 16, 2026

    [core] Fix #4953: Deprecate PMDConfiguration#getClassLoader (#6845)

    This issue will close once commit 5e92c27 is merged into the 'main' branch.
    5e92c27
  17. adangel
    closed this as completedin #6845on Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @adangel
    adangel

Labels

a:suggestionAn idea, with little analysis on feasibility, to be consideredis:deprecationThe main focus is deprecating public APIs or rules, eg to make them internal, or removing them

Type

No type

Projects

No projects

    Milestone

    • 7.27.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.