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

Source code can refer to synthetic names like "this$Foo".

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description

      Files like this should not compile, but they do:
      // this is JCK 1.1 test innr017b
      class HiddenFieldBug {
      class Inner {
      Object x = this$HiddenFieldBug;
      // A similar problem exists with other synthesized names,
      // such as val$foo, access$2(), HiddenFieldBug$1$Local.
      }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              wmaddoxsunw William Maddox (Inactive)
              Reporter:
              jrose John Rose
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: