Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-547 Tokens should be presented in Heterogeneous AST
  3. SONARJAVA-1139

The bound of the type cast should be present in the TypeCastTree

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4
    • Component/s: Plugin
    • Labels:
      None

      Description

      The additional bound of a type cast is currently handled through the children and not present in the the TypeCastTree

      Ref in JLS: http://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.16

      CastExpression:
         ( PrimitiveType ) UnaryExpression 
         ( ReferenceType {AdditionalBound} ) UnaryExpressionNotPlusMinus 
         ( ReferenceType {AdditionalBound} ) LambdaExpression
      
      AdditionalBound:
         & InterfaceType
      

        Attachments

          Activity

            People

            Assignee:
            nicolas.peru Nicolas Peru
            Reporter:
            michael.gumowski Michael Gumowski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: