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

Compound var declaration type is not uniform for all variables

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • 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.
       

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

              Created:
              Updated:
              Resolved: