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

position issues with synthesized anonymous class

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b86
    • CPU:
      generic
    • OS:
      generic

      Description

      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()

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: