Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Java9/Examples

This is an informal page listing out examples of features that are implemented for Java 9. You are welcome to try out these examples. If bugs are found please check [here] for duplicates first and if not found, please file a bug.


List of Java 9 Features>
Sub Feature Feature Title / Try It Out Steps Expected Result
Java 9 JRE Support
Add Java 9 Use Eclipse Preferences -> Java -> Installed JREs -> Add Java 9 JRE recognized as a valid JRE
Project JRE In Package Explorer Use Project Context Menu and add Java 9 JRE JRE specific (eg Object) gets resolved in the project.
Package Explorer Go to Package Explorer and expand the Java 9 JRE Modules (eg java.base etc) are listed in the package explorer view
Module Creation
Manual Context Menu of src -> New -> File - give the module-info.java as name no compiler errors
Automatic Context Menu of Project -> Cofigure -> Create module-info. A default module-info.java with all packages exported should be created
Completion in module-info.java file
Keyword Completion In a module-info.java file, after module module_name {, press completion key (for eg, ctrl+space in windows) keywords exports, opens, requires, provides and uses shown
Keyword Completion - 2 after exports packagename, or opens packagename press completion key keyword to is shown as an option
Package Completion after exports, opens, provides or uses, press completion key package completion shown.
Type Reference Completion after exports, opens, provides or uses, or optionally after a dot after a package, ie exports packagename. press completion key Type completion shown.
Implementation TypeRef Completion after provides Typename with press completion key Type completion shown and these typereferences are implmentations of the type given before with.
Search in module-info.java file
Keyword Completion In a module-info.java file, after module module_name {, press completion key (for eg, ctrl+space in windows) keywords exports, opens, requires, provides and uses shown
Keyword Completion - 2 after exports packagename, or opens packagename press completion key keyword to is shown as an option
Package Completion after exports, opens, provides or uses, press completion key package completion shown.
Type Reference Completion after exports, opens, provides or uses, or optionally after a dot after a package, ie exports packagename. press completion key Type completion shown.
Implementation TypeRef Completion after provides Typename with press completion key Type completion shown and these typereferences are implmentations of the type given before with.

Back to the top