Coin Considerations

Dalibor Topic Dalibor.Topic at Sun.COM
Mon Mar 16 12:55:54 PDT 2009


Reinier Zwitserloot wrote:
> No, you can do this within project coin, I think:
> 
> If there's one top-level member, or there are many, but only one is  
> public (there can't be more than one public), that's the one that gets  
> the real annotation. Any spin-off classes (e.g. a $1 or whatnot, or a  
> top-level package-private) get a @SourceRef annotation, which contains  
> a class literal that does contain the full source (the public top- 
> level member).
> 
> That covers virtually all source files.

Yeah, but that would now require two annotations instead of one, making
it a bit more complex.

Thinking a but further about the idea, I don't think I would really want 
to have to tell my compiler one or more times in each source file that I 
want its contents stored. I'd much rather pass a flag to it to do it for 
all compilation units at once. That would turn the idea from a small 
language change proposal, into a small javac patch proposal.

cheers,
dalibor topic
-- 
*******************************************************************
Dalibor Topic                   Tel: (+49 40) 23 646 738
Java F/OSS Ambassador           AIM: robiladonaim
Sun Microsystems GmbH           Mobile: (+49 177) 2664 192
Nagelsweg 55                    http://openjdk.java.net
D-20097 Hamburg                 mailto:Dalibor.Topic at sun.com
Sitz der Gesellschaft: Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht München: HRB 161028
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring





More information about the coin-dev mailing list