public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls
@ 2005-05-17 22:43 bkonrath at redhat dot com
2005-05-19 5:35 ` [Bug libgcj/21637] " tromey at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: bkonrath at redhat dot com @ 2005-05-17 22:43 UTC (permalink / raw)
To: java-prs
Version:
gcc-java-4.0.0-5 from FC4 rawhide
Test Case:
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
public class URLTest {
public static void main(String[] args) throws IOException {
// replace this with any jar on your system
// that doesn't have /blah.txt in it.
String jar = "/path/to/jar/bork.jar";
URL url = new URL("jar:file:" + jar + "!/blah.txt");
InputStream is = url.openStream();
System.out.println("InputStream: " + is);
}
}
Result of running with gij:
InputStream: null
Result of running with Sun's VM:
Exception in thread "main" java.io.FileNotFoundException: JAR entry blah.txt not
found in /usr/share/eclipse/plugins/org.eclipse.osgi_3.1.0.jar
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:97)
at
sun.net.www.protocol.jar.JarURLConnection.getInputStream(JarURLConnection.java:107)
at java.net.URL.openStream(URL.java:913)
at URLTest.main(URLTest.java:12)
--
Summary: URL.openStream doesn't throw a FileNotFoundException
with some urls
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bkonrath at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
@ 2005-05-19 5:35 ` tromey at gcc dot gnu dot org
2005-05-20 20:02 ` cvs-commit at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-19 5:35 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-05-19 05:35 -------
I'm testing a fix for this.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-05-19 05:35:05
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
2005-05-19 5:35 ` [Bug libgcj/21637] " tromey at gcc dot gnu dot org
@ 2005-05-20 20:02 ` cvs-commit at gcc dot gnu dot org
2005-05-20 20:03 ` tromey at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-20 20:02 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-20 20:02 -------
Subject: Bug 21637
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: tromey@gcc.gnu.org 2005-05-20 20:02:16
Modified files:
libjava : ChangeLog
libjava/gnu/java/net/protocol/jar: Connection.java
Log message:
PR libgcj/21637:
* gnu/java/net/protocol/jar/Connection.java (getInputStream):
Throw FileNotFoundException if jar entry not found.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.73&r2=1.3391.2.74
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/net/protocol/jar/Connection.java.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.8&r2=1.8.6.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
2005-05-19 5:35 ` [Bug libgcj/21637] " tromey at gcc dot gnu dot org
2005-05-20 20:02 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-20 20:03 ` tromey at gcc dot gnu dot org
2005-07-01 22:14 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-05-20 20:03 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-05-20 20:03 -------
I've checked in a patch to the 4.0 branch.
A different approach seems best for the trunk,
so I'm going to leave the PR open until I write that.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
` (2 preceding siblings ...)
2005-05-20 20:03 ` tromey at gcc dot gnu dot org
@ 2005-07-01 22:14 ` pinskia at gcc dot gnu dot org
2005-07-02 0:10 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-01 22:14 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-01 22:14 -------
Was this ever fixed on the mainline?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
` (3 preceding siblings ...)
2005-07-01 22:14 ` pinskia at gcc dot gnu dot org
@ 2005-07-02 0:10 ` tromey at gcc dot gnu dot org
2005-07-08 1:42 ` mmitchel at gcc dot gnu dot org
2005-09-27 18:11 ` [Bug libgcj/21637] [4.1 Regression] " pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-07-02 0:10 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-07-02 00:10 -------
Not yet.
I think my plan was to fix it by using the classpath version of this class.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
` (4 preceding siblings ...)
2005-07-02 0:10 ` tromey at gcc dot gnu dot org
@ 2005-07-08 1:42 ` mmitchel at gcc dot gnu dot org
2005-09-27 18:11 ` [Bug libgcj/21637] [4.1 Regression] " pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-07-08 1:42 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.1 |4.0.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] [4.1 Regression] URL.openStream doesn't throw a FileNotFoundException with some urls
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
` (5 preceding siblings ...)
2005-07-08 1:42 ` mmitchel at gcc dot gnu dot org
@ 2005-09-27 18:11 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-27 18:11 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|URL.openStream doesn't throw|[4.1 Regression]
|a FileNotFoundException with|URL.openStream doesn't throw
|some urls |a FileNotFoundException with
| |some urls
Target Milestone|4.0.2 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] [4.1 Regression] URL.openStream doesn't throw a FileNotFoundException with some urls
[not found] <bug-21637-10161@http.gcc.gnu.org/bugzilla/>
2005-10-05 20:05 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 23:32 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 23:32 UTC (permalink / raw)
To: java-prs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P5
Target Milestone|4.2.0 |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug libgcj/21637] [4.1 Regression] URL.openStream doesn't throw a FileNotFoundException with some urls
[not found] <bug-21637-10161@http.gcc.gnu.org/bugzilla/>
@ 2005-10-05 20:05 ` pinskia at gcc dot gnu dot org
2005-10-30 23:32 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-05 20:05 UTC (permalink / raw)
To: java-prs
------- Comment #6 from pinskia at gcc dot gnu dot org 2005-10-05 20:05 -------
Moving target milestone to 4.2 since this is java bug.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.0 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21637
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2005-10-30 23:32 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-17 22:43 [Bug libgcj/21637] New: URL.openStream doesn't throw a FileNotFoundException with some urls bkonrath at redhat dot com
2005-05-19 5:35 ` [Bug libgcj/21637] " tromey at gcc dot gnu dot org
2005-05-20 20:02 ` cvs-commit at gcc dot gnu dot org
2005-05-20 20:03 ` tromey at gcc dot gnu dot org
2005-07-01 22:14 ` pinskia at gcc dot gnu dot org
2005-07-02 0:10 ` tromey at gcc dot gnu dot org
2005-07-08 1:42 ` mmitchel at gcc dot gnu dot org
2005-09-27 18:11 ` [Bug libgcj/21637] [4.1 Regression] " pinskia at gcc dot gnu dot org
[not found] <bug-21637-10161@http.gcc.gnu.org/bugzilla/>
2005-10-05 20:05 ` pinskia at gcc dot gnu dot org
2005-10-30 23:32 ` pinskia at gcc dot gnu dot org
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).