public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
@ 2005-06-14 10:45 mark at gcc dot gnu dot org
2005-06-14 10:48 ` [Bug java/22060] " roman at kennke dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: mark at gcc dot gnu dot org @ 2005-06-14 10:45 UTC (permalink / raw)
To: java-prs
When trying to compile javax/swing/text/InternationalFormatter.java the compiler
gets confused about which super class it should use for the clone() method:
/usr/local/gcc41/bin/gcj -Wno-deprecated --encoding=UTF-8 --bootclasspath ''
--classpath ..:../vm/reference:../external/w3c_dom:../external/sax:.: -C -d .
@classes.standardx
../javax/swing/text/InternationalFormatter.java: In class
'javax.swing.text.InternationalFormatter':
../javax/swing/text/InternationalFormatter.java: In method
'javax.swing.text.InternationalFormatter.clone()':
../javax/swing/text/InternationalFormatter.java:339: error: Can't find method
'clone()' in type 'javax.swing.text.DefaultFormatter'. Candidates are:
'javax.swing.text.DefaultFormatter.clone()' in 'javax.swing.text.DefaultFormatter'
'javax.swing.JFormattedTextField$AbstractFormatter.clone()' in
'javax.swing.JFormattedTextField$AbstractFormatter'.
return super.clone();
^
1 error
For now we have disabled the whole clone() method in this class.
--
Summary: javax/swing/text/InternationalFormatter.clone() doesn't
compile (GNU Classpath)
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mark at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
@ 2005-06-14 10:48 ` roman at kennke dot org
2005-06-14 11:43 ` rmathew at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: roman at kennke dot org @ 2005-06-14 10:48 UTC (permalink / raw)
To: java-prs
------- Additional Comments From roman at kennke dot org 2005-06-14 10:48 -------
Looks like a compiler bug. It should be clear that it should call the clone
method of DefaultFormatter, shouldn't it? Jikes doesn't seem to have a problem
with it. Disabling this method as a workaround will not hurt much, so go ahead.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
2005-06-14 10:48 ` [Bug java/22060] " roman at kennke dot org
@ 2005-06-14 11:43 ` rmathew at gcc dot gnu dot org
2005-06-14 11:44 ` rmathew at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-06-14 11:43 UTC (permalink / raw)
To: java-prs
------- Additional Comments From rmathew at gcc dot gnu dot org 2005-06-14 11:43 -------
Created an attachment (id=9086)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9086&action=view)
Simplified testcase.
A simplified testcase for the problem. Note that the problem only seems to
happen when the base class is an inner class. Note also that if I omit "static"
from line #3 in the testcase, the compiler ICEs.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
2005-06-14 10:48 ` [Bug java/22060] " roman at kennke dot org
2005-06-14 11:43 ` rmathew at gcc dot gnu dot org
@ 2005-06-14 11:44 ` rmathew at gcc dot gnu dot org
2005-06-15 19:42 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-06-14 11:44 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-06-14 11:44:37
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-06-14 11:44 ` rmathew at gcc dot gnu dot org
@ 2005-06-15 19:42 ` tromey at gcc dot gnu dot org
2005-06-15 20:13 ` tromey at gcc dot gnu dot org
2005-06-15 22:07 ` mckinlay at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-15 19:42 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-15 19:42 -------
I looked at this a little bit.
There are two choices for the problem here.
One is that find_applicable_accessible_methods_list is returning
too much. For the call in question, it returns Object.clone,
Inner.clone, and Bar.clone
However, this seems to be what is intended.
The second choice for the problem is that find_most_specific_methods_list
is not correctly removing Inner.clone from the list of most specific methods.
This function is a bit strange in that it has special cases for inner
classes, e.g.:
int v = (DECL_SPECIFIC_COUNT (current_v) +=
(INNER_CLASS_TYPE_P (DECL_CONTEXT (current_v)) ? 2 : 1));
... which don't make sense to me.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.0.0 4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-06-15 19:42 ` tromey at gcc dot gnu dot org
@ 2005-06-15 20:13 ` tromey at gcc dot gnu dot org
2005-06-15 22:07 ` mckinlay at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-06-15 20:13 UTC (permalink / raw)
To: java-prs
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-15 20:13 -------
This looks like a dup of bug 20697
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/22060] javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath)
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-06-15 20:13 ` tromey at gcc dot gnu dot org
@ 2005-06-15 22:07 ` mckinlay at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: mckinlay at redhat dot com @ 2005-06-15 22:07 UTC (permalink / raw)
To: java-prs
------- Additional Comments From mckinlay at redhat dot com 2005-06-15 22:07 -------
*** This bug has been marked as a duplicate of 20697 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-06-15 22:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-14 10:45 [Bug java/22060] New: javax/swing/text/InternationalFormatter.clone() doesn't compile (GNU Classpath) mark at gcc dot gnu dot org
2005-06-14 10:48 ` [Bug java/22060] " roman at kennke dot org
2005-06-14 11:43 ` rmathew at gcc dot gnu dot org
2005-06-14 11:44 ` rmathew at gcc dot gnu dot org
2005-06-15 19:42 ` tromey at gcc dot gnu dot org
2005-06-15 20:13 ` tromey at gcc dot gnu dot org
2005-06-15 22:07 ` 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).