[ 
https://issues.apache.org/jira/browse/XERCESJ-1689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17168016#comment-17168016
 ] 

Stefan Huehner commented on XERCESJ-1689:
-----------------------------------------

Hi [~mukul_gandhi],

I'm interested getting this solved and was digging into the pain point (allow 
to support older Java's).

 

I was double checking on Otmar's initial info that the interface was added in 
Java 1.7 but based on what i found it was apparently already added back in Java 
1.4

What i checked is using old Oracle j2sdk1.4.2_19 and checking content of the 
embedded jre/lib/rt.jar

Apart of existing looks like be same expected content already:

javap -c -p 1.4/org/w3c/dom/html/HTMLDOMImplementation.class 
Compiled from "HTMLDOMImplementation.java"
public interface org.w3c.dom.html.HTMLDOMImplementation extends 
org.w3c.dom.DOMImplementation {
 public abstract org.w3c.dom.html.HTMLDocument 
createHTMLDocument(java.lang.String);
}

 

So removing the interface from xerces should keep Java >=1.4 compatible out of 
the box as before.

Only issue would be 1.4 itself.

FAQ [https://xerces.apache.org/xerces2-j/faq-general.html#faq-11] (and your 
earlier comment) has >= 1.3 as min version since 2.10 release (ignoring that 
XSD special case)

 

Given the age of Java 1.4 (Release date in 2002) maybe easiest could be to 
raise min version to 1.4 while keeping "most" of the compatibility?

 

Benefit of this would be no extra overhead of extra jars or multi-release jars 
or another solution.

 

P.S. That issue does not only hit people using java 'modules' but also block 
anyone using eclipse-compiler with java11 and also will probably break normal 
javac java compilation in the future (If and when 
[https://bugs.openjdk.java.net/browse/JDK-8215739] is implemented).

 

 

 -

 

But with you

> Remove org.w3c.dom.html.HTMLDOMImplementation from xercesImpl.jar
> -----------------------------------------------------------------
>
>                 Key: XERCESJ-1689
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1689
>             Project: Xerces2-J
>          Issue Type: Wish
>          Components: DOM (HTML)
>    Affects Versions: 2.11.0
>            Reporter: Otmar Humbel
>            Priority: Critical
>             Fix For: 2.12.0
>
>
> The interface {{org.w3c.dom.html.HTMLDOMImplementation}} is part of the JDK 
> since Java {{1.7}}.
> Java 1.7 has been EOL 'ed since a long time.
>  Is there any reason to keep this interface in {{xercesImpl.jar}}? It 
> produces a split package:
> {{xerces-2_11_0: jdeps --jdk-internals -cp ./xercesImpl.jar}}
>  {{split package: org.w3c.dom.html [jrt:/jdk.xml.dom, ./xercesImpl.jar]}}
> which prevents people from using modules in Java {{>= 9}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-dev-h...@xerces.apache.org

Reply via email to