[Libreoffice-commits] core.git: Branch 'libreoffice-5-2-3' - jvmfwk/distributions

Stephan Bergmann sbergman at redhat.com
Fri Oct 28 10:17:24 UTC 2016


 jvmfwk/distributions/OpenOfficeorg/javavendors_wnt.xml |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fe5d367fae1323416e03d1b618ba2af64e237e8c
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Oct 28 11:17:10 2016 +0200

    tdf#103507 quickfix: Automatic selection of Oracle Java runtime on Windows
    
    ...which had been broken since 5e9a2e9b0f33ab50aa3a84728db75383aede19d9 "Check
    each potential JRE location only once", as jfw_findAndSelectJRE calls
    jfw_plugin_getAllJavaInfos on each vendor in turn, but that now only operates on
    any items newly added by addAllJREInfos, so the first call to
    jfw_plugin_getAllJavaInfos (with sVendor being "Sun Microsystems Inc."
    unsuccesfully operated on all items, and the next call (with sVendor being
    "Oracle Corporation") didn't see any further items to operate on.
    
    So the quickfix (at least for any Java runtimes by Oracle) is to reorder the
    vendors in javavendors_wnt.xml.  The proper fix will be to reorder the code so
    it obtains the list of all Java runtimes only once, and then matches that list
    against the known vendors.
    
    (Other plaforms appear not to be affected by this issue.  Some
    jvmfwk/distributions/OpenOfficeorg/javavendors_*.xml already sort Oracle first,
    anyway.  And e.g. on Linux, jfw_findAndSelectJRE typically already succeeds with
    calling jfw_plugin_getJavaInfosFromPath and so doesn't reach the problematic
    code.
    
    Change-Id: Ied571ae1d4745d53ce0c8697d0f1b268e1aac407
    Reviewed-on: https://gerrit.libreoffice.org/30350
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/jvmfwk/distributions/OpenOfficeorg/javavendors_wnt.xml b/jvmfwk/distributions/OpenOfficeorg/javavendors_wnt.xml
index b1ad4e4..3304610 100644
--- a/jvmfwk/distributions/OpenOfficeorg/javavendors_wnt.xml
+++ b/jvmfwk/distributions/OpenOfficeorg/javavendors_wnt.xml
@@ -23,12 +23,12 @@
  <updated>2013-05-02</updated>
 
  <vendorInfos>
-  <vendor name="Sun Microsystems Inc.">
-    <minVersion>1.5.0</minVersion>
-  </vendor>
   <vendor name="Oracle Corporation">
     <minVersion>1.6.0</minVersion>
   </vendor>
+  <vendor name="Sun Microsystems Inc.">
+    <minVersion>1.5.0</minVersion>
+  </vendor>
   <vendor name="IBM Corporation">
     <minVersion>1.5.0</minVersion>
   </vendor>


More information about the Libreoffice-commits mailing list