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

position issues with synthesized anonymous class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • tools
    • b86
    • generic
    • generic

      The following test program gives a number of tree position errors.

      class Test {
          void m() {
      Object o = new @Deprecated Object() { };
          }
      }


      Some are due to the issues with annotated types, which are (somewhat) to be expected, but one of the errors is distinct:

      play/Test.java: end == NOPOS: encl:CLASSDEF[start:65,pos:65,end:68] this:MODIFIERS[start:-1,pos:-1,end:55]
      @Deprecated()

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: