Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pipeline {
}
tools {
maven 'apache-maven-latest'
jdk 'openjdk-jdk25-latest'
jdk 'openjdk-jdk26-latest'
}
environment {
NON_MODULAR_JAVA_HOME = tool(type:'jdk', name:'temurin-jdk8-latest')
Expand All @@ -21,7 +21,7 @@ pipeline {
xvnc(useXauthority: true) {
sh """
mvn clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-Ptest-on-javase-25 -Pbree-libs -Papi-check -Pjavadoc\
-Ptest-on-javase-26 -Pbree-libs -Papi-check -Pjavadoc\
-Dmaven.test.failure.ignore=true\
-Dcompare-version-with-baselines.skip=false \
-Dproject.build.sourceEncoding=UTF-8 \
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.jdt.debug.tests/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.jdt.debug.tests; singleton:=true
Bundle-Version: 3.12.900.qualifier
Bundle-Version: 3.12.950.qualifier
Bundle-ClassPath: javadebugtests.jar
Bundle-Activator: org.eclipse.jdt.debug.testplugin.JavaTestPlugin
Bundle-Vendor: %providerName
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.jdt.debug.tests/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bin.includes = plugin.xml,\
java16_/,\
java23/,\
java24/,\
java25/,\
java26/,\
multirelease/
source.javadebugtests.jar = test plugin/,\
tests/,\
Expand Down
30 changes: 28 additions & 2 deletions org.eclipse.jdt.debug.tests/pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2012, 2024 Eclipse Foundation and others.
Copyright (c) 2012, 2026 Eclipse Foundation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
Expand All @@ -18,7 +18,7 @@
</parent>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.debug.tests</artifactId>
<version>3.12.900-SNAPSHOT</version>
<version>3.12.950-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<properties>
<testSuite>${project.artifactId}</testSuite>
Expand Down Expand Up @@ -117,5 +117,31 @@
</plugins>
</build>
</profile>
<profile>
<id>test-on-javase-26</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-toolchains-plugin</artifactId>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>toolchain</goal>
</goals>
</execution>
</executions>
<configuration>
<toolchains>
<jdk>
<id>JavaSE-26</id>
</jdk>
</toolchains>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
* This is an implementation of an early-draft specification developed under the Java
* Community Process (JCP) and is made available for testing and evaluation purposes
* only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
* Jesper S. Møller - bug 422029: [1.8] Enable debug evaluation support for default methods
Expand Down Expand Up @@ -69,6 +73,7 @@ public class JavaProjectHelper {
public static final String JAVA_SE_23_EE_NAME = "JavaSE-23";
public static final String JAVA_SE_24_EE_NAME = "JavaSE-24";
public static final String JAVA_SE_25_EE_NAME = "JavaSE-25";
public static final String JAVA_SE_26_EE_NAME = "JavaSE-26";

/**
* path to the test src for 'testprograms'
Expand Down Expand Up @@ -112,6 +117,11 @@ public class JavaProjectHelper {
*/
public static final IPath TEST_25_SRC_DIR = new Path("java25");

/**
* path to the 26 test source
*/
public static final IPath TEST_26_SRC_DIR = new Path("java26");

/**
* path to the multirelease test source
*/
Expand Down Expand Up @@ -223,6 +233,15 @@ public static boolean isJava25_Compatible() {
return isCompatible(25);
}

/**
* Returns if the currently running VM is version compatible with Java 26
*
* @return <code>true</code> if a Java 26 (or greater) VM is running <code>false</code> otherwise
*/
public static boolean isJava26_Compatible() {
return isCompatible(26);
}

/**
* Returns if the current running system is compatible with the given Java minor version
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
* This is an implementation of an early-draft specification developed under the Java
* Community Process (JCP) and is made available for testing and evaluation purposes
* only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
* Jesper Steen Møller - bug 422029: [1.8] Enable debug evaluation support for default methods
Expand Down Expand Up @@ -183,6 +187,7 @@ public abstract class AbstractDebugTest extends TestCase implements IEvaluation
public static final String TWENTYTHREE_PROJECT_NAME = "Two_Three";
public static final String TWENTYFOUR_PROJECT_NAME = "Two_Four";
public static final String TWENTYFIVE_PROJECT_NAME = "Two_Five";
public static final String TWENTYSIX_PROJECT_NAME = "Two_Six";
public static final String BOUND_JRE_PROJECT_NAME = "BoundJRE";
public static final String MR_PROJECT_NAME = "MR";
public static final String CLONE_SUFFIX = "Clone";
Expand Down Expand Up @@ -246,6 +251,7 @@ public abstract class AbstractDebugTest extends TestCase implements IEvaluation
private static boolean loaded23 = false;
private static boolean loaded24 = false;
private static boolean loaded25 = false;
private static boolean loaded26 = false;
private static boolean loadedEE = false;
private static boolean loadedJRE = false;
private static boolean loadedMulti = false;
Expand Down Expand Up @@ -769,6 +775,36 @@ synchronized void assert25Project() {
}
}

synchronized void assert26Project() {
IJavaProject jp = null;
ArrayList<ILaunchConfiguration> cfgs = new ArrayList<>(1);
try {
if (!loaded26) {
jp = createProject(TWENTYSIX_PROJECT_NAME, JavaProjectHelper.TEST_26_SRC_DIR.toString(), JavaProjectHelper.JAVA_SE_26_EE_NAME, false);
jp.setOption(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.DISABLED);
jp.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_26);
jp.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_26);
jp.setOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_26);
cfgs.add(createLaunchConfiguration(jp, "Main1"));
cfgs.add(createLaunchConfiguration(jp, "Main2"));
loaded26 = true;
waitForBuild();
assertNoErrorMarkersExist(jp.getProject());
}
} catch (Exception e) {
try {
if (jp != null) {
jp.getProject().delete(true, true, null);
for (int i = 0; i < cfgs.size(); i++) {
cfgs.get(i).delete();
}
}
} catch (CoreException ce) {
// ignore
}
handleProjectCreationException(e, TWENTYSIX_PROJECT_NAME, jp);
}
}
/**
* Creates the 'BoundJRE' project used for the JRE testing
*/
Expand Down Expand Up @@ -1105,6 +1141,16 @@ protected IJavaProject get25Project() {
return getJavaProject(TWENTYFIVE_PROJECT_NAME);
}

/**
* Returns the 'Two_Five' project, used for Java 25 tests.
*
* @return the test project
*/
protected IJavaProject get26Project() {
assert26Project();
return getJavaProject(TWENTYSIX_PROJECT_NAME);
}

/**
* Returns the 'BoundJRE' project
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
* This is an implementation of an early-draft specification developed under the Java
* Community Process (JCP) and is made available for testing and evaluation purposes
* only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
* SAP SE - Support hyperlinks for stack entries with method signature
Expand Down Expand Up @@ -201,7 +205,7 @@ public AutomatedSuite() {
addTest(new TestSuite(ConfigurationEncodingTests.class));
addTest(new TestSuite(LaunchConfigurationManagerTests.class));
addTest(new TestSuite(LaunchConfigurationTests.class));
if (JavaProjectHelper.isJava25_Compatible()) {
if (JavaProjectHelper.isJava26_Compatible()) {
addTest(new TestSuite(InstanceMainMethodsTests.class));
}
addTest(new TestSuite(ProjectClasspathVariableTests.class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,21 @@ public class ModuleOptionsTests extends AbstractDebugTest {
+ "jdk.unsupported.desktop," //
+ "jdk.xml.dom";

private static final String ASSUMED_DEFAULT_MODULES_26_CI_MAC = "java.base," //
+ "java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging," //
+ "java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi," //
+ "java.scripting,java.security.jgss,java.security.sasl,java.smartcardio," //
+ "java.sql,java.sql.rowset,java.transaction.xa,java.xml,java.xml.crypto," //
+ "jdk.accessibility,jdk.attach,jdk.compiler,jdk.dynalink,jdk.httpserver," //
+ "jdk.incubator.vector,"
+ "jdk.jartool,jdk.javadoc,jdk.jconsole,jdk.jdi," //
+ "jdk.jfr," //
+ "jdk.jshell,jdk.management," //
+ "jdk.management.jfr," //
+ "jdk.net,jdk.nio.mapmode," //
+ "jdk.sctp,jdk.security.auth,jdk.security.jgss,jdk.unsupported," //
+ "jdk.unsupported.desktop," //
+ "jdk.xml.dom";

public ModuleOptionsTests(String name) {
super(name);
Expand Down Expand Up @@ -153,7 +168,7 @@ public void testLimitModules_release9() throws CoreException {
+ "jdk.net," //
+ "jdk.nio.mapmode," //
// + "jdk.packager,jdk.packager.services,jdk.plugin.dom,"
// + "jdk.scripting.nashorn,"
// + "jdk.scripting.nashorn,"
+ "jdk.sctp,"
+ "jdk.security.auth,jdk.security.jgss,jdk.unsupported," //
+ "jdk.unsupported.desktop,jdk.xml.dom";
Expand Down Expand Up @@ -200,6 +215,13 @@ public void testLimitModules1() throws JavaModelException {
+ "jdk.unsupported.desktop," //
+ "jdk.xml.dom";
break;
case ASSUMED_DEFAULT_MODULES_26_CI_MAC:
expectedModules = "java.instrument,java.net.http,java.scripting,java.smartcardio,java.sql.rowset,java.xml.crypto,"
+ "jdk.accessibility," + "jdk.dynalink," + "jdk.httpserver," + "jdk.incubator.vector,"
+ "jdk.jartool,jdk.jconsole,jdk.jshell," + "jdk.management.jfr," + "jdk.net," + "jdk.nio.mapmode," + "jdk.sctp,"
+ "jdk.security.auth,jdk.security.jgss,jdk.unsupported," + "jdk.unsupported.desktop,"
+ "jdk.xml.dom";
break;
default:
fail("Unknown set of default modules " + moduleList);
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
* This is an implementation of an early-draft specification developed under the Java
* Community Process (JCP) and is made available for testing and evaluation purposes
* only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* Red Hat Inc. - initial implementation
*******************************************************************************/
Expand All @@ -26,7 +30,7 @@ public InstanceMainMethodsTests(String name) {

@Override
protected IJavaProject getProjectContext() {
return super.get25Project();
return super.get26Project();
}

public void testStaticMainWithoutArgs() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
*
* SPDX-License-Identifier: EPL-2.0
*
* This is an implementation of an early-draft specification developed under the Java
* Community Process (JCP) and is made available for testing and evaluation purposes
* only. The code is not compatible with any specification of the JCP.
*
* Contributors:
* IBM Corporation - initial API and implementation
*
Expand Down Expand Up @@ -100,7 +104,7 @@ public class ExecutionEnvironmentAnalyzer implements IExecutionEnvironmentAnalyz
mappings.put(JavaSE_1_8, new String[] { JavaSE_1_7 });
mappings.put(JavaSE_9, new String[] { JavaSE_1_8 });
mappings.put(JavaSE_10, new String[] { JavaSE_9 });
mappings.put(JavaSE_10_Plus, new String[] { JavaSE_25 });
mappings.put(JavaSE_10_Plus, new String[] { JavaSE_26 });
mappings.put(JavaSE_11, new String[] { JavaSE_10 });
mappings.put(JavaSE_12, new String[] { JavaSE_11 });
mappings.put(JavaSE_13, new String[] { JavaSE_12 });
Expand Down