Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-4800826

Redesign of Signature test and new format of sig-files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • st2.2
    • st1.5
    • tools
    • None
    • b03
    • generic
    • generic
    • Verified

      Name: siR10004 Date: 01/09/2003


      Currently it is impossible to check some package independently of core
      java classes and other required classes (set of superclasses/
      superinterfaces of the checked classes), because sigfile for
      the checked package always contains class members inherited from
      all required classes and all these members would be checked
      during sigtest run.

      For example, a single change in java.lang.Throwable class leads
      to errors in virtually all packages. To workaround this problem,
      JAXP TCK contains set of sigfiles for each JDK version (1.2, 1.3,
      1.4) and uses one of them dependent on JDK that is used to run
      the TCK.

      To solve this problem and implement independent package checking
      the serious changes should be made to sigtest and sigfile format :
      - sigfile should contain only declared class members,
      - sigfile should contain not only public+protected, but private
        class members also (fields and nested classes hiding is possible),
      - new "independent" binary check mode should be added to sigtest.

      During "independent" binary check only class members that are
      inherited from classes from checked package should be checked (along
      with declared members, of course). If java core classes (java.lang)
      and all other required classes are specified as checked, than this
      method will be equivalent to the classic binary check (implemented
      in existing sigtest).

      The structure of the existing sigtest also should be redesigned
      to make it possible to use plug-ins to generate different kinds
      of reports, to make different kind of checking, to make a small
      agent for ME platform, etc.

      This approach will help to solve a number of other problems, for
      example merge of several sigfiles into a single one (required for
      ME platforms).

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

            ersh Mikhail Ershov (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: