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

Manifest file spec not clear for format of class and package names

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 1.4.2, 10
    • docs
    • x86
    • windows_xp

        URL OF FAULTY DOCUMENTATION :
        http://java.sun.com/j2se/1.4.2/docs/guide/jar/jar.html#Manifest%20Specification

        A DESCRIPTION OF THE PROBLEM :
        For example the Main-Class attribute indicates to use a "relative path" to the main class, but not include the .class extension. Path implies '/' separators, though using the fully qualified class name with dot '.' separators also works and seems to be common. Which is correct?

          To further increase ambiguity, all the per-entry sections specify that a
        pathname (i.e. slash-separated, having a ".class" suffix) is the
        appropriate value for a "Name:" attribute. The examples show this, too

        But other meta-data files specify that package-names or class-names are the
        appropriate name form.

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        A less ambiguous specification with no doubt as to the correct format of the file, Preferably a more consistent spec.
        ACTUAL -
        Inconsistent and ambiguous specifications for the Main-Class attribute in particular.
        ###@###.### 2005-04-06 11:00:46 GMT

              cwayne Clifford Wayne (Inactive)
              jssunw Jitender S (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: