IntelliJ Beefs Up Java 9 Support
Written by Kay Ewbank   
Tuesday, 01 August 2017

JetBrains Intellij IDEA has been updated with new features and better support for Java 9, including for Jigsaw, the element that makes Java 9 modular.

The improved Java 9 support in this version starts with features to support the Java Platform Module System. There's a new IntelliJ feature called the Java Module Diagram that shows the modules you have defined in your project in green; any automatic modules, (those modules that are dependencies on traditional jar files) in blue; and any JDK modules in yellow. The diagram works for JRE modules as well.

 

module diagram

 

Writing about the new diagrams in a post on the Intellij blog,JetBrains' Tricia Gee said:

"These diagrams give a clear picture of which modules have been defined and which modules they depend upon, and can help you either to create a clean separation when creating a modular system, or simply visualize what is going on with the new Java Platform Module System."

 

mod diag2

 

Elsewhere in the new release, smart code completion has been improved, specifically Chain Completion. .The suggestions are now displayed after the first call of Smart Completion, and they’re sorted by how frequently they’re used in the project. Control flow analysis has also been improved, and now detects a wider variety of problems in the code.

One nice addition for those developers moving code to Java 9 is support for refactoring to Java 9. The IDE finds the code where you construct sets and pre-fill them with data, and suggests replacing it with Set#of(String…items) where possible. It will also find loops spinning on a volatile field and suggest calling Thread#onSpinWait() inside such a loop. This call may significantly improve the performance of your code.

Alongside the Java 9 support, the new release has an improved debugger, and new inspections. The debugger now allows you to filter arrays and collections in Variables, Watches, Evaluate Expression and other similar views.

Support for Groovy 2.5.0 has been added, along with support for Kotlin 1.1.3. The Kotlin editor has been improved and supports semantic highlighting,  TODO highlighting, and hints for parameter names in method calls where the meaning of the arguments may not be clear from the context. It can also show type hints, displaying inferred types for variables, functions, and parameters.

The editor comes in two versions, a community edition that is free and open source for JVM and Android development, and the Ultimate edition. This is the one needed for Web development, and has a free trial version before the commercial license kicks in.

 

intellijlogo

More Information

What's New In IntelliJ IDEA

Related Articles

Which Code Editor Do Devs Prefer?

JetBrain's Project Rider Cross-Platform IDE

 Intellij IDEA Adds JUnit 5 Support

Intellij IDEA Updated 

IntelliJ Idea 14 Released

Kotlin JVM 1.0

Jetbrains Launches Subscription Model Toolbox

JetBrains Subscription Model An Unwelcome Change

JetBrains Responds To Backlash

JetBrains Previews IDE For SQL

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

 

Banner


Highlights Of The Europe 2024 PostgreSQL Conference
22/11/2024

This year's premium conference for PostgreSQL took place in Athens, Greece between October 22-25. The nice Athenian weather and cultural aspect aside, the conference was a big hit too.



Amazon Adds AWS Lambda Code Editing Tool
04/11/2024

Amazon has added a new code editing option for AWS Lambda in the AWS console based on the Code-OSS, Visual Studio Code Open Source code editor.


More News

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

Last Updated ( Tuesday, 01 August 2017 )