Thanks to visit codestin.com
Credit goes to github.com

Skip to content

The order of JField between different runsΒ #154

@bowenspeaksoul

Description

@bowenspeaksoul

πŸ“ Overall Description

I used the following loop while using tai-e, where the logic depends on the order in which JField appears in the loop (that is, I assign an index to these fields). However, I found that the order of JField appearances seems inconsistent across different runs.

JClass jclass = ...;
for (JField field : jclass.getDeclaredFields()) {
    // some code that relies on the order of these fields
}

My question is whether this behavior is expected or a potential bug? Thanks a lot!

🎯 Expected Behavior

N/A

πŸ› Current Behavior

N/A

πŸ”„ Reproducible Example

My issue occurs in a class with a very large number of fields.

βš™οΈ Tai-e Arguments

No response

πŸ“œ Tai-e Log

No response

ℹ️ Additional Information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions