changeset 15693:807090ddbbf2

use JDK with highest compliance level for generated Eclipse attach launcher
author Doug Simon <doug.simon@oracle.com>
date Thu, 15 May 2014 22:42:08 +0200
parents 6a13c422fca4
children 7b999df1dabc
files mxtool/mx.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx.py	Thu May 15 19:03:16 2014 +0200
+++ b/mxtool/mx.py	Thu May 15 22:42:08 2014 +0200
@@ -2994,7 +2994,7 @@
         elif dep.isProject():
             memento = XMLDoc().element('javaProject', {'name' : dep.name}).xml(standalone='no')
             slm.element('container', {'memento' : memento, 'typeId':'org.eclipse.jdt.launching.sourceContainer.javaProject'})
-            if javaCompliance is None or dep.javaCompliance < javaCompliance:
+            if javaCompliance is None or dep.javaCompliance > javaCompliance:
                 javaCompliance = dep.javaCompliance
 
     if javaCompliance: