Under JDK 1.8, there are no failures. Under OpenJDK 12 there are two, both NoMethodErrors resulting from calling an instance method of a Java class that is defined in a superclass.
The method is setInitialMode on an instance the class net.sf.saxon.s9api.Xslt30Transformer, from the Saxon 9.9.1.2 XML processing library. The method is defined on net.sf.saxon.s9api.AbstractXsltTransformer. The library can be downloaded from https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/
The error report is:
NoMethodError:
undefined method `setInitialMode' for #<Java::NetSfSaxonS9api::Xslt30Transformer:0x5d2e6f62>
Did you mean? set_initial_context_node
The Java packages are imported into a convenience module by the code in lib/saxon/loader.rb
The text was updated successfully, but these errors were encountered:
I put together a simplifed test case at https://github.com/fidothe/jrbug-5885, with a trivial JAR and a trivial ruby script that behaves the same locally. It's running with a ludicrous travis build matrix at the moment.
I set up a travis build matrix (https://travis-ci.com/fidothe/jrbug-5885) that runs the examples against JRuby 9.2 and 9.1, and against OpenJDK 8 and 11. The failure happens for both 9.2 and 9.1 against OpenJDK 11, and they both succeed on OpenJDK 8.
Environment
JRuby 9.2.8.0, OpenJDK 12:
uname -a
:Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019; root:xnu-4903.271.2~2/RELEASE_X86_64 x86_64
JRuby invoked via bundle exec / RSpec,
JRUBY_OPTS
empty:bundle exec rspec spec
bundled gems:
Expected Behavior
In the
saxon-rb
project, there should be no failing specs when runningbundle exec rspec spec/saxon/xslt/executable_spec.rb
https://github.com/fidothe/saxon-rb/blob/master/spec/saxon/xslt/executable_spec.rb
Actual Behaviour
Under JDK 1.8, there are no failures. Under OpenJDK 12 there are two, both
NoMethodError
s resulting from calling an instance method of a Java class that is defined in a superclass.The method is
setInitialMode
on an instance the classnet.sf.saxon.s9api.Xslt30Transformer
, from the Saxon 9.9.1.2 XML processing library. The method is defined onnet.sf.saxon.s9api.AbstractXsltTransformer
. The library can be downloaded from https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/The error report is:
The Java packages are imported into a convenience module by the code in
lib/saxon/loader.rb
The text was updated successfully, but these errors were encountered: