Interfaces need protected and package accessibility

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.5
    • Component/s: specification
    • x86
    • windows_95



      Name: gb36485 Date: 11/30/98


      There are two user groups of a java interface.
      (1) Clients who use the services of an interface
      provider.
      (2) Developers who implement the services.

      Even with a "non-public" interface, I have a very
      difficult time making an implementation method "public".
      Especially if an operation is related to an object's
      identity or internal state.
      For example, what I'd like to do:

      interface ThingsIdentifiedByLabels {

         /** Client interface */
         public String getLabel();

         /** Implementator interface */
         protected setLabel( String labelId );
      }
      (Review ID: 25779)
      ======================================================================

            Assignee:
            Unassigned
            Reporter:
            Gilad Bracha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: