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

(ann) add a new annotation in java.lang : @Generated("generator")

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      Name: rmT116609 Date: 07/25/2004


      A DESCRIPTION OF THE REQUEST :
      This annotation may be used by code generator to mark generated classes.
        Tools (beautifiers, static analyzers etc) may check if the class is generated or not.

      JUSTIFICATION :
      See above


      ---------- BEGIN SOURCE ----------
      package java.lang;
      import java.lang.annotation.ElementType;
      import java.lang.annotation.Retention;
      import java.lang.annotation.RetentionPolicy;
      import java.lang.annotation.Target;
      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.TYPE)
      public @interface Generated {
         String generator();
      }


      ---------- END SOURCE ----------
      (Incident Review ID: 287011)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            darcy Joe Darcy
            Reporter:
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: