ModuleClass

Jonathan Gibbons Jonathan.Gibbons at Sun.COM
Tue Mar 3 09:32:21 PST 2009


Alex suggested adding it when I asked him for a spec of the ModuleClass
attribute.  At the time, the thought was to be able to mark the type  
of class,
main class, applet etc.  A more topical example, from a separate email
thread going on now, would be to be able to mark a JavaFX class.
[Kumar is working on changes to the launcher to make it capable of
starting FX programs, given an FX main class.] So the ability to give
simple attributes regarding the class appears somewhat reasonable.

I guess the updated classfile spec got pre-empted by FOSDEM ;-)

-- Jon


On Mar 3, 2009, at 9:21 AM, Mark Reinhold wrote:

>> Date: Tue, 03 Mar 2009 07:54:39 -0800
>> From: jonathan.gibbons at sun.com
>
>> Point noted about the incorrect use of CONSTANT_Utf8 instead of
>> CONSTANT_Class.  I'll check that out.
>
> Okay, thanks.
>
>>                                       Also, if I recall correctly,
>> that item is followed by an array of Utf8 strings representing an  
>> open
>> ended set of flags/modifiers, similar to that used for the requires
>> entry. If nothing else, you might need to skip over them if there is
>> any info to follow.
>
> Hmm, didn't know that, and neither does the ModuleInfoReader code.
>
> I don't recall having discussed the need for modifiers in the main- 
> class
> declaration.  Do we have use cases?
>
> - Mark




More information about the jigsaw-dev mailing list