Releng: add location of Java 6 and avoid Java <8 in tests
diff --git a/releng/build-scripts/build/OTDT-Build/build.properties b/releng/build-scripts/build/OTDT-Build/build.properties
index e19e3f2..92df2b4 100644
--- a/releng/build-scripts/build/OTDT-Build/build.properties
+++ b/releng/build-scripts/build/OTDT-Build/build.properties
@@ -27,7 +27,7 @@
 
 JavaSE-1.7=/opt/tools/java/oracle/jdk-7/latest/jre/lib/charsets.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/deploy.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/javaws.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/jce.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/jfr.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/jfxswt.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/jsse.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/management-agent.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/plugin.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/resources.jar:/opt/tools/java/oracle/jdk-7/latest/jre/lib/rt.jar
 
-JavaSE-1.6=/opt/public/common/ibm-java-x86_64-60/jre/lib/amd64/default/jclSC160/vm.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/annotation.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/beans.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/java.util.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/jndi.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/logging.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/security.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/sql.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmorb.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmorbapi.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmcfw.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/rt.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/charsets.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/resources.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmpkcs.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmcertpathfw.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmjgssfw.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmjssefw.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmsaslfw.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmjcefw.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmjgssprovider.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmjsseprovider2.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmcertpathprovider.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/ibmxmlcrypto.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/management-agent.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/xml.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/jlm.jar:/opt/public/common/ibm-java-x86_64-60/jre/lib/javascript.jar
+JavaSE-1.6=/opt/tools/java/oracle/jdk-6/latest/jre/lib/charsets.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/deploy.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/javaws.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/jce.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/jfr.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/jfxswt.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/jsse.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/management-agent.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/plugin.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/resources.jar:/opt/tools/java/oracle/jdk-6/latest/jre/lib/rt.jar
 
 J2SE-1.5=/shared/common/jdk-1.5.0-22.x86_64/jre/lib/charsets.jar:/shared/common/jdk-1.5.0-22.x86_64/jre/lib/jce.jar:/shared/common/jdk-1.5.0-22.x86_64/jre/lib/jsse.jar:/shared/common/jdk-1.5.0-22.x86_64/jre/lib/rt.jar
 
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/.classpath b/testplugins/org.eclipse.objectteams.otdt.tests/.classpath
index 943debb..eb50a7c 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/.classpath
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/.classpath
@@ -36,7 +36,7 @@
 		</attributes>
 	</classpathentry>
 	<classpathentry kind="con" path="OTRE"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="src" path="src">
 		<attributes>
 			<attribute name="test" value="true"/>
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/.settings/org.eclipse.jdt.core.prefs b/testplugins/org.eclipse.objectteams.otdt.tests/.settings/org.eclipse.jdt.core.prefs
index 3d1da00..f2597a2 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/.settings/org.eclipse.jdt.core.prefs
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/.settings/org.eclipse.jdt.core.prefs
@@ -7,9 +7,9 @@
 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
 org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.debug.lineNumber=generate
 org.eclipse.jdt.core.compiler.debug.localVariable=generate
 org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -23,6 +23,7 @@
 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
 org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
 org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
 org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
@@ -66,6 +67,7 @@
 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
 org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
 org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
 org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
@@ -98,7 +100,8 @@
 org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.8
 org.eclipse.objectteams.otdt.compiler.option.weaving_scheme=OTDRE
 org.eclipse.objectteams.otdt.compiler.problem.abstract_potential_relevant_role=warning
 org.eclipse.objectteams.otdt.compiler.problem.adapting_deprecated=error
