The Package class is really starting to fill a lot of the roles that Java class loaders fill. For doing that, a method that will locate a package file and return the associated package object. This load will be done using the location context of the target package object, but should be done without merging the package information into the target package. This will allow something like the ooRexx test suite to locate and load test files without locking them from being garbage collected. loadPackage seems like a good name, but that already exists for other purposes. findPackage might work.
Anonymous
As an alternative, just being able to resolve a program file name using the package would solve the underlying problem. The code for doing this already exists, so this can be easily exposed.
Committed revision [r10767].
Related
Commit: [r10767]
Committed revision [r10947] documenting the new method "findProgram".
Related
Commit: [r10947]
Committed tests for method
findProgram()
with revision [r11035]Related
Commit: [r11035]