Author: gturrell
Date: Sat Mar 31 04:14:07 2007
New Revision: 524408

URL: http://svn.apache.org/viewvc?view=rev&rev=524408
Log:
[Woden-154] - Also fixed a similar problem in QNameTest, where an attempt was 
made to open a FileInputStream from a URL which may be a jar URL.
This caused the test to fail unexpectedly when running via the woden test jar, 
when the test resource is indeed being extracted from the jar.
Tested in both scenarios, both connected and disconnected.

("Crowbarred" into Woden-154, which can now probably be closed).

Modified:
    incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java

Modified: incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java
URL: 
http://svn.apache.org/viewvc/incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java?view=diff&rev=524408&r1=524407&r2=524408
==============================================================================
--- incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java 
(original)
+++ incubator/woden/trunk/java/test/javax/xml/namespace/QNameTest.java Sat Mar 
31 04:14:07 2007
@@ -467,10 +467,8 @@
         
         URL url = 
getClass().getClassLoader().getResource("javax/xml/namespace/serialized_QName_no_prefix");
 
-        File f = new File(new URI(url.getFile()).getPath());
-        
         ObjectInputStream ois =
-            new ObjectInputStream(new FileInputStream(f));
+            new ObjectInputStream(url.openStream());
         
         Object o = ois.readObject();
         qname = (QName)o;



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to