public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26720] New: Can't find method 'access$1(I)'
@ 2006-03-16 18:35 sjackman at gmail dot com
2006-03-17 15:28 ` [Bug java/26720] " rmathew at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: sjackman at gmail dot com @ 2006-03-16 18:35 UTC (permalink / raw)
To: java-prs
In the following test, gcj fails to generate an access method for the private
static members of type char, byte, and short, although it does generate the
access method for the private static members of type int and Object.
class AccessTest {
public interface Foo {
public void foo();
}
private static char buggy_char;
private static byte buggy_byte;
private static short buggy_short;
private static int i;
private static Object o;
static {
new Foo() {
public void foo() {
buggy_char = 0;
buggy_byte = 0;
buggy_short = 0;
i = 0;
o = null;
}
};
}
}
--
Summary: Can't find method 'access$1(I)'
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sjackman at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26720
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/26720] Can't find method 'access$1(I)'
2006-03-16 18:35 [Bug java/26720] New: Can't find method 'access$1(I)' sjackman at gmail dot com
@ 2006-03-17 15:28 ` rmathew at gcc dot gnu dot org
2006-03-17 18:01 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2006-03-17 15:28 UTC (permalink / raw)
To: java-prs
--
rmathew at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-17 15:28:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26720
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/26720] Can't find method 'access$1(I)'
2006-03-16 18:35 [Bug java/26720] New: Can't find method 'access$1(I)' sjackman at gmail dot com
2006-03-17 15:28 ` [Bug java/26720] " rmathew at gcc dot gnu dot org
@ 2006-03-17 18:01 ` tromey at gcc dot gnu dot org
2006-03-17 18:06 ` tromey at gcc dot gnu dot org
2007-01-09 20:53 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-17 18:01 UTC (permalink / raw)
To: java-prs
------- Comment #1 from tromey at gcc dot gnu dot org 2006-03-17 18:01 -------
The bug here is that the code that handles assignments
requiring an accessor method does not understand that
a constant might be subject to a narrowing constant conversion.
Hence it does not (e.g.) convert '0' to '(byte) 0', and
thus the accessor method is not found.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26720
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/26720] Can't find method 'access$1(I)'
2006-03-16 18:35 [Bug java/26720] New: Can't find method 'access$1(I)' sjackman at gmail dot com
2006-03-17 15:28 ` [Bug java/26720] " rmathew at gcc dot gnu dot org
2006-03-17 18:01 ` tromey at gcc dot gnu dot org
@ 2006-03-17 18:06 ` tromey at gcc dot gnu dot org
2007-01-09 20:53 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-17 18:06 UTC (permalink / raw)
To: java-prs
------- Comment #2 from tromey at gcc dot gnu dot org 2006-03-17 18:06 -------
One potential fix is to call try_builtin_assignconv
in nested_field_access_fix or the like.
I haven't tried this.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26720
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/26720] Can't find method 'access$1(I)'
2006-03-16 18:35 [Bug java/26720] New: Can't find method 'access$1(I)' sjackman at gmail dot com
` (2 preceding siblings ...)
2006-03-17 18:06 ` tromey at gcc dot gnu dot org
@ 2007-01-09 20:53 ` tromey at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:53 UTC (permalink / raw)
To: java-prs
------- Comment #3 from tromey at gcc dot gnu dot org 2007-01-09 20:48 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26720
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-01-09 20:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-16 18:35 [Bug java/26720] New: Can't find method 'access$1(I)' sjackman at gmail dot com
2006-03-17 15:28 ` [Bug java/26720] " rmathew at gcc dot gnu dot org
2006-03-17 18:01 ` tromey at gcc dot gnu dot org
2006-03-17 18:06 ` tromey at gcc dot gnu dot org
2007-01-09 20:53 ` tromey at gcc dot gnu dot org
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).