mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
natClass.cc (parseAnnotationElement): Correct long annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double.
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. From-SVN: r122545
This commit is contained in:
committed by
Andrew Haley
parent
f9be04cd95
commit
39cd07dfc7
@@ -1150,7 +1150,7 @@ parseAnnotationElement(jclass klass, _Jv_Constants *pool,
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user