-
-
Notifications
You must be signed in to change notification settings - Fork 905
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add xalan jars to fix issues with #1114 #1212
Conversation
+1 since you guys to embed the jars inside the gem any ways it is always possible to bundle a jar with only the few classes from xalan you really use for the XPath stuff. but we also should make sure xerces and xalan and xml-apis are fitting together. see also my xerces update on: #1251 |
@mkristian, so your commits in update #1251 will handle updating xerces. Do you have any ideas why embedding xalan causes these test failures?: |
@atambo my comment above with the classloader referred to https://github.com/sparklemotion/nokogiri/blob/master/ext/java/nokogiri/XmlXpathContext.java#L61 I would assume it is due to xml-api that something goes wrong. on the other hand updating nekohtml did fix an encoding bugs and produced 19 failures in the test-suite. so I am not surprised that adding xalan.jar has some regressions. having said this - the same regression will take place whenenver a project whats to use xalan and just picks the latest xalan and requires it. I might find some time to look into this xalan update. |
Hi all, I'm not a Java guy, so before I merge anything I need to fully understand what's going on here. Can someone explain clearly, as if I was a Java newbie:
Thanks for helping me understand and thereby better support Nokogiri and your use cases. |
The original issue is explained in this comment: #1114 (comment) This commit adds the jars that contain these internal classes to the gem so that JDK's that don't bundle xalan will still be able to use nokogiri. One other solution to this issue would be to stop using these internal classes in nokogiri which were introduced in this commit: 2e2b204 |
but adding the xalan jar is only the first step, as mentioned here: #1114 (comment) you also need to use the classes from the xalan jar instead of the com.sun.* ones !!!! alternatively: but in anycase it is worth to see if all those xerces, xalan and xml-apis fit together. |
So I switched all the internal packages over to the ones included in the xalan jars. |
I was able to repro the failures locally. I'll try to get them fixed so we can merge this pr. Thanks for being patient. |
I started looking at the failure in |
Fixed the XSLT failure on a branch, will look at the other failures as soon as I can. |
also sets the file mode of all .jar files to 644 Related to #1212
Jars downloaded from http://xalan.apache.org/xalan-j/downloads.html
@yokolet, @jvshahid, @flavorjones, @bbrowning
Does this look reasonable? I am one of the poor people that need to use the IBM JDK so I think this is the only solution. Running the tests locally gives me 3 failures. It seems like at least 1 of the failures is just a change in an exception message. Should I expect all of the tests to pass on jruby?