Project

Profile

Help

Bug #6186

Updated by Michael Kay 9 months ago

**Summary** 

 An `IndexOutOfBounds` exception occurs with the package dependency graph (TOP->WIF, TOP->IR, IR->WIF), where TOP overrides components in both WIF and IR, including overriding a mode in WIF that is not directly referenced in IR, but exists implicitly in IR as a hidden component. 

 **Original Report** 

 Reported by email: 

 I get a fatal error during compile time when running my Word conversion tool: 
 
 java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0 
         at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) 
         at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) 
         at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266) 
         at java.base/java.util.Objects.checkIndex(Objects.java:361) 
         at java.base/java.util.ArrayList.set(ArrayList.java:441) 
         at net.sf.saxon.style.StylesheetPackage.lambda$addComponentsFromUsedPackage$0(StylesheetPackage.java:729) 
         at net.sf.saxon.style.StylesheetPackage.complete(StylesheetPackage.java:492) 
         at net.sf.saxon.style.PrincipalStylesheetModule.complete(PrincipalStylesheetModule.java:1656) 
         at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:332) 
         at net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:249) 
         at net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:113) 
         at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:936) 
         at net.sf.saxon.Transform.doTransform(Transform.java:769) 
         at net.sf.saxon.Transform.main(Transform.java:81) 
 Fatal e

Back