Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210742

Compound var declaration type is not uniform for all variables

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      compound var declaration seems to be broken in jdk11.
      AST tree view for : var v1=10,v2=12 turns out to be int v1=10 ,var v2=12.
      For jdk10 : int v1=10,int v2 =12

      My Initial analysis is : In variableDeclaratorRest(JavacParser.java) type for v1
      is being set as null.
       

        Attachments

        1. CompDeclaration_NB_working.patch
          14 kB
          Srinivas Dama
        2. CompoundDecl.patch
          1 kB
          Srinivas Dama

          Activity

            People

            Assignee:
            sdama Srinivas Dama (Inactive)
            Reporter:
            sdama Srinivas Dama (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: