Andreas Dangel

Results 150 issues of Andreas Dangel

## Describe the PR ## Related issues - Fixes #4794 ## Ready? - [x] Added unit tests for fixed bug/feature - [x] Passing all unit tests - [x] Complete build...

[OpenJDK 22](https://openjdk.org/projects/jdk/22/) GA is scheduled for 2024/03/19. The following JEPs are important for us: * 447: [Statements before super(...) (Preview)](https://openjdk.org/jeps/447) * 456: [Unnamed Variables & Patterns](https://openjdk.org/jeps/456) * 459: [String Templates...

an:enhancement

## Is your feature request related to a problem? Please describe. We have a workaround for this problem (#4445), but I'd like to explore, whether we can make a real...

an:enhancement
in:pmd-internals

This method was added only as a temporary, transitional solution. The main fix was not finished for 7.0.0 yet, but with 7.x, we should finish it: * Provide the RuleContext...

is:deprecation

## Description An abstract syntax tree should be abstract, but in the same time, should not be too abstract. One of the base interfaces for PMD's AST for all languages...

in:ast
is:deprecation

Info: CPD currently doesn't have the option to specify a reportFile. That should probably be added at some point. Currently, the report is always written on System.out. But that's an...

an:enhancement
in:cpd
in:cli

PMD provides a couple of custom XPath functions, that can be called, see https://docs.pmd-code.org/latest/pmd_userdocs_extending_writing_xpath_rules.html#pmd-extension-functions However, there is no documentation available yet, that describes, how to implement/add such a custom function...

an:enhancement
in:documentation

## Related issues - Fixes #932 ## Ready? - [ ] Added unit tests for fixed bug/feature - [ ] Passing all unit tests - [ ] Complete build `./mvnw...

**Affects PMD Version:** 7.0.0-rc3 **Description:** The pmd start script does something with JAVA_HOME: https://github.com/pmd/pmd/blob/0557c5c85eccdb98577590e3425170e236646649/pmd-dist/src/main/resources/scripts/pmd#L18 But we don't actually seem to use JAVA_HOME in any way, because we just execute `java`...

in:cli

* This can only be done after #4787 * This makes sure, we don't use `getImage` in rules (any language) * Final removal can only be done in PMD 8.

in:ast
is:feature-removal