public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: java/2658: Inner class with initializer block emits bad code
@ 2001-04-26 16:56 Tony Kimball
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Kimball @ 2001-04-26 16:56 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Tony Kimball <alk@pobox.com>
To: apbianco@cygnus.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2658: Inner class with initializer block emits bad code
Date: Thu, 26 Apr 2001 18:55:21 -0500 (CDT)

 Quoth Alexandre Petit-Bianco on Thursday, 26 April:
 : 
 : Rather I think it might relate to 2598 (which is on the top of things
 : I want to do.) Stay tuned.
 
 Yes, it appears that my report is a duplicate.  Sorry about that.
 
 


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

* Re: java/2658: Inner class with initializer block emits bad code
@ 2001-04-26 17:06 Alexandre Petit-Bianco
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Petit-Bianco @ 2001-04-26 17:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: alk@pobox.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2658: Inner class with initializer block emits bad code
Date: Thu, 26 Apr 2001 17:01:53 -0700 (PDT)

 Tony Kimball writes:
 > Quoth Alexandre Petit-Bianco on Thursday, 26 April:
 > : 
 > : Rather I think it might relate to 2598 (which is on the top of things
 > : I want to do.) Stay tuned.
 > 
 
 > Yes, it appears that my report is a duplicate.  Sorry about that.
 
 That's OK. More test cases -- Yeah!
 
 ./A


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

* Re: java/2658: Inner class with initializer block emits bad code
@ 2001-04-26 16:16 Alexandre Petit-Bianco
  0 siblings, 0 replies; 4+ messages in thread
From: Alexandre Petit-Bianco @ 2001-04-26 16:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: alk@pobox.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: java/2658: Inner class with initializer block emits bad code
Date: Thu, 26 Apr 2001 16:09:32 -0700 (PDT)

 alk@pobox.com writes:
 
 > Probably related to changing the code modified by the patch
 > associated with PR/1315
 
 Rather I think it might relate to 2598 (which is on the top of things
 I want to do.) Stay tuned.
 
 ./A


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

* java/2658: Inner class with initializer block emits bad code
@ 2001-04-26 13:36 alk
  0 siblings, 0 replies; 4+ messages in thread
From: alk @ 2001-04-26 13:36 UTC (permalink / raw)
  To: gcc-gnats

>Number:         2658
>Category:       java
>Synopsis:       Inner class with initializer block emits bad code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 26 13:36:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     alk@pobox.com
>Release:        HEAD and gcc 3.0 branch 26 Apr 2001
>Organization:
>Environment:
i686-pc-linux-gnu, and i686-pc-cygwin
>Description:
/*

% gcj -o Toy.x --main=Toy Toy.java; ./Toy.x

Exception in thread "main" java.lang.NullPointerException 
   at 0x4016802c: _Jv_ThrowSignal (/usr/local/pkgs/gcc/lib/libgcj.so.2) 
   at 0x4016806d: _Jv_ThrowSignal (/usr/local/pkgs/gcc/lib/libgcj.so.2) 
   at 0x08048a0b: Toy__U24_Inner.finit__U24_() (/home/tony/w/Swarmcast/build/native/bugs/Toy.java:5) 
   at 0x08048a3f: Toy__U24_Inner.Toy__U24_Inner(Toy) (/home/tony/w/Swarmcast/build/native/bugs/Toy.java:4) 
   at 0x08048ab5: Toy.Toy() (/home/tony/w/Swarmcast/build/native/bugs/Toy.java:10) 
   at 0x08048b34: Toy.main(java.lang.String[]) (/home/tony/w/Swarmcast/build/native/bugs/Toy.java:15) 
   at 0x4017ee0b: gnu.gcj.runtime.FirstThread.run() (/usr/local/pkgs/gcc/lib/libgcj.so.2) 
   at 0x4018a2ab: java.lang.Thread.run_(java.lang.Object) (/usr/local/pkgs/gcc/lib/libgcj.so.2) 
   at 0x4029c385: _Jv_ThreadSetPriority(_Jv_Thread_t, int) (/usr/local/pkgs/gcc/lib/libgcj.so.2) 
   at 0x4044761c: GC_start_routine (/usr/local/pkgs/gcc/lib/libgcjgc.so.1) 
   at 0x4046060e: pthread_detach (/lib/libpthread.so.0) 
   at 0x4055edaa: __clone (/lib/libc.so.6) 

*/

public class Toy {
	protected int outer_var = 0;
		
	class Inner {
		private int inner_var = outer_var;
		Inner()	{ };
	};
	
	public Toy() {
		Inner inner = new Inner();
		System.out.println("okay");
	};

	public static void main(String args[]) {
		Toy instance = new Toy();
	};
};

>How-To-Repeat:
See descr.
>Fix:
Probably related to changing the code modified by 
the patch associated with PR/1315
>Release-Note:
>Audit-Trail:
>Unformatted:


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

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

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-26 16:56 java/2658: Inner class with initializer block emits bad code Tony Kimball
  -- strict thread matches above, loose matches on Subject: below --
2001-04-26 17:06 Alexandre Petit-Bianco
2001-04-26 16:16 Alexandre Petit-Bianco
2001-04-26 13:36 alk

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