Query on developing OpenJDK with IntelliJ
maurizio.cimadamore at oracle.com
Mon Sep 12 20:46:46 UTC 2016
I confirm that the use case you bring up is addressed with the available
IntelliJ project configuration. I've tried creating a project for the
modules java.base and jdk.jshell, and then opened the class
jdk.jshell.TaskFactory, which mention the Version class, which is new in
JDK 9. No red lines, and I could jump to definition as usual.
On 12/09/16 09:23, Staffan Larsen wrote:
> See if this email thread helps you out:
>> On 10 sep. 2016, at 17:11, Jonathan Bluett-Duncan <jbluettduncan at gmail.com> wrote:
>> Hi all,
>> I have a question regarding setting up a particular aspect of my
>> development environment for OpenJDK, and I wonder if this is the right
>> mailing list for me to post such questions.
>> When I open my local clone of the JDK 9 codebase as a project in IntelliJ
>> Ultimate 2016.2, there are a number of places where IntelliJ gets confused
>> and shows red squiggles underneath lines of code that exist in JDK 9 but
>> not JDK 8. I think this is happening for a couple of reasons.
>> 1. My IntelliJ project is currently setup to use my machine's installed
>> JDK 8 distribution as it's Java SDK (as it should be, to the best of my
>> 2. When my IntelliJ encounters java.* classes, it refers to the java.*
>> classes in my installed JDK 8 rather than those in my JDK 9 project.
>> I want to "tell" IntelliJ to use the JDK 9 java.* classes in my project,
>> rather than those in my installed JDK 8, so that these red squiggles are
>> eliminated, and I wonder if anyone here has come across a solution for
>> doing so.
>> If my query is not appropriate for this list, would you kindly let me know
>> which list I should contact instead?
>> Kind regards,
More information about the build-dev