Compound var declaration type is not uniform for all variables

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 12
    • Affects Version/s: 12
    • Component/s: tools
    • None
    • b21

      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.
       

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

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

              Created:
              Updated:
              Resolved: