String fields for dependencies in module_.clas?

27 views
Skip to first unread message

Tako Schotanus

unread,
Mar 28, 2015, 9:11:36 AM3/28/15
to ceylon-dev
Can anyone explain to me why we add a `String` field of the form:

    public static final .java.lang.String mypkg$myimport= null;

for each dependency in a module descriptor?

Thanks,
-Tako

Tom Bentley

unread,
Mar 28, 2015, 9:45:57 AM3/28/15
to ceylon-dev
Yes, I can.

For metamodel purposes we need to be able to obtain the annotations on a module import at runtime. Those fields are added simply to hang java annotations from, which is not exactly ideal, but seemed the least worst thing to do at the time.

--
You received this message because you are subscribed to the Google Groups "ceylon-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-dev+...@googlegroups.com.
To post to this group, send email to ceylo...@googlegroups.com.
Visit this group at http://groups.google.com/group/ceylon-dev.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-dev/CAOJRyvr34nJkiqiYJi3tiQEfEiHfjSAgRMgDVQvoZMO6iOu52w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Tako Schotanus

unread,
Mar 28, 2015, 11:07:36 AM3/28/15
to ceylo...@googlegroups.com

Ah, ok, makes sense thanks!


Reply all
Reply to author
Forward
0 new messages