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

Add support for EnumSet #52

Open
mjureczko opened this issue Feb 24, 2023 · 1 comment
Open

Add support for EnumSet #52

mjureczko opened this issue Feb 24, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@mjureczko
Copy link
Collaborator

Currently instantiation of EnumSet ends up with:

Caused by: java.lang.InstantiationError: java.util.EnumSet
	at java.base/jdk.internal.reflect.GeneratedSerializationConstructorAccessor6.newInstance(Unknown Source)
	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
	at org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator.newInstance(SunReflectionFactoryInstantiator.java:48)
	at org.objenesis.ObjenesisBase.newInstance(ObjenesisBase.java:73)
	at org.jeasy.random.util.ReflectionUtils.createEmptyCollectionForType(ReflectionUtils.java:498)
	at org.jeasy.random.CollectionPopulator.getRandomCollection(CollectionPopulator.java:58)
	at org.jeasy.random.FieldPopulator.generateRandomValue(FieldPopulator.java:139)
	at org.jeasy.random.FieldPopulator.populateField(FieldPopulator.java:93)
	at org.jeasy.random.EasyRandom.populateField(EasyRandom.java:209)
	at org.jeasy.random.EasyRandom.populateFields(EasyRandom.java:198)
	at org.jeasy.random.EasyRandom.doPopulateBean(EasyRandom.java:165)
@mjureczko mjureczko added the enhancement New feature or request label Feb 24, 2023
@mjureczko
Copy link
Collaborator Author

A related issue: j-easy/easy-random#489

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant