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

[local-methods] Source coordinates set incorrectly for local generic/void methods

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: repo-amber
    • Fix Version/s: repo-amber
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Consider the following program:

      public class X {

          public static void main(String args []) {
              <T> int foo(T t) {
                  return 10;
              }
          }
      }

      The source position for the JCMethodDecl that corresponds to foo has its pos set to the co-ordinates of the <T>. It should actually be set to that of "foo".



        Attachments

          Activity

            People

            • Assignee:
              sadayapalam Srikanth Adayapalam
              Reporter:
              sadayapalam Srikanth Adayapalam
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: