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] Fix java7 compatibility by adangel · Pull Request #2690 · pmd/pmd

Conversation

@adangel

@adangel adangel commented Aug 1, 2020

Copy link
Copy Markdown
Member

Describe the PR

Running PMD with Java7 does not work as promised. Main problems are with JCommander and commons-text.

  • Downgrade JCommander for java7 compatibility
  • Downgrade commons-text for java7 compatibility
  • Scala also requires java8 and it failed indirectly via a ServiceConfigurationError while discovering the language.
    The Scala module itself doesn't need java8, but its dependencies require java8.
  • Add integration test

Related issues

  • none

Ready?

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@adangel
[core] Fix java7 compatibility
4cf9f59
* Scala also requires java8 and it failed indirectly via a
  ServiceConfigurationError while discovering the language.
  Scala's dependencies require java8.
* Downgrade JCommander for java7 compatibility
* Downgrade commons-text for java7 compatibility
* Add integration test
@adangel adangel added the a:bug PMD crashes or fails to analyse a file. label Aug 1, 2020
@adangel adangel added this to the 6.27.0 milestone Aug 1, 2020
@adangel
[doc] Update release notes, refs pmd#2690
6024484
@ghost

ghost commented Aug 1, 2020 •
edited by ghost
Loading

Uh oh!

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

Copy link
Copy Markdown
1 Message
📖 This changeset introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Full report
✅ This changeset introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 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.

@adangel
[core] Remove dependency to commons text, it is actually not needed
54637c6
Escaping in CDATA section is not necessary.
@adangel
adangel marked this pull request as ready for review August 2, 2020 13:22
oowekyala
oowekyala approved these changes Aug 3, 2020
View reviewed changes
@oowekyala

oowekyala commented Aug 3, 2020

Copy link
Copy Markdown
Member

Not sure how to merge this into PMD 7... I see there's still a jdk-8-modules profile in pmd-dist/pom.xml. Should the new JDK 7 profile be removed, and that other JDK 8 profile merged into the default config?

All reactions

Sorry, something went wrong.

Uh oh!

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

@adangel

adangel commented Aug 3, 2020

Copy link
Copy Markdown
Member Author

Not sure how to merge this into PMD 7... I see there's still a jdk-8-modules profile in pmd-dist/pom.xml.

It seems, we forgot this. the jdk-8-modules profile should be removed in pmd 7, as all modules are now java8 and a treated the same.

Should the new JDK 7 profile be removed, and that other JDK 8 profile merged into the default config?

I think, it makes sense to add a integration test in PMD 7 for JDK8 - since we run the build with java11 (and therefore our tests). That requires a bit more effort (e.g. I need to make sure, that we can download jdk8 from pmd-code.org/openjdk ).

I can do the merge of this PR on master and make the merge+adjustments to PMD 7 myself, but earliest on Thursday.

All reactions

Sorry, something went wrong.

Uh oh!

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

@oowekyala

oowekyala commented Aug 3, 2020

Copy link
Copy Markdown
Member

I'd be more comfortable if you did the merge yourself. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

@adangel adangel self-assigned this Aug 6, 2020
@adangel
adangel merged commit 0a7d3ff into pmd:master Aug 6, 2020
@adangel
adangel deleted the java7-compat branch August 6, 2020 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@oowekyala oowekyala oowekyala approved these changes

Uh oh!

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

Assignees

@adangel adangel

Labels

a:bug PMD crashes or fails to analyse a file.

Projects

None yet

Milestone

6.27.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

@adangel @oowekyala
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.