Details

    • Type: MMF
    • Status: Ready
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      WHY

      Java 16 was released on March 16th 2021. As far as this is the last release before the LTS (Java 17) it brings a lot of updates in Language. The records and pattern matching on instanceof are no longer in a preview mode and sealed classes reached their second preview. These features bring a lot of value to developers but they're also bringing new potential bugs and code smells. And here comes Java Analyzer to help and to teach best practices.

      WHAT

      This MMF targets support of Java 16 and its features:

      • Make sure Java analyzer is able to parse Java 16 files
      • Make sure new language features are parsed correctly
      • Implement rules for Records
      • Implement rules for Pattern matching instanceof
      • Rule about using Stream.toList() method
      • Make sure existing rules are triggered on Java 16 features correctly

      HOW

      To be able to fully support Java 16 we will need to wait till the next release of Eclipse compiler 3.26 which is going to happen in the middle of June. JEPs included in the release are available here: https://www.eclipse.org/eclipse/news/4.20/jdt.php

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                margarita.nedzelska Margarita Nedzelska
                Reporter:
                richard.mathis Richard Mathis
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: