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

Annotation-qualified optional disallowance of raw generic types

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 6
    • specification
    • x86
    • windows_xp

      A DESCRIPTION OF THE REQUEST :
      Mixing raw and parameterized generic types is error-prone. It would be useful to have a compiler option to reject use of raw types but to be able to annotate a class or method to exempt the annotated code from this behavior.

        Suggested annotation: @PermitRawTypes



      JUSTIFICATION :
        To avoid erroneous use of raw types.


      CUSTOMER SUBMITTED WORKAROUND :
      Eclipse now provides the desired compiler option, but without the permissive annotation.

            abuckley Alex Buckley
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: