[gcj trunk / gnu-classpath] String.format(...) undefined

Andrew Haley aph@redhat.com
Sat Mar 3 18:26:00 GMT 2007


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


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /