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

Accessing not public class makes pojo-tester throw java.lang.IllegalAccessException when creating objects #78

Closed
sta-szek opened this Issue Sep 11, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@sta-szek
Owner

sta-szek commented Sep 11, 2016

Exception is thrown when trying to create instance by default constructor of non public class.

java.lang.IllegalAccessException: Class org.pojo.tester.instantiator.DefaultConstructorInstantiator can not access a member of class org.pojo.playground.GoodPojo with modifiers "public"

Related topic http://stackoverflow.com/questions/15015675/accessing-non-visible-classes-with-reflection

@sta-szek sta-szek added the bug label Sep 11, 2016

@sta-szek sta-szek added this to the 0.2.0 milestone Sep 11, 2016

@sta-szek sta-szek changed the title from Accessing not public class makes pojo-tester throw java.lang.IllegalAccessException: to Accessing not public class makes pojo-tester throw java.lang.IllegalAccessException when creating objects Sep 13, 2016

@sta-szek sta-szek self-assigned this Sep 13, 2016

sta-szek pushed a commit that referenced this issue Sep 17, 2016

Piotr Joński
Merge pull request #92 from sta-szek/#78-Accessing-not-public-class-m…
…akes-pojo-tester-throw-java.lang.IllegalAccessException-when-creating-objects

#78 accessing not public class makes pojo tester throw java.lang.illegal access exception when creating objects

@sta-szek sta-szek closed this Sep 17, 2016

@sta-szek sta-szek removed the in progress label Sep 17, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment