Bug 244634 - java/openjdk8: Incorrect VM vendor advertised
Summary: java/openjdk8: Incorrect VM vendor advertised
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-java mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-06 16:36 UTC by Michael Osipov
Modified: 2020-03-18 19:20 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (java)


Attachments
Patch against /usr/ports (1.45 KB, patch)
2020-03-06 16:36 UTC, Michael Osipov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Osipov 2020-03-06 16:36:17 UTC
Created attachment 212193 [details]
Patch against /usr/ports

The current version advertises:

> java.vm.vendor=Oracle Corporation
> java.vendor.url=http://java.oracle.com/
> java.vendor=Oracle Corporation
> java.vendor.url.bug=http://bugreport.sun.com/bugreport/

But this OpenJDK distribution is not from Oracle, its it from the FreeBSD-derived AdoptOpenJDK distribution.

As a comparison, this is what Azul Zulu prints:

> java.vm.vendor=Azul Systems, Inc.
> java.vendor.url=http://www.azulsystems.com/
> java.vendor=Azul Systems, Inc.
> java.vendor.url.bug=http://www.azulsystems.com/support/

Attached is a patch which advertises that this OpenJDK distro comes from the Free BSD Project.

The same can be applied to all other OpenJDK ports.
Comment 1 Michael Osipov 2020-03-15 21:02:40 UTC
I just have noticed:
> $ make java-debug | grep JAVA_PORT_VENDOR
> JAVA_PORT_VENDOR=               openjdk (OpenJDK BSD Porting Team)

They should be consistent.
Comment 2 Tommy P 2020-03-16 04:32:50 UTC
Does it matter what is advertised for the vendor? I thought as long as the JDK adheres strictly to the JSR, it should be OK.

Below is what Tomcat 9.0.31 showing the JVM for Ubuntu 18.04.x LTS via the manager-gui:

Version: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
Vendor: Ubuntu
OS Name: Linux
OS Version: 4.15.088-Generic.
Comment 3 Michael Osipov 2020-03-16 08:22:04 UTC
(In reply to Tommy P from comment #2)

It actually does.

* For constructs like this https://sourceforge.net/p/wrapper/bugs/313/
* For assumptions about the features of a VM. E.g, SapMachine provides features other VMs don't.
* Legal reasons, you can't call it Java if you are not Oracle
* Marketing and support reasons