Suspicious public static constants in swing.undo

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P3
    • None
    • Affects Version/s: 5.0
    • Component/s: client-libs

      Name: acR10002 Date: 05/23/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b06"
      JCK : 1.5
      Platform[s] : Solaris
      switch/Mode :
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test [s] : N/A


      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      from the 'constant-values.html' page:

      javax.swing.undo.StateEdit:

      protected static final String RCSID
      "$Id: StateEdit.java,v 1.6 1997/10/01 20:05:51 sandipc Exp $"


      javax.swing.undo.StateEditable:

      public static final String RCSID
      "$Id: StateEditable.java,v 1.2 1997/09/08 19:39:08 marklin Exp $"
      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      Is this really necessary to expose these constants to be the public/protected API?
      They can be an undesired source of confusion for application developers as
      well as for J2SE licensees.
      It looks like they serve for nothing except code identification purposes,
      as such - they at least shouldn't be public (if they are needed at all).
      I'd suggest to submit the CCC request to remove these constants (or make
      them private).


      JCK test source location:
      ==========================
      /java/re/jck/1.5//nightly/binaries/latest/JCK-runtime-15/tests

      ======================================================================

            Assignee:
            Scott Violet (Inactive)
            Reporter:
            Ayc Ayc (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: