Thanks for your reply

> Actually, it does work just fine and will install OpenJDK 8
> *if* the user has not installed OpenJDK 9 before (otherwise
> OpenJDK 9 will satisfy the java8|9-runtime dependencies)

I can confirm that this works. However, this introduces another issue
in case the user has installed for example an Oracle JRE, or even an
IBM JRE. In that case, openjdk-8 would unnecessarily be pulled in.

> That is because both OpenJDK 8 and OpenJDK 9 packages provide the
> java8-runtime, but as openjdk-9-jre has a higher version it is the
> "preferred" install.

It is perfectly reasonable for openjdk-9-jre to provide a
java8-runtime, anything else would be incorrect. However, it is very
surprising that it is the "preferred" install simply due to a "higher
version".

It is surprising because openjdk-9 is still in a pre-release version
and is scheduled for release next year [1]. Only when released would
it be the expected behavior.

> The issue I see is that a "Conflicts: java9-runtime-headless,
> java9-runtime" entry will force the user to select either that package
> (in this example, neo4j) OR OpenJDK 9.

Can you recommend a workaround which does not require Conflicts but
still remains compatible with multiple JREs (openjdk, oracle, ibm,
etc)?

[1]: http://openjdk.java.net/projects/jdk9/

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1584118

Title:
  16.04 incorrectly installs openjdk-9 to satisfy java8-runtime
  dependency

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-9/+bug/1584118/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to