public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
@ 2001-04-02 12:46 Tom Tromey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2001-04-02 12:46 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/2449; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: joerg_brunsmann@yahoo.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
Date: 02 Apr 2001 13:51:54 -0600

 I checked in a Mauve test for this.
 
 Tom


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

* Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
@ 2001-04-02 13:06 Tom Tromey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2001-04-02 13:06 UTC (permalink / raw)
  To: tromey; +Cc: gcc-prs

The following reply was made to PR java/2449; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: joerg_brunsmann@yahoo.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
Date: 02 Apr 2001 14:12:45 -0600

 Joerg> Is the suggestion correct to remove the out from PrintStream?  
 
 I looked at this today.  The fix is more complex than simply removing
 the field.  I have a patch which I am testing now.  If there are no
 regressions then I will check it in.
 
 Tom


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

* Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
@ 2001-04-01 17:16 Tom Tromey
  0 siblings, 0 replies; 5+ messages in thread
From: Tom Tromey @ 2001-04-01 17:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR java/2449; it has been noted by GNATS.

From: Tom Tromey <tromey@redhat.com>
To: joerg_brunsmann@yahoo.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
Date: 01 Apr 2001 18:21:12 -0600

 >>>>> "Joerg" == joerg brunsmann <joerg_brunsmann@yahoo.de> writes:
 
 Joerg> public void setOutputStream(OutputStream s) {
 Joerg>         out = s;
 Joerg> }
  
 I don't see how this can work given that the `out' field is
 package-private.
 
 Oops, that's probably the bug -- this class doesn't need its own `out'
 field.  I'll test this.
 
 Tom


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

* Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
@ 2001-04-01 17:16 Bryce McKinlay
  0 siblings, 0 replies; 5+ messages in thread
From: Bryce McKinlay @ 2001-04-01 17:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR java/2449; it has been noted by GNATS.

From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
To: joerg_brunsmann@yahoo.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2449: PrintStream defines 'out' as BufferedOutputStream
Date: Mon, 02 Apr 2001 12:25:05 +1200

 joerg_brunsmann@yahoo.de wrote:
 
 > LogStream.java: In class `LogStream':
 > LogStream.java: In method `LogStream.setOutputStream(java.io.OutputStream)':
 > LogStream.java:13: Incompatible type for `='. Explicit cast needed to convert `java.io.OutputStream' to `java.io.BufferedOutputStream'.
 >         out = s;
 >                ^
 > 1 error
 >
 > This is a correct error message because the libjava
 > PrintStream class defines 'out' as BufferedOutputStream.
 > Is the suggestion correct to remove the out from PrintStream?
 
 Yes. A patch would be most welcome.
 
 regards
 
   [ bryce ]
 
 


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

* java/2449: PrintStream defines 'out' as BufferedOutputStream
@ 2001-04-01  1:46 joerg_brunsmann
  0 siblings, 0 replies; 5+ messages in thread
From: joerg_brunsmann @ 2001-04-01  1:46 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2449
>Category:       java
>Synopsis:       PrintStream defines 'out' as BufferedOutputStream
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 01 01:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     joerg_brunsmann@yahoo.de
>Release:        unknown-1.0
>Organization:
>Environment:
gcc 3.0
>Description:
While trying to compile the kaffe rmi classes
I found this:
 
The rmi implementation defines a class called
LogStream which extends PrintStream:
 
import java.io.*;
 
public class LogStream
        extends PrintStream {
 
private LogStream(OutputStream s) {
  super(s);
}
 
public void setOutputStream(OutputStream s) {
        out = s;
}
 
}
 
$ gcj LogStream.java
 
gives:
 
LogStream.java: In class `LogStream':
LogStream.java: In method `LogStream.setOutputStream(java.io.OutputStream)':
LogStream.java:13: Incompatible type for `='. Explicit cast needed to convert `java.io.OutputStream' to `java.io.BufferedOutputStream'.
        out = s;
               ^
1 error
 
This is a correct error message because the libjava
PrintStream class defines 'out' as BufferedOutputStream.
Is the suggestion correct to remove the out from PrintStream?  
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2001-04-02 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-02 12:46 java/2449: PrintStream defines 'out' as BufferedOutputStream Tom Tromey
  -- strict thread matches above, loose matches on Subject: below --
2001-04-02 13:06 Tom Tromey
2001-04-01 17:16 Tom Tromey
2001-04-01 17:16 Bryce McKinlay
2001-04-01  1:46 joerg_brunsmann

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).