eclipse-ee4j / orb

Eclipse ORB is a CORBA orb for use in Jakarta EE and GlassFish and other projects that still need an ORB.

Home Page:https://projects.eclipse.org/projects/ee4j.orb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArrayIndexOutOfBoundsException thrown from org.glassfish.rmic.tools.java.ClassPath

ericvdmaarel opened this issue · comments

The ClassPath utility provides a class path representation. It has a constructor that tries to build an array of ClassPathEntry elements from a class path string. It allocates an array for which the size is determined by counting the number of File.pathSeparatorChars in the provided class path string. Then it goes on and fills it with elements read from the class path string. Finally it tries to add the jrt:/ virtual file system. Since this was not anticipated the index for the next array element is larger than the array allows, resulting in an ArrayIndexOutOfBoundsException getting thrown.

With #106 merged, this could be closed I suppose?

Yep closed it. Thanks for reminding me.