This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC Patch: only add absolute file paths to URLClassLoader


>>>>> "Anthony" == Anthony Green <green@redhat.com> writes:

Anthony> I have no idea how to go about testing the JDK.  Sure, strace
Anthony> will tell us what files it opens - but what would the test
Anthony> code look like?

I couldn't really think of a way to write a Mauve test for this.
I suppose with strace at least we could see whether relative or
absolute file names are being opened.  But ... what difference would
it make?  It seems to me that patching URLClassLoader will yield
correct results (as far as can be observed); and I couldn't think of
a problem with this approach.  Note though that you can't modify the
URLs as reported by getURLs.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]