Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing the HashMap object

 
Rashmee Kulkarni
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to access HashMap object of Class E through class I at runtime.

method of Class I gets called through Class E methods.

I want to change the value of HashMap which is private to class E at rumtime.

I have tried to use reflection,to get the Field(it returns object of Field class,it does not return HashMap object ).But I can not make changes in values in HashMap.

Please guide.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic