IllegalAccessException on using reflection

后端 未结 5 782
情书的邮戳
情书的邮戳 2020-12-09 18:05

I was trying to learn reflection and I came across this IllegalAccessException. Please see the following code:

public class ReflectionTest
{
      public sta         


        
5条回答
  •  醉酒成梦
    2020-12-09 18:54

    You cannot access it, because the Iterator is a private inner class. More explanation can be found here.

提交回复
热议问题