Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=957131
Bug ID: 957131
Summary: hawtjni: depends on field order reported through
reflection
Product: Fedora
Version: rawhide
Component: hawtjni
Severity: unspecified
Priority: unspecified
Assignee: mgoldman(a)redhat.com
Reporter: fweimer(a)redhat.com
QA Contact: extras-qa(a)fedoraproject.org
CC: java-sig-commits(a)lists.fedoraproject.org,
mgoldman(a)redhat.com, mizdebsk(a)redhat.com
Blocks: 957130
Category: ---
The StructsGenerator class assumes that the field order reported through
reflection is the source code order. But the Java API explicitly states that
"The elements in the array returned are not sorted and are not in any
particular order."
http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html#getDeclared...
The fix is to write an annotation processor (which, when running on source
code, receives the fields in source code order), or inspect the class file,
require debugging information, and sort the fields by line number.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=eOgVoClE0l&a=cc_unsubscribe