[modules-dev] Review request for 6608500

Stanley M. Ho Stanley.Ho at Sun.COM
Wed Sep 26 14:15:44 PDT 2007


Dave Bristor wrote:
> This is the prior in behavior, unchanged.  I changed code so it's now in temp. 
> But then I observed that, since we don't set the property in all our tests, 
> an expansion directory is created for each test in temp!  Kelly / JPRT won't 
> be pleased, and that's contrary to the point of this bugfix.  I propose to 
> revert the code for now, and cause the expansion directory to be created on an 
> as-needed basis, during install(), as we discussed yesterday w.r.t. the other 
> bug on my plate, 6605100.  An alternative would be to modify all of our tests 
> to set the extension directory's path as part of this fix.  The webrev has the 
> code reverted to using source directory.

I'm okay if we revert the code for now, but I think we should definitely 
address it in a bug fix soon. Regardless, expanding into the source 
directory won't be the correct behavior; the expanded directory should 
be either somewhere in temp, or in the repository's cache defined in the 
implementation.

I think the real problem in the tests is that we don't remove the 
expansion directory after each test is executed. Modifying all of our 
tests to set the expansion directory would be one way. An alternative is 
to call Repository.shutdown() before each test exits (or implement the 
shutdownOnExit() method), and the repository's shutdown could clean up 
the expansion directory automatically.

- Stanley



More information about the modules-dev mailing list