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

NPE from visitTypeParameter method of TreeScanner subclass in TreeInfo.declarationFor method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic, windows_xp

      Description

      Maurizio found NPE in TreeInfo.declarationFor; more specifically, the NPE seems to be coming for the new visitor method that has been recently added:

      public void visitTypeParameter(JCTypeParameter that) {
                      if (that.type.tsym == sym) result = that; //NPE here
                      else super.visitTypeParameter(that);
                  }

      He suspects the problem is caused by the fact that 'that.type' is null.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjh James Holmlund (Inactive)
                Reporter:
                sundar Sundararajan Athijegannathan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: