generics: compiler allows ref to type bounds in static members

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.2
    • Affects Version/s: 5.0
    • Component/s: tools
    • mantis
    • generic
    • solaris_8

      The generic prototype compiler allows reference to generic type
      parameters in the definition of static members. That doesn't make
      any sense semantically and should be disallowed.

      class X<T> {
          static T x = null;
      }

            Assignee:
            Neal Gafter (Inactive)
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: