Bug 526275

Summary: [9] prevent adding modular JRE System Library to the classpath
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, Vikas.Chandra
Version: 4.7.1a   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stephan Herrmann CLA 2017-10-19 12:40:48 EDT
Since bug 520300, users have to decide whether they add a library to Modulepath or Classpath. For a modular JRE System Library (9+) it does not make sense to add it to the Classpath (which behind the scenes, invisibly, actually does the right thing: add to Modulepath).

Questions:

At what point to disable? Add Library is a multi-step process, and I'm not sure we still "know" whether classpath or modulepath is targeted at the point when the library version is selected.

How we can signal to the user, what's the problem and what should be done instead?

See also bug 526270 comment 5