public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/6729: Compiler error causing break of java.lang.Character.isWhitespace
@ 2002-05-19 21:26 r.hautz
  0 siblings, 0 replies; 4+ messages in thread
From: r.hautz @ 2002-05-19 21:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6729
>Category:       java
>Synopsis:       Compiler error causing break of java.lang.Character.isWhitespace
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          wrong-code
>Submitter-Id:   net
>Arrival-Date:   Sun May 19 21:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Roland Hautz
>Release:        3.2 20020516 (experimental)
>Organization:
>Environment:
System: Linux isabella 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i586 unknown
Architecture: i586

	
host: i586-pc-linux-gnu
build: i586-pc-linux-gnu
target: i586-pc-linux-gnu
configured with: /home/roland/gcc/configure --enable-threads=posix --enable-languages=c,c++,java
>Description:
I tracked down the reason, why java.io.StreamTokenizer can't parse
numbers any longer. The testcase is narrowed from
java.lang.Character.isWhitespace, which is returning true on digits
because of this bug.

I consider this to be of high priority.
>How-To-Repeat:
# gcj -g --main=HelloWorld HelloWorld.java
# ./a.out 
this should be false: true

public class HelloWorld {

    static int attr = 0x9;

    public static void main(String [] args) {
	boolean res = ( ( 1 << attr ) & 0x1000 ) != 0	;
     	System.out.println("this should be "+res+": "+isWhite());
    }

    public static boolean isWhite() {
	return ( ( 1 << attr ) & 0x1000 ) != 0 ;
    }

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


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

* Re: java/6729: Compiler error causing break of java.lang.Character.isWhitespace
@ 2002-05-29 23:26 bryce
  0 siblings, 0 replies; 4+ messages in thread
From: bryce @ 2002-05-29 23:26 UTC (permalink / raw)
  To: aph, gcc-bugs, gcc-prs, java-prs, nobody, r.hautz

Synopsis: Compiler error causing break of java.lang.Character.isWhitespace

Responsible-Changed-From-To: unassigned->aph
Responsible-Changed-By: bryce
Responsible-Changed-When: Wed May 29 23:22:45 2002
Responsible-Changed-Why:
    Andrew checked in a patch to fix this.
State-Changed-From-To: open->closed
State-Changed-By: bryce
State-Changed-When: Wed May 29 23:22:45 2002
State-Changed-Why:
    2002-05-24  Andrew Haley  <aph@redhat.com>
    
    	* fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
    	if T is a boolean type.

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


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

* Re: java/6729: Compiler error causing break of java.lang.Character.isWhitespace
@ 2002-05-27 11:56 Andrew Haley
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Haley @ 2002-05-27 11:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Andrew Haley <aph@cambridge.redhat.com>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	r.hautz@inn-salzach.de
Cc:  
Subject: Re: java/6729: Compiler error causing break of java.lang.Character.isWhitespace
Date: Mon, 27 May 2002 18:28:46 +0100 (BST)

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6729
 
 Fixed by http://gcc.gnu.org/ml/gcc-patches/2002-05/msg01968.html
 
 Andrew.


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

* Re: java/6729: Compiler error causing break of java.lang.Character.isWhitespace
@ 2002-05-22 20:36 Bryce McKinlay
  0 siblings, 0 replies; 4+ messages in thread
From: Bryce McKinlay @ 2002-05-22 20:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: java/6729: Compiler error causing break of java.lang.Character.isWhitespace
Date: Thu, 23 May 2002 15:31:46 +1200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6729
 
 I added this test case to the test suite.
 
 


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

end of thread, other threads:[~2002-05-30  6:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-19 21:26 java/6729: Compiler error causing break of java.lang.Character.isWhitespace r.hautz
2002-05-22 20:36 Bryce McKinlay
2002-05-27 11:56 Andrew Haley
2002-05-29 23:26 bryce

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