public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/1262] Method with default access can be overridden in another package
       [not found] <20001220121827.1262.bryce@mckinlay.net.nz>
@ 2003-11-03 18:02 ` aph at gcc dot gnu dot org
  2004-01-07 19:53 ` pinskia at gcc dot gnu dot org
  2004-04-14 19:35 ` ppohja at iki dot fi
  2 siblings, 0 replies; 6+ messages in thread
From: aph at gcc dot gnu dot org @ 2003-11-03 18:02 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1262


aph at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|apbianco at gcc dot gnu dot |unassigned at gcc dot gnu
                   |org                         |dot org
             Status|ASSIGNED                    |NEW


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

* [Bug java/1262] Method with default access can be overridden in another package
       [not found] <20001220121827.1262.bryce@mckinlay.net.nz>
  2003-11-03 18:02 ` [Bug java/1262] Method with default access can be overridden in another package aph at gcc dot gnu dot org
@ 2004-01-07 19:53 ` pinskia at gcc dot gnu dot org
  2004-04-14 19:35 ` ppohja at iki dot fi
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-07 19:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |13607
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1262


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

* [Bug java/1262] Method with default access can be overridden in another package
       [not found] <20001220121827.1262.bryce@mckinlay.net.nz>
  2003-11-03 18:02 ` [Bug java/1262] Method with default access can be overridden in another package aph at gcc dot gnu dot org
  2004-01-07 19:53 ` pinskia at gcc dot gnu dot org
@ 2004-04-14 19:35 ` ppohja at iki dot fi
  2 siblings, 0 replies; 6+ messages in thread
From: ppohja at iki dot fi @ 2004-04-14 19:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From ppohja at iki dot fi  2004-04-14 19:03 -------
This bug seems to be still present in the 3.3.3:
When compiled with gcj 3.3.3, or run with gij 3.3, it
returns wrong output

--- clip ---
ppohja@noam:~/test$ gcj -v
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,
objc,ada,treelang --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 
--enable-shared --with-system-zlib --enable-nls --without-included-gettext 
--enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm 
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.3 (Debian 20040401)
ppohja@noam:~/test$
ppohja@noam:~/test$
ppohja@noam:~/test$ ls pkg1/ pkg2/
pkg1/:
A.java

pkg2/:
B.java
ppohja@noam:~/test$
ppohja@noam:~/test$
ppohja@noam:~/test$ /usr/local/j2sdk1.4.2_02/bin/javac pkg1/A.java
ppohja@noam:~/test$ /usr/local/j2sdk1.4.2_02/bin/java pkg1.A
A.foo()
ppohja@noam:~/test$
ppohja@noam:~/test$
ppohja@noam:~/test$ gcj pkg1/A.java pkg2/B.java --main=pkg1.A -o gcj-output
ppohja@noam:~/test$ ./gcj-output
B.foo()
ppohja@noam:~/test$
ppohja@noam:~/test$ java -version
gij (GNU libgcj) version 3.3.3 (Debian 20040401)

Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
ppohja@noam:~/test$
ppohja@noam:~/test$
ppohja@noam:~/test$ java pkg1.A
B.foo()



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1262


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

* [Bug java/1262] Method with default access can be overridden in another package
       [not found] <20001220121827.1262.mckinlay@redhat.com>
  2004-06-23 10:28 ` rmathew at gcc dot gnu dot org
@ 2004-06-29 18:00 ` cvs-commit at gcc dot gnu dot org
  2004-06-29 18:00 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-06-29 18:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-06-29 17:58 -------
Subject: Bug 1262

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bryce@gcc.gnu.org	2004-06-29 17:58:45

Modified files:
	gcc/java       : ChangeLog class.c java-tree.h parse.y 

Log message:
	PR java/1262
	* class.c (layout_class_method): Do not override package-private
	method if its in a different package.
	(split_qualified_name): Move here from parse.y. Rename from
	breakdown_qualified. Add comment.
	(in_same_package): Move here from parse.y. Add comment.
	* java-tree.h (break_down_qualified, in_same_package): Declare.
	(in_same_package): Likewise.
	* parse.y (breakdown_qualified, in_same_package): Moved to class.c.
	Callers updated.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1394&r2=1.1395
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/class.c.diff?cvsroot=gcc&r1=1.188&r2=1.189
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/java-tree.h.diff?cvsroot=gcc&r1=1.202&r2=1.203
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.488&r2=1.489



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1262


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

* [Bug java/1262] Method with default access can be overridden in another package
       [not found] <20001220121827.1262.mckinlay@redhat.com>
  2004-06-23 10:28 ` rmathew at gcc dot gnu dot org
  2004-06-29 18:00 ` cvs-commit at gcc dot gnu dot org
@ 2004-06-29 18:00 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-29 18:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mckinlay at redhat dot com  2004-06-29 18:00 -------
Fix checked in to HEAD.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1262


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

* [Bug java/1262] Method with default access can be overridden in another package
       [not found] <20001220121827.1262.mckinlay@redhat.com>
@ 2004-06-23 10:28 ` rmathew at gcc dot gnu dot org
  2004-06-29 18:00 ` cvs-commit at gcc dot gnu dot org
  2004-06-29 18:00 ` mckinlay at redhat dot com
  2 siblings, 0 replies; 6+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2004-06-23 10:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rmathew at gcc dot gnu dot org  2004-06-23 10:01 -------
Still present on mainline (3.5.0 - 20040623).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-23 10:01:05
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1262


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

end of thread, other threads:[~2004-06-29 18:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20001220121827.1262.bryce@mckinlay.net.nz>
2003-11-03 18:02 ` [Bug java/1262] Method with default access can be overridden in another package aph at gcc dot gnu dot org
2004-01-07 19:53 ` pinskia at gcc dot gnu dot org
2004-04-14 19:35 ` ppohja at iki dot fi
     [not found] <20001220121827.1262.mckinlay@redhat.com>
2004-06-23 10:28 ` rmathew at gcc dot gnu dot org
2004-06-29 18:00 ` cvs-commit at gcc dot gnu dot org
2004-06-29 18:00 ` mckinlay at redhat dot com

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