public inbox for mauve-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mario Torre <mario.torre@aicas.com>
To: mauve-patches@sources.redhat.com
Subject: FYI: set the classloader of the current context
Date: Wed, 08 Jul 2009 12:44:00 -0000	[thread overview]
Message-ID: <4A5494AA.8080307@aicas.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

I'm going to commit this patch.

We need to use the classloader of the current context, not the system 
classloader so that the test keeps working in contexts where a 
classloader other than the system classloader was used to load the test 
in the first place.

Cheers,
Mario
-- 
Mario Torre, Software Developer, http://www.jroller.com/neugens/
aicas Allerton Interworks Computer Automated Systems GmbH
Haid-und-Neu-Straße 18 * D-76131 Karlsruhe * Germany
http://www.aicas.com   * Tel: +49-721-663 968-44
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA  FC7C 4086 63E3 80F2 40CF

USt-Id: DE216375633, Handelsregister HRB 109481, AG Mannheim
Geschäftsführer: Dr. James J. Hunt

Please, support open standards:
http://endsoftpatents.org/


[-- Attachment #2: 2009-07-08-mauve-service-registry.patch --]
[-- Type: text/x-patch, Size: 1239 bytes --]

# This patch file was generated by NetBeans IDE
# This patch can be applied using context Tools: Apply Diff Patch action on respective folder.
# It uses platform neutral UTF-8 encoding.
# Above lines and this line are ignored by the patching process.
Index: mauve/ChangeLog
--- mauve/ChangeLog Base (1.2140)
+++ mauve/ChangeLog Locally Modified (Based On 1.2140)
@@ -1,3 +1,10 @@
+2009-07-08  Mario Torre  <neugens@aicas.com>
+
+    * gnu/testlet/javax/imageio/spi/ServiceRegistry/lookupProviders:
+      Use the classloader of the current context, so that the test works
+      when classloader other than the system classloader was used to load the
+      test.
+
 2009-07-03  Mario Torre  <neugens@aicas.com>
 
     * gnu/testlet/java/util/ArrayList/AcuniaArrayListTest:
Index: mauve/gnu/testlet/javax/imageio/spi/ServiceRegistry/lookupProviders.java
--- mauve/gnu/testlet/javax/imageio/spi/ServiceRegistry/lookupProviders.java Base (1.1)
+++ mauve/gnu/testlet/javax/imageio/spi/ServiceRegistry/lookupProviders.java Locally Modified (Based On 1.1)
@@ -229,6 +229,7 @@
 
     public CustomClassLoader(URL[] providerLists)
     {
+      super(CustomClassLoader.class.getClassLoader());
       this.providerLists = providerLists;
     }
 

                 reply	other threads:[~2009-07-08 12:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A5494AA.8080307@aicas.com \
    --to=mario.torre@aicas.com \
    --cc=mauve-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).