Incorrect type path for inner types

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Not an Issue
    • Priority: P3
    • None
    • Affects Version/s: 8
    • Component/s: tools
    • 8
    • Verified

      In the following code:

      class Outer {
          public static class Inner {}
      }
      public class Test {
          public Object meth() { return new Outer.@X Inner(); }
      }

      The type path of the annotation @X is empty. It should be [INNER_TYPE].

      Note that in the slightly different code

      class Outer {
          public class Inner {}
      }
      public class Test {
          public Object meth() { Outer o = new Outer(); return o.new @X Inner(); }
      }

      The type path is correct.

            Assignee:
            Eric Mccorkle
            Reporter:
            Eric Mccorkle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: