Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3789

Fix ClassCastException in S6202 (IsInstanceMethodCheck:70)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.15
    • Component/s: Rules
    • Labels:
      None

      Description

      ERROR: Unable to run check class org.sonar.java.checks.IsInstanceMethodCheck - S6202 on file 'hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/lang/Class_isInstance05.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
      java.lang.ClassCastException: class org.sonar.java.model.JavaTree$ArrayTypeTreeImpl cannot be cast to class org.sonar.plugins.java.api.tree.IdentifierTree (org.sonar.java.model.JavaTree$ArrayTypeTreeImpl and org.sonar.plugins.java.api.tree.IdentifierTree are in unnamed module of loader org.sonar.classloader.ClassRealm @6e33c391)
      	at org.sonar.java.checks.IsInstanceMethodCheck.getClassIdentifier(IsInstanceMethodCheck.java:70)
      	at org.sonar.java.checks.IsInstanceMethodCheck.visitNode(IsInstanceMethodCheck.java:57)
      

      See peach analyze.log of jdk9

        Attachments

          Activity

            People

            • Assignee:
              margarita.nedzelska Margarita Nedzelska
              Reporter:
              alban.auzeill Alban Auzeill
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: