GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — [kotlin] Fix #6677: Add auxClasspath language property by stokpop · Pull Request #6678 · pmd/pmd Conversation
|
|
Compared to main: (comment created at 2026-06-18 13:25:05+00:00 for d9c36f4) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
getTypeName() and getReturnTypeName() on KotlinNode return null before type analysis runs. Filter them out so they do not appear as null XPath attributes. Update Simple.txt reference dump accordingly.
…sspath-standalone
|
Hi @adangel, this PR is reworked to move as much as possible the code from KotlinNode, in line with previous related merged PRs. Can you please have a look? I think this is the next step to get to type awareness in Kotlin rules. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
Let's scope this PR down to just "[kotlin] Add auxclasspath language property" and add the KotlinNodeTypeData with the PR, that actually uses it.
So in short:
List<Path> instead of List<File>
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
The XPath functions can only be added, when you have types... So, I guess, the next PR should then focus on integrating kotlin-type-mapper, adding the additional AST processing phase and put the types into the nodes. Also note: The types you have designed now are simple Strings... is this what you want? At some point, rules probably want to query something like "what are the methods of this type", or "is this type a subtype of this other type". Depending on the use cases, Strings are maybe too simple... (Note: I didn't look at all into #6645 - so not sure what use cases you already implemented). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the thorough review! I will go through each of the points. The three "tiers" of classpath handling were there for three usages:
If both Designer and tests can use the same approach we can indeed consolidate on one way. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Scope this PR down to auxclasspath language property only. KotlinNodeTypeData will be added with the PR that actually uses it (kotlin-type-mapper integration).
…asspath property Only support the auxClasspath language property; remove URLClassLoader hierarchy and java.class.path fallbacks. Returns List<Path> instead of List<File>. Update tests accordingly.
- Log warning when auxClasspath is empty so users know type resolution will not work - Use tempDir.resolve() for non-existent paths in tests for determinism docs(kotlin): add auxclasspath section and language property entry Add "Providing the auxiliary classpath" section to kotlin.md and add auxClasspath entry to language_properties.md. Since 7.26.0.
…is PR Holder-class pattern belongs with the PR that adds XPath functions.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[kotlin] Add auxClasspath language property
There was an error while loading. Please reload this page.