On Thu, 2017-09-14 at 15:19 +0100, Nick Burch wrote:
> On Thu, 14 Sep 2017, Robert Munteanu wrote:
> > One of the issues that came up is that tika-core has a dependency
> > on
> > JAXB [1]. The javax.xml.bind packages are no longer part of the
> > java.se
> > module, and therefore not available by default on the module path.
> > The
> > issue can be triggered with a simple invocation of tika-app on Java
> > 9
> 
> Is there a recommended way to replace JAXB that still works on older 
> versions of Java?

Well, it still works provided that you either add a CLI switch or make
tika a proper Java 9 module. But IMO it's simpler to just stop using
JAXB and make Tika work in all scenarios.

> 
> > Is there interest in making Tika work on Java 9 without the need to
> > use
> > the '--add-modules' switch? That would entail just removing the
> > java.xml.bind dependencies ; for tika-core and tika-parsers all the
> > dependencies are contained in java.se .
> > 
> > Given that there is interest, what would be the preferred solution
> > and
> > the plans for a next release? I might be able to provide a patch if
> > it's not too invasive.
> 
> If you can think of a way to re-do the XML parsing in the Tika
> Config 
> classes, such that they still work on Java 7+, but also work OOTB on
> Java 
> 9, we'd love a patch!

I'll take a look, let's see if I can whip something up.

> 
> If not, if you could find some guideance online for how to migrate 
> JAXB-using code to work with both Java 9 and 7+, we can take a look
> at 
> some point

Thanks,

Robert

Reply via email to