Menu

#648 Add a "findPackage" method to the package class.

5.0.0
closed
None
none
1
2023-01-01
2014-10-21
No

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.

Discussion

  • Rick McGuire

    Rick McGuire - 2014-10-21

    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.

     
  • Rick McGuire

    Rick McGuire - 2014-10-21

    Committed revision [r10767].

     

    Related

    Commit: [r10767]

  • Rick McGuire

    Rick McGuire - 2014-10-21
    • status: unread --> accepted
    • assigned_to: Rick McGuire
    • Pending work items: none --> doc+test
    • Milestone: None --> 5.0.0
     
  • Erich

    Erich - 2015-06-25
    • Pending work items: doc+test --> tests
     
  • Erich

    Erich - 2015-06-25

    Committed revision [r10947] documenting the new method "findProgram".

     

    Related

    Commit: [r10947]

  • Erich

    Erich - 2016-04-29
    • status: accepted --> pending
    • Pending work items: tests --> none
     
  • Erich

    Erich - 2016-04-29

    Committed tests for method findProgram()with revision [r11035]

     

    Related

    Commit: [r11035]

  • Rony G. Flatscher

    • Status: pending --> closed
     

Anonymous
Anonymous

Add attachments
Cancel