diff --git a/testplugins/org.eclipse.objectteams.otdt.tests/META-INF/MANIFEST.MF b/testplugins/org.eclipse.objectteams.otdt.tests/META-INF/MANIFEST.MF
index 18459be..55ba9ab 100644
--- a/testplugins/org.eclipse.objectteams.otdt.tests/META-INF/MANIFEST.MF
+++ b/testplugins/org.eclipse.objectteams.otdt.tests/META-INF/MANIFEST.MF
@@ -53,5 +53,5 @@
  org.eclipse.text,
  org.eclipse.jdt.core.tests.model,
  org.eclipse.objectteams.otequinox
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Bundle-ActivationPolicy: lazy
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.classpath b/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.classpath
index eb3f32a..6bbbdac 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.classpath
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.classpath
@@ -6,6 +6,6 @@
 		</attributes>
 	</classpathentry>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.settings/org.eclipse.jdt.core.prefs b/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.settings/org.eclipse.jdt.core.prefs
index 1f46d50..0c946ca 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.settings/org.eclipse.jdt.core.prefs
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/.settings/org.eclipse.jdt.core.prefs
@@ -7,9 +7,9 @@
 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
 org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.debug.lineNumber=generate
 org.eclipse.jdt.core.compiler.debug.localVariable=generate
 org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -23,6 +23,7 @@
 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
 org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
 org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
 org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
@@ -66,6 +67,7 @@
 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
 org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
 org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
 org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
@@ -98,4 +100,6 @@
 org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.8
+org.eclipse.objectteams.otdt.compiler.option.pure_java=enabled
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/META-INF/MANIFEST.MF b/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/META-INF/MANIFEST.MF
index 06ad01f..30e043e 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/META-INF/MANIFEST.MF
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests.dom/META-INF/MANIFEST.MF
@@ -24,4 +24,4 @@
  org.eclipse.objectteams.otdt.ui.tests.dom.converter,
  org.eclipse.objectteams.otdt.ui.tests.dom.rewrite
 Bundle-ManifestVersion: 2
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests/.classpath b/testplugins/org.eclipse.objectteams.otdt.ui.tests/.classpath
index 324673d..563e8c6 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests/.classpath
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests/.classpath
@@ -7,6 +7,6 @@
 	</classpathentry>
 	<classpathentry kind="con" path="OTRE"/>
 	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests/.settings/org.eclipse.jdt.core.prefs b/testplugins/org.eclipse.objectteams.otdt.ui.tests/.settings/org.eclipse.jdt.core.prefs
index df5e684..f2597a2 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests/.settings/org.eclipse.jdt.core.prefs
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests/.settings/org.eclipse.jdt.core.prefs
@@ -7,9 +7,9 @@
 org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
 org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.debug.lineNumber=generate
 org.eclipse.jdt.core.compiler.debug.localVariable=generate
 org.eclipse.jdt.core.compiler.debug.sourceFile=generate
@@ -23,6 +23,7 @@
 org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
 org.eclipse.jdt.core.compiler.problem.discouragedReference=ignore
 org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore
+org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
 org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
 org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
@@ -66,6 +67,7 @@
 org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
 org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
 org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
+org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
 org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
 org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
 org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
@@ -98,7 +100,8 @@
 org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
 org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
 org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.release=disabled
+org.eclipse.jdt.core.compiler.source=1.8
 org.eclipse.objectteams.otdt.compiler.option.weaving_scheme=OTDRE
 org.eclipse.objectteams.otdt.compiler.problem.abstract_potential_relevant_role=warning
 org.eclipse.objectteams.otdt.compiler.problem.adapting_deprecated=error
diff --git a/testplugins/org.eclipse.objectteams.otdt.ui.tests/META-INF/MANIFEST.MF b/testplugins/org.eclipse.objectteams.otdt.ui.tests/META-INF/MANIFEST.MF
index 1402c8b..ebe80de 100644
--- a/testplugins/org.eclipse.objectteams.otdt.ui.tests/META-INF/MANIFEST.MF
+++ b/testplugins/org.eclipse.objectteams.otdt.ui.tests/META-INF/MANIFEST.MF
@@ -33,4 +33,4 @@
  org.eclipse.objectteams.otdt.ui.tests.hierarchy.contentprovider,
  org.eclipse.objectteams.otdt.ui.tests.typecreator,
  org.eclipse.objectteams.otdt.ui.tests.util
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-RequiredExecutionEnvironment: JavaSE-1.8