• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic proxy class

 
Nada Mohammed
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello every body,
i have my own package .inside my package i use invoke method form java.lang.Reflect . This invoke method call method from out side package at run time .However, becuase i try to call method from outside package and not public i get the follwoing Exception :
IllegalAccessException
at run time
my question :
can i use dynamic proxy class in the reflect package to solve my problem ???
Actually , when i back to proxy class i found that it also depend on invoke method in the invokation handler
so pleeeease i need support
Nada
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you think what you get is the reasonable behavior of Java?
OR
Do you assume Proxy or reflection should break the rule of Java, and open a backdoor to a class, and let it do something which it is not supposed to do?
Thanks!
Roseanne
Visit JavaChina on the web

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic