public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libgcj/6131: Working with Sun's 1.4 jre
@ 2002-04-02  2:46 plm
  0 siblings, 0 replies; 2+ messages in thread
From: plm @ 2002-04-02  2:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6131
>Category:       libgcj
>Synopsis:       Working with Sun's 1.4 jre
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 02 02:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Paul Matthews
>Release:        2.96
>Organization:
>Environment:
Linux localhost.localdomain 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i686 unknown
>Description:
Really this is an "am I doing it right" question, followed 
by "does it work wiht a later version" question.

[cat]$rpm -qa | grep java
gcc-java-2.96-0.48mdk
[cat]$ rpm -qa | grep gcj
libgcj-2.96-2mdk
libgcj-devel-2.96-2mdk
 cat cat.java
import java.io.*;
import java.util.regex.*;
 
class cat
{
  public static void main( String args[] )
  {
    BufferedReader in = new BufferedReader(
                          new InputStreamReader(
                            System.in));
    BufferedWriter out = new BufferedWriter(
                           new OutputStreamWriter(
                             System.out));
    Pattern fs = Pattern.compile("\t");
    String record;
    String fields[];
    String field;
 
    try {
      while( true ) {
        record = in.readLine();
        if( record == null )
          break;
        field="";
        for(i=0;i<record.length();i++) {
        }
        fields = fs.split(record,0);
        out.write(record);
        out.newLine();
      }
      out.flush();
    }
    catch( IOException e ) {
    }
  }
}
export CLASSPATH=/opt/j2sdk1.4.0/jre/lib/rt.jar
[cat]$ gcj -o cat cat.java -lgcj
java/lang/String.java:0: bad value constant type 0, index 0
>How-To-Repeat:

>Fix:

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


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

* Re: libgcj/6131: Working with Sun's 1.4 jre
@ 2002-04-02 19:38 tromey
  0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2002-04-02 19:38 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, java-prs, nobody, plm, tromey

Synopsis: Working with Sun's 1.4 jre

Responsible-Changed-From-To: unassigned->tromey
Responsible-Changed-By: tromey
Responsible-Changed-When: Tue Apr  2 19:38:07 2002
Responsible-Changed-Why:
    I'm handling this.
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Tue Apr  2 19:38:07 2002
State-Changed-Why:
    Hi.
    
    This isn't a bug.  gcj requires its own class library to operate properly.  Giving it the JDK 1.4 class library simply won't work.
    
    (Arguably it should work for `gcj -C', but that is not the bug you reported, and we already have a PR for that anyway.)
    
    In your example, gcj fails because it can't read the JDK 1.4 class file.  That too is a bug, and I believe it has already been fixed for 3.1.  However, even with that fix what you're trying to do won't work.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6131


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

end of thread, other threads:[~2002-04-03  3:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-02  2:46 libgcj/6131: Working with Sun's 1.4 jre plm
2002-04-02 19:38 tromey

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