Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NonDex shuffles return values of classes in the libraries if they get extended #189

Open
hofi1 opened this issue Nov 8, 2023 · 0 comments

Comments

@hofi1
Copy link

hofi1 commented Nov 8, 2023

Problem

I noticed, that the NonDex engine shuffles the returned data from library classes, if the corresponding class gets extended.

Reproduce

Can be reproduced by running NonDex on the following project:

url: https://github.com/FasterXML/jackson-dataformats-binary
commit hash: 7d5c54385ab8437063b8483bf229641a86cf200a
test: com.fasterxml.jackson.dataformat.avro.interop.annotations.testStringValue[Apache to Jackson with Apache schema]

run in the debug mode to get the stack trace

Stacktrace:

TEST: com.fasterxml.jackson.dataformat.avro.interop.annotations.AvroEncodeTest#testStringValue
java.base/java.lang.Thread.getStackTrace(Thread.java:1602)
java.base/edu.illinois.nondex.common.NonDex.printStackTraceIfUniqueDebugPoint(NonDex.java:165)
java.base/edu.illinois.nondex.common.NonDex.shouldExplore(NonDex.java:136)
java.base/edu.illinois.nondex.common.NonDex.getPermutation(NonDex.java:106)
java.base/edu.illinois.nondex.shuffling.ControlNondeterminism.shuffle(ControlNondeterminism.java:93)
java.base/java.lang.Class.getDeclaredFields(Class.java:2248)
org.apache.avro.reflect.ReflectData.getFields(ReflectData.java:716)
org.apache.avro.reflect.ReflectData.getCachedFields(ReflectData.java:703)
org.apache.avro.reflect.ReflectData.createSchema(ReflectData.java:601)
com.fasterxml.jackson.dataformat.avro.interop.ApacheAvroInteropUtil$7.createSchema(ApacheAvroInteropUtil.java:149)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant