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 — [java] Improve module grammar by oowekyala · Pull Request #3890 · pmd/pmd

Conversation

@oowekyala

@oowekyala oowekyala commented Apr 1, 2022

Copy link
Copy Markdown
Member

I believe this is the last grammar change needed for PMD 7. We can proceed with cleaning up the AST as in #3831

Describe the PR

Related issues

  • An item of [java] Java-grammar progress document #2701

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
oowekyala added 2 commits April 1, 2022 19:06
@oowekyala
[java] Improve module grammar
bc19d2c
Type names in "provides" directives are disambiguated
like any other type name.

ASTName is made redundant and removed for good.
@oowekyala
Add tests for module directives
b7c3e47
@oowekyala oowekyala added this to the 7.0.0 milestone Apr 1, 2022
@ghost

ghost commented Apr 1, 2022 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
2 Messages
📖 Compared to pmd/7.0.x:
This changeset changes 26 violations,
introduces 19 new violations, 0 new errors and 0 new configuration errors,
removes 18 violations, 0 errors and 0 configuration errors.
Full report
📖 Compared to master:
This changeset changes 56919 violations,
introduces 34985 new violations, 2 new errors and 0 new configuration errors,
removes 139312 violations, 25 errors and 6 configuration errors.
Full report

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala oowekyala added the in:grammar About the grammar of a lexer or parser, eg, a parse/lex exception label Apr 6, 2022
@oowekyala oowekyala mentioned this pull request Apr 9, 2022
[java] Java-grammar progress document #2701
Closed
adangel
adangel reviewed Apr 12, 2022
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for updating this!

I've added a new section in https://github.com/pmd/pmd/wiki/Java_clean_changes#module-declarations - updated already with ModuleUsesDirective using a ClassOrInterfaceType as child node instead of package name.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleDirective.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pmd-java/etc/grammar/Java.jjt Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleUsesDirective.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleProvidesDirective.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/ASTModuleProvidesDirective.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@adangel

adangel commented Apr 12, 2022

Copy link
Copy Markdown
Member

The regression tester is also not running properly:

 I, [2022-04-01T19:48:35.834774 #14483]  INFO -- : Autogenerating a dynamic ruleset based on source changes
  E, [2022-04-01T19:48:35.996017 #14483] ERROR -- : 
  E, [2022-04-01T19:48:35.996101 #14483] ERROR -- : fatal: bad revision 'master..HEAD'

seems like this is the same for the other PRs against pmd/7.0.x. I guess, we need to call it differently and use the autogenerated ruleset from the first run (when we compared against pmd7) because we don't have master checkout out (only pmd/7.0.x + PR).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

oowekyala and others added 4 commits April 14, 2022 19:49
@oowekyala @adangel
Replace package name with class name
7bf44c6
Co-authored-by: Andreas Dangel <[email protected]>
@oowekyala
Remove DirectiveType enum
1b54b35
@oowekyala
Rename getters
8b67ab9
@oowekyala
Merge branch '7.0.x' into java-grammar-module
0970b71
@oowekyala

oowekyala commented Apr 14, 2022

Copy link
Copy Markdown
Member Author

Thanks for updating the wiki and spotting that mistake about the uses directive!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@oowekyala
Fix tests
35d5eca
@oowekyala oowekyala self-assigned this Apr 20, 2022
adangel
adangel approved these changes Apr 22, 2022
View reviewed changes
@adangel
adangel merged commit 8f00641 into pmd:pmd/7.0.x Apr 22, 2022
@oowekyala
oowekyala deleted the java-grammar-module branch April 22, 2022 08:04
@adangel adangel mentioned this pull request Jan 23, 2023
PMD 7 Tracking Issue #3898
Closed
55 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adangel adangel adangel approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@oowekyala oowekyala

Labels

in:grammar About the grammar of a lexer or parser, eg, a parse/lex exception

Projects

None yet

Milestone

7.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@oowekyala @adangel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.