• Post Reply Bookmark Topic Watch Topic
  • New Topic

Synthetic Field  RSS feed

 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

What is synthetic field in java ?

thanx in advance

sanju
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thomas,

Look
here

Hope that helps,
 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Lionel,

I did not get much from there, can you please give some other resources ??
 
Lionel Badiou
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sanju,

A synthetic field is a compiler-created field that links a local inner class to a block's local variable or reference type parameter.

As far as I know, this kind of fields are hidden to reflection.

Hope that helps,
 
Sanju Thomas
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you Lionel...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!