[prev in list] [next in list] [prev in thread] [next in thread]
List: woden-dev
Subject: svn commit: r524408 -
From: gturrell () apache ! org
Date: 2007-03-31 11:14:07
Message-ID: 20070331111407.EAD651A9838 () eris ! apache ! org
[Download RAW message or body]
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic