Bootstrapping in Java9

Kevin Rushforth kevin.rushforth at oracle.com
Tue Jun 21 15:53:07 UTC 2016


As Thomas notes, this is independent of JDK 9 or Jigsaw. We have a 
couple similar RFEs filed:

JDK-8092262 <https://bugs.openjdk.java.net/browse/JDK-8092262>: Add 
Application.launch(ApplicationFactory,String... args)
JDK-8091703 <https://bugs.openjdk.java.net/browse/JDK-8091703>: Support 
for Dependency Injection in Application
JDK-8090838 <https://bugs.openjdk.java.net/browse/JDK-8090838>: Add 
Application launching support for dynamic languages

This would be another variation of the JavaFX life-cycle and is 
something we could consider for a future release (or even a JDK 9 update 
release) if there were enough interest in doing this.

-- Kevin


Tomas Mikula wrote:
> I think what Tom proposes makes sense even regardless of Java 9. Another
> benefit is not requiring a no-arg constructor.
>
> Regards,
> Tomas
>
> On Tue, Jun 21, 2016 at 5:19 AM, Tom Schindl <tom.schindl at bestsolution.at>
> wrote:
>
>   
>> Hi,
>>
>> I was playing around with Java9 a bit yesterday things worked fine but
>> what disturbs me a bit is that I need to export the package with my
>> Application-Subclass because naturally Java9 can not create an instance
>> of none-exported class with reflection.
>>
>> Although not being a big problem it disturbed me a bit and from my basic
>> understanding I think it should be possible to introduce a 3rd variant
>> of Application.launch() who looks like this:
>>
>> Application#launch(Application,String...)
>>
>> This way no reflection is needed by the jfx bootstrap code.
>>
>> Tom
>>
>> --
>> Thomas Schindl, CTO
>> BestSolution.at EDV Systemhaus GmbH
>> Eduard-Bodem-Gasse 5-7, A-6020 Innsbruck
>> http://www.bestsolution.at/
>> Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
>>
>>     


More information about the openjfx-dev mailing list