public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: joerg_brunsmann@yahoo.de
To: gcc-gnats@gcc.gnu.org
Subject: java/2449: PrintStream defines 'out' as BufferedOutputStream
Date: Sun, 01 Apr 2001 01:46:00 -0000	[thread overview]
Message-ID: <20010401093839.24446.qmail@sourceware.cygnus.com> (raw)

>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:


             reply	other threads:[~2001-04-01  1:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-01  1:46 joerg_brunsmann [this message]
2001-04-01 17:16 Bryce McKinlay
2001-04-01 17:16 Tom Tromey
2001-04-02 12:46 Tom Tromey
2001-04-02 13:06 Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010401093839.24446.qmail@sourceware.cygnus.com \
    --to=joerg_brunsmann@yahoo.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).