<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - LibreOffice doesn't detect JVM because of unexpected java.vendor property value"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=124503">124503</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>LibreOffice doesn't detect JVM because of unexpected java.vendor property value
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.2.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>olivier.tilloy@canonical.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Originally reported in Ubuntu: <a href="https://launchpad.net/bugs/1822839">https://launchpad.net/bugs/1822839</a>.

A recent OpenJDK update in Ubuntu 19.04 (to be released later this month)
changes the value of the "java.vendor" property, from the well-known name
"Oracle Corporation" to "Private Build".

This breaks the code in LibreOffice that detects an installed JVM, because the
vendor name is validated against a hardcoded list:
<a href="https://cgit.freedesktop.org/libreoffice/core/tree/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx?h=libreoffice-6-2#n33">https://cgit.freedesktop.org/libreoffice/core/tree/jvmfwk/plugins/sunmajor/pluginlib/vendorlist.cxx?h=libreoffice-6-2#n33</a>.

This change can probably be reverted in Ubuntu, but I'm wondering what the
purpose of that hardcoded list of vendors is? Isn't it a valid use case for
distributions to change the vendor name?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>