JDK-8209015: Update Eclipse project files
nlisker at gmail.com
Wed Aug 8 14:07:51 UTC 2018
After the removal of some dependencies on JDK modules the Eclipse classpath
files should be updated to allow developers to work on Eclipse without
needing to do tricky configuration themselves. Iv'e submitted a JBS issue
 to track the progress.
There were discussion about removing IDE-specific files in the JBS  and
on GitHub (see links in JBS issue). It seems that the idea was dropped and
I propose to close this issue. A discussion on this issue can be found on
the mailing list .
On to the technical discussion:
Iv'e put up a gist with my classpath files , but Swing still gives me
problems with an NPE during the build.
On 08.08.18 08:55, Tom Schindl wrote:
> > Hi Nir,
> > I currently use the attached stash to make Eclipse compile all modules.
> > Unfortunately I have to modify the following java-Files to get away
> > without any compile errors:
> > * Dialog => Added a method getDialog() instead of directly accessing the
> > field
We have to wait for the fix , there's no workaround.
> > * javafx.fxml => Add a static require for controls
> > * javafx.web => Add a static require for java.management
> Looking once more I think read-edges are completely missing in Eclipse
> for projects. I can patch other projects to get a read-edge but not the
> project itself!
> In the end what we want is to patch eg the javafx.fxml-module to have a
> read-edge for javafx.control. I don't see how this can be done with the
> current Eclipse setup!
> My work around today is to add static-require and I don't see a way
> around that.
It's possible to do it in the classpath file as Iv'e shown in , but I
don't know if JUnit will work. I seem to have general JUnit problems. Can
you try with my files and unmodified module-info.java files and see which
projects can run JUnit? They should all compile.
The bulk of the work for modular support is tracked under  and they want
input from users, so try to help them. There's also a UI specific issue for
modular projects .
More information about the openjfx-dev