[
https://issues.apache.org/jira/browse/XERCESJ-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13586026#comment-13586026
]
MH commented on XERCESJ-1607:
-----------------------------
The java.lang.Package API. Test code:
----------------------------------------------
final Class c = Class.forName("org.apache.xerces.impl.Version")
final Package p = c.getPackage();
System.out.println("VERSION of package "+p.getName()+": spec:
"+p.getSpecificationVendor()+" | "+p.getSpecificationTitle()+" |
"+p.getImplementationVersion()
+"; impl: "+p.getImplementationVendor()+" |
"+p.getImplementationTitle()+" | " +p.getImplementationVersion());
----------------------------------------------
retunr "null" values for the p.getSpecification...() and getImplementation...()
calls:
VERSION of package org.apache.xerces.impl: spec: null | null | null; impl:
null | null | null
The same code works e.g. for
----------------------------------------------
final Class c = Class.forName("org.apache.xalan.Version")
final Package p = c.getPackage();
System.out.println("VERSION of package "+p.getName()+": spec:
"+p.getSpecificationVendor()+" | "+p.getSpecificationTitle()+" |
"+p.getImplementationVersion()
+"; impl: "+p.getImplementationVendor()+" |
"+p.getImplementationTitle()+" | " +p.getImplementationVersion());
----------------------------------------------
The output is
VERSION of package org.apache.xalan: spec: Sun Microsystems Inc. | Java API for
XML Processing | 2.7.1; impl: Apache Software Foundation | org.apache.xalan |
2.7.1
> MAMINFEST.MF wrong ("Version.class" instead of "Version")
> ---------------------------------------------------------
>
> Key: XERCESJ-1607
> URL: https://issues.apache.org/jira/browse/XERCESJ-1607
> Project: Xerces2-J
> Issue Type: Bug
> Components: Build
> Affects Versions: 2.11.0
> Environment: Java 1.7.0
> Reporter: MH
> Priority: Trivial
>
> The MANIFEST.MF has an entry
> Name: org/apache/xerces/impl/Version.class
> The standard Java Package API doesn't get anything (getSpecification...(),
> getImplementation...() return all null) - probably of this wrong name.
> (Manifest files for many other Apache projects work as expected, e.h.
> Avalon, FOP, Batik, Commins IO, ...)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]