Miranda methods and Methods added by Code Generators

Neal Gafter neal at gafter.com
Tue Aug 10 07:18:08 PDT 2010


On Tue, Aug 10, 2010 at 3:11 AM, Andrew Dinn <adinn at redhat.com> wrote:

> Perhaps what is needed is for the interface to be SYNTHETIC or, at least,
> for it's methods to be SYNTHETIC. Would this actually work? i.e. assume we
> were to compile the interface and then bytecode transform it so that either
> it or its methods were tagged with SYNTHETIC. If we then place this and the
> transformed superclass in the classpath would the checkOverride code still
> look for an implementation for the interface method on the subclass or would
> it ignore the interface methods on the assumption that they do not require
> validation?
>

That might work (it might ignore them).  If your intent is that the
interface and its members are not visible to the programmers, that would be
appropriate.  However, be aware that in that case you are circumventing some
javac/language checks.

If it does not work, I suspect the compiler team would welcome a patch that
makes it work.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20100810/cd16d944/attachment.html 


More information about the compiler-dev mailing list