You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IllegalAccessError: Class org/apache/xml/dtm/ref/dom2dtm/DOM2DTMExt illegally accessing "package private" member of class org/apache/xml/dtm/ref/dom2dtm/DOM2DTMdefaultNamespaceDeclarationNode
nextNode at org/apache/xml/dtm/ref/dom2dtm/DOM2DTMExt.java:564
_firstch at org/apache/xml/dtm/ref/DTMDefaultBase:-1
It seems like J9 is having issues actually seeing these classes as being in the same package. Instead of this sort of package hack, I think it might make more sense to actually inherit DOM2DTM from DOM2DTMExt and only override and replace methods as necessary than to replicate the class and patch methods. I'm not sure if this is a possibility, but I'll be doing some experimentation and making a pull request if I crack it.
Running this simple script in IBM J9 on AIX:
gives the following error:
It seems like J9 is having issues actually seeing these classes as being in the same package. Instead of this sort of package hack, I think it might make more sense to actually inherit DOM2DTM from DOM2DTMExt and only override and replace methods as necessary than to replicate the class and patch methods. I'm not sure if this is a possibility, but I'll be doing some experimentation and making a pull request if I crack it.
Version information
$ ./jruby/bin/nokogiri -v # Nokogiri (1.8.2) --- warnings: [] nokogiri: 1.8.2 ruby: version: 2.3.3 platform: java description: jruby 9.1.17.0-SNAPSHOT (2.3.3) 2018-05-11 d8b1ff9 IBM J9 VM 2.6 on pap6470sr10fp10-20170726_05 (SR10 FP10) +jit [aix-ppc64] engine: jruby jruby: 9.1.17.0-SNAPSHOT xerces: XML4J 4.5.28 nekohtml: NekoHTML 1.9.21
The text was updated successfully, but these errors were encountered: