public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/17623] New: URL does not retain userInfo across context constructor.
@ 2004-09-22 21:46 daney at gcc dot gnu dot org
  2004-09-22 21:48 ` [Bug libgcj/17623] " daney at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: daney at gcc dot gnu dot org @ 2004-09-22 21:46 UTC (permalink / raw)
  To: java-prs

Invoking the URL(URL, String, URLStreamHandler) constructor where the
context URL has userInfo will result in the new URL missing the userInfo.

This is one cause of the jcifs code at:

http://jcifs.samba.org/

failing when run in the libgcj runtime.

Testcase and patch to follow...

-- 
           Summary: URL does not retain userInfo across context constructor.
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: daney at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17623


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17623] URL does not retain userInfo across context constructor.
  2004-09-22 21:46 [Bug libgcj/17623] New: URL does not retain userInfo across context constructor daney at gcc dot gnu dot org
@ 2004-09-22 21:48 ` daney at gcc dot gnu dot org
  2004-09-22 22:17 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: daney at gcc dot gnu dot org @ 2004-09-22 21:48 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From daney at gcc dot gnu dot org  2004-09-22 21:48 -------
Created an attachment (id=7198)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7198&action=view)
Testcase

Compile with:

gcj -g -o URLTest --main=URLTest URLTest.java

Run as:
$ ./URLTest
bad

It should print "ok" as it does with Sun's 1.4.2_03 runtime.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17623


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17623] URL does not retain userInfo across context constructor.
  2004-09-22 21:46 [Bug libgcj/17623] New: URL does not retain userInfo across context constructor daney at gcc dot gnu dot org
  2004-09-22 21:48 ` [Bug libgcj/17623] " daney at gcc dot gnu dot org
@ 2004-09-22 22:17 ` pinskia at gcc dot gnu dot org
  2004-09-22 22:34 ` daney at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-22 22:17 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-22 22:17 -------
Confirmed, patch here: <http://gcc.gnu.org/ml/java-patches/2004-q3/msg00985.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |patch
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-22 22:17:52
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17623


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17623] URL does not retain userInfo across context constructor.
  2004-09-22 21:46 [Bug libgcj/17623] New: URL does not retain userInfo across context constructor daney at gcc dot gnu dot org
  2004-09-22 21:48 ` [Bug libgcj/17623] " daney at gcc dot gnu dot org
  2004-09-22 22:17 ` pinskia at gcc dot gnu dot org
@ 2004-09-22 22:34 ` daney at gcc dot gnu dot org
  2004-09-23  0:34 ` cvs-commit at gcc dot gnu dot org
  2004-09-23  1:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: daney at gcc dot gnu dot org @ 2004-09-22 22:34 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |ddaney at avtrex dot com
                   |dot org                     |
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17623


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17623] URL does not retain userInfo across context constructor.
  2004-09-22 21:46 [Bug libgcj/17623] New: URL does not retain userInfo across context constructor daney at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2004-09-22 22:34 ` daney at gcc dot gnu dot org
@ 2004-09-23  0:34 ` cvs-commit at gcc dot gnu dot org
  2004-09-23  1:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-23  0:34 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-09-23 00:34 -------
Subject: Bug 17623

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	daney@gcc.gnu.org	2004-09-23 00:34:10

Modified files:
	libjava        : ChangeLog 
	libjava/java/net: URL.java 

Log message:
	PR libgcj/17623
	* java/net/URL.java (URL): Copy userInfo from context.
	(getUserInfo): Return cached userInfo if present.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3067&r2=1.3068
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/net/URL.java.diff?cvsroot=gcc&r1=1.38&r2=1.39



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17623


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug libgcj/17623] URL does not retain userInfo across context constructor.
  2004-09-22 21:46 [Bug libgcj/17623] New: URL does not retain userInfo across context constructor daney at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2004-09-23  0:34 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-23  1:13 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-23  1:13 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-23 01:13 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17623


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-09-23  1:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 21:46 [Bug libgcj/17623] New: URL does not retain userInfo across context constructor daney at gcc dot gnu dot org
2004-09-22 21:48 ` [Bug libgcj/17623] " daney at gcc dot gnu dot org
2004-09-22 22:17 ` pinskia at gcc dot gnu dot org
2004-09-22 22:34 ` daney at gcc dot gnu dot org
2004-09-23  0:34 ` cvs-commit at gcc dot gnu dot org
2004-09-23  1:13 ` 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).