This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: [gcj trunk / gnu-classpath] String.format(...) undefined
- From: Andrew Haley <aph at redhat dot com>
- To: Hanno Meyer-Thurow <h dot mth at web dot de>
- Cc: tromey at redhat dot com, Mark Wielaard <mark at klomp dot org>, java at gcc dot gnu dot org
- Date: Sat, 3 Mar 2007 18:26:32 +0000
- Subject: Re: [gcj trunk / gnu-classpath] String.format(...) undefined
- References: <20070217141309.0ebcb6cf.h.mth@web.de> <17879.1831.27268.259810@zebedee.pink> <20070217145415.e4063dc7.h.mth@web.de> <17879.2696.599992.481580@zebedee.pink> <1171746649.3534.7.camel@dijkstra.wildebeest.org> <1171747684.3534.10.camel@dijkstra.wildebeest.org> <1171755744.3534.16.camel@dijkstra.wildebeest.org> <20070218134539.0e53b7b7.h.mth@web.de> <17880.19619.5958.227054@zebedee.pink> <20070218144033.4e8778d1.h.mth@web.de> <1171818770.5608.7.camel@hermans.wildebeest.org> <20070219175420.74ef4356.h.mth@web.de> <20070220132847.b90bf97f.h.mth@web.de> <17883.34584.780222.558912@localhost.localdomain> <20070221130422.be7f64bf.h.mth@web.de> <m3wt1zqpkt.fsf@localhost.localdomain> <20070303124856.36ff69dd.h.mth@web.de> <17897.33354.880357.603782@zebedee.pink> <20070303172802.5cb35e9f.h.mth@web.de> <20070303175047.3dfa8542.h.mth@web.de>
Hanno Meyer-Thurow writes:
> On Sat, 3 Mar 2007 17:28:02 +0100
> Hanno Meyer-Thurow <h.mth@web.de> wrote:
>
> > I see another issue with float variables.
> > I'll open another thread for that.
>
> Ok. My misunderstanding of float definition.
>
> Cleaned up testcase attached.
:-)
2007-03-03 Andrew Haley <aph@redhat.com>
* java/lang/natClass.cc (parseAnnotationElement): Correct long
annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
Index: java/lang/natClass.cc
===================================================================
--- java/lang/natClass.cc (revision 122485)
+++ java/lang/natClass.cc (working copy)
@@ -1150,7 +1150,7 @@
case 'J':
{
int cindex = read_u2 (bytes, last);
- check_constant (pool, cindex, JV_CONSTANT_Double);
+ check_constant (pool, cindex, JV_CONSTANT_Long);
_Jv_word2 word;
memcpy (&word, &pool->data[cindex], 2 * sizeof (_Jv_word));
result = Long::valueOf (word.l);