xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerem...@apache.org
Subject svn commit: r823197 - /xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
Date Thu, 08 Oct 2009 14:59:32 GMT
Author: jeremias
Date: Thu Oct  8 14:59:31 2009
New Revision: 823197

URL: http://svn.apache.org/viewvc?rev=823197&view=rev
Log:
Fixed potential visibility problem: wrong class loader was used.

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java?rev=823197&r1=823196&r2=823197&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/AbstractImageSessionContext.java
Thu Oct  8 14:59:31 2009
@@ -189,7 +189,7 @@
     protected ImageInputStream createImageInputStream(InputStream in) throws IOException
{
         ImageInputStream iin = ImageIO.createImageInputStream(in);
         return (ImageInputStream)Proxy.newProxyInstance(
-                getClass().getClassLoader(),
+                ImageInputStream.class.getClassLoader(),
                 new Class[] {ImageInputStream.class},
                 new ObservingImageInputStreamInvocationHandler(iin, in));
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message