Github user afs commented on a diff in the pull request:
https://github.com/apache/jena/pull/31#discussion_r24980025
--- Diff:
jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDatatype.java ---
@@ -251,7 +269,7 @@ public XSDDatatype(String typeName, Class<?> javaClass)
{
* @param xstype the XSSimpleType definition to be wrapped
* @param namespace the namespace for the type (used because the
grammar loading doesn't seem to keep that)
*/
- public XSDDatatype(XSSimpleType xstype, String namespace) {
+ XSDDatatype(XSSimpleType xstype, String namespace) {
--- End diff --
Jena provides all the meaningful XSD types (just some XML specific types
are missing) so it is unlikely that external code is calling this public
constructor. Howver, it is public. If the aim is to hide Xerces XSSimpleType,
then hop
about:
1. Make this protected.
2. Add `public XSDDatatype(Object xstype, String namespace)` and cast to
`XSSimpleType`
I thhnk that will keep OSGi happy(ier).
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---