From 39cd07dfc783fb94ef0ff99a4e2a5e70b8120d90 Mon Sep 17 00:00:00 2001 From: Andrew Haley Date: Mon, 5 Mar 2007 11:33:46 +0000 Subject: [PATCH] natClass.cc (parseAnnotationElement): Correct long annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double. 2007-03-03 Andrew Haley * java/lang/natClass.cc (parseAnnotationElement): Correct long annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double. From-SVN: r122545 --- libjava/ChangeLog | 5 +++++ libjava/java/lang/natClass.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libjava/ChangeLog b/libjava/ChangeLog index bddc99863022..c595a229d710 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2007-03-03 Andrew Haley + + * java/lang/natClass.cc (parseAnnotationElement): Correct long + annotations to read JV_CONSTANT_Long, not JV_CONSTANT_Double. + 2007-03-02 Andrew Haley * sun/reflect/annotation/AnnotationInvocationHandler.java: diff --git a/libjava/java/lang/natClass.cc b/libjava/java/lang/natClass.cc index ea55546d8970..078f8422b26d 100644 --- a/libjava/java/lang/natClass.cc +++ b/libjava/java/lang/natClass.cc @@ -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); -- 2.11.4.GIT