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

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

XMLWordPrintable

    • generic
    • generic

      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".



            sadayapalam Srikanth Adayapalam (Inactive)
            sadayapalam Srikanth Adayapalam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: