Skip to content

[java] Remove old symtable#3839

Merged
adangel merged 3 commits into
pmd:pmd/7.0.xfrom
oowekyala:just-remove-old-symtable
Mar 11, 2022
Merged

[java] Remove old symtable#3839
adangel merged 3 commits into
pmd:pmd/7.0.xfrom
oowekyala:just-remove-old-symtable

Conversation

@oowekyala

@oowekyala oowekyala commented Mar 10, 2022

Copy link
Copy Markdown
Member

Describe the PR

Remove the old java symbol table and what's left of typeres. Forked off #3831

There's a tree dump test that was previously marked @ignore and whose reference files disappeared at some point, so I'm readding them and reactivating the test.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@oowekyala oowekyala added this to the 7.0.0 milestone Mar 10, 2022
@ghost

ghost commented Mar 10, 2022

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 29 violations,
introduces 26 new violations, 0 new errors and 0 new configuration errors,
removes 22 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 57348 violations,
introduces 34626 new violations, 7 new errors and 0 new configuration errors,
removes 138168 violations, 25 errors and 3 configuration errors.
Full report
Compared to pmd/7.0.x:
This changeset changes 24 violations,
introduces 27 new violations, 0 new errors and 0 new configuration errors,
removes 22 violations, 0 errors and 0 configuration errors.
Full report
Compared to master:
This changeset changes 57349 violations,
introduces 34626 new violations, 7 new errors and 0 new configuration errors,
removes 138167 violations, 25 errors and 3 configuration errors.
Full report

Generated by 🚫 Danger

@adangel adangel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

At some point we should document how to use the new type resolution and symbol table. We have already a good place where to put this -> https://github.com/pmd/pmd/blob/pmd/7.0.x/docs/pages/pmd/languages/java.md
I expect, that this docu will be important for migrating the rules to the new ast. I think, just some example use cases (how do I figure out, where the variable is used? How to check the type? ...) would be enough. But that's for a later :)

@adangel adangel merged commit 80dfc1e into pmd:pmd/7.0.x Mar 11, 2022
@oowekyala oowekyala deleted the just-remove-old-symtable branch March 24, 2022 11:11
@adangel adangel added in:symbol-table Affects the symbol table code is:feature-removal Remove an unneeded unused feature labels Jan 13, 2023
@adangel adangel mentioned this pull request Jan 23, 2023
55 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in:symbol-table Affects the symbol table code is:feature-removal Remove an unneeded unused feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants