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

compiled attributs will become an inteface

XMLWordPrintable

    • rc
    • sparc
    • solaris_2.1

      When u create an attribute and compile it will creates an interface which u can notice with javap utility. It also allows to implement that interface
      actually java.lang.annotation.Annotation is also and inteafec it does't have any thing else.
      This will actully raises many questions /concerns

      1) Does any class which implements java.lang.annotation.Annotation will become
      an attribute, can i use that like way.

      2) What happens if any one implements my attribute's interface , how do i need to stop them, now he can implement my methods, its possible he can write his own code i meen executable.

      3) If u would like to stop using this way how can u stop implementing an interface.
       

            gbrachasunw Gilad Bracha (Inactive)
            vvegurusunw Viswadeep Veguru (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: