Miranda methods and Methods added by Code Generators

John Rose john.r.rose at oracle.com
Mon Aug 9 16:07:53 PDT 2010

On Aug 9, 2010, at 9:54 AM, Neal Gafter wrote:

> The synthetic flag was systematically added to precisely those symbols that should not be visible in the language.

Well said.  Thanks, Neal.

If it weren't for explicit marks on this category of definitions in the bytecodes, it would be dangerous for the compiler to emit internal "helper" methods, fields, or classes.  They would be visible to other classes (if not private) and to reflection.  But they shouldn't be treated as if they were written or expected by the programmer.

-- John

More information about the compiler-dev mailing list