Skip to content

[java] Drop support for Java < 8 #6095

@AB-xdev

Description

@AB-xdev

Is your feature request related to a problem? Please describe.

While having a look at where JavaParserImpl#jdkVersion is used I found 2 interesting methods:

  • isAssertStart checks if the Java version is <= 3:
    Image
  • isEnumStart check if the Java Version is >= 5
    Image

Java 1.3 was released over 25 years ago and is out of support since 2006, Java 1.5 was released in 2004 and is out of support for over 15 years.
Everything below Java 8 is nowadays irrelevant as support for it has been terminated for a long time.

Describe the solution you'd like

There are - extremely likely - exactly 0 people on the planet that are using the latest PMD version for Java projects that are that old.

Remove these check as they are irrelevant.

Additional context

Please note that the class is auto generated however I currently don't have the insight in how this is done.

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rules

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions