Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » What is inner class emulation?(An example would help)
What is inner class emulation? [message #645576] Sat, 18 December 2010 04:27 Go to next message
Joan Robert is currently offline Joan RobertFriend
Messages: 16
Registered: December 2010
Junior Member
Hi, just found this bit, while reading JDT's documentation:

IMethodBinding.getParameterTypes():
Note: The result does not include synthetic parameters introduced by inner class emulation.

I can't find any reference to inner class emulation in JLS... Anyone knows what this emulation is? Throwing an example, would help as well. Smile


Thanks.

[Updated on: Sat, 18 December 2010 04:32]

Report message to a moderator

Re: What is inner class emulation? [message #645597 is a reply to message #645576] Sat, 18 December 2010 14:15 Go to previous message
Joan Robert is currently offline Joan RobertFriend
Messages: 16
Registered: December 2010
Junior Member
The synthetic parameters described, probably come from here:

Quote:
A synthetic field pointing to the outermost enclosing instance is named this$0. The next-outermost enclosing instance is this$1, and so forth. (At most one such field is necessary in any given inner class.) . . . . All these synthetic fields are initialized by constructor parameters . . . . All such constructor parameters are deemed to be synthetic.

@ Retrologic
Previous Topic:How to get the project name in workspace in eclipse?
Next Topic: How to get CRC and compressed size of files within eclipse-created jar-file?
Goto Forum:
  


Current Time: Tue Apr 23 08:00:27 GMT 2024

Powered by FUDForum. Page generated in 0.02650 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top