[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cp-patches] FYI: Implemented class InternationalFormatter
From: |
Mark Wielaard |
Subject: |
Re: [cp-patches] FYI: Implemented class InternationalFormatter |
Date: |
Tue, 14 Jun 2005 12:51:23 +0200 |
Hi,
On Fri, 2005-06-10 at 17:15 +0200, Roman Kennke wrote:
> Another piece to get the remainder of JSpinner and JFormattedTextField
> to work: javax.swing.text.InternationalFormatter.
>
> + /**
> + * This creates and returns a clone of this Formatter.
> + *
> + * @return a clone of this formatter
> + *
> + * @throws CloneNotSupportedException not thrown here, since cloning is
> + * supported
> + */
> + public Object clone()
> + throws CloneNotSupportedException
> + {
> + // TODO: it has to be considered, if we should return a deep or shallow
> + // clone here. for now we return a shallow clone
> + Object clone = super.clone();
> + return clone;
> + }
Unfortunately I cannot find any way to get any version of gcj (4.1
included) to compile this part:
../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
Since this clone() method doesn't do anything more then its
super.clone() would do anyway I have disabled it for now to make
building of CVS with gcj possible again.
2005-06-14 Mark Wielaard <address@hidden>
* javax/swing/text/InternationalFormatter.java (clone):
Disabled.
I have filed this as:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22060
Cheers,
Mark
--- javax/swing/text/InternationalFormatter.java 10 Jun 2005 15:14:54
-0000 1.1
+++ javax/swing/text/InternationalFormatter.java 14 Jun 2005 10:49:24
-0000
@@ -326,7 +326,7 @@
*
* @throws CloneNotSupportedException not thrown here, since cloning is
* supported
- */
+ * XXX - FIXME - Whole method disabled as workaround for gcj bug #22060.
public Object clone()
throws CloneNotSupportedException
{
@@ -335,6 +335,7 @@
Object clone = super.clone();
return clone;
}
+ */
/**
* Returns the Actions that are supported by this Formatter.
signature.asc
Description: This is a digitally signed message part