From 4e556710642d4183caf9084ed92f26b8e111792d Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Mon, 15 Apr 2024 20:11:01 +0200 Subject: [PATCH 1/2] Revert "Delete some JRE1.1 java profile" This reverts commit dee9f0fe3c69d12a889a46ed808637794b039865. --- bundles/org.eclipse.osgi/JRE-1.1.profile | 27 ++++++++++++++++++++++++ bundles/org.eclipse.osgi/profile.list | 1 + 2 files changed, 28 insertions(+) create mode 100644 bundles/org.eclipse.osgi/JRE-1.1.profile diff --git a/bundles/org.eclipse.osgi/JRE-1.1.profile b/bundles/org.eclipse.osgi/JRE-1.1.profile new file mode 100644 index 00000000000..865c3979349 --- /dev/null +++ b/bundles/org.eclipse.osgi/JRE-1.1.profile @@ -0,0 +1,27 @@ +############################################################################### +# Copyright (c) 2003, 2012 IBM Corporation and others. +# +# This program and the accompanying materials +# are made available under the terms of the Eclipse Public License 2.0 +# which accompanies this distribution, and is available at +# https://www.eclipse.org/legal/epl-2.0/ +# +# SPDX-License-Identifier: EPL-2.0 +# +# Contributors: +# IBM Corporation - initial API and implementation +############################################################################### +org.osgi.framework.system.packages = +org.osgi.framework.bootdelegation = \ + sun.*,\ + com.sun.* +org.osgi.framework.executionenvironment = \ + JRE-1.1 +org.osgi.framework.system.capabilities = \ + osgi.ee; osgi.ee="JRE"; version:List="1.0, 1.1" +osgi.java.profile.name = JRE-1.1 +org.eclipse.jdt.core.compiler.compliance=1.3 +org.eclipse.jdt.core.compiler.source=1.3 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.1 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=ignore +org.eclipse.jdt.core.compiler.problem.enumIdentifier=ignore diff --git a/bundles/org.eclipse.osgi/profile.list b/bundles/org.eclipse.osgi/profile.list index 4d781a9029f..d68cf11f248 100644 --- a/bundles/org.eclipse.osgi/profile.list +++ b/bundles/org.eclipse.osgi/profile.list @@ -20,6 +20,7 @@ java.profiles = \ J2SE-1.4.profile,\ J2SE-1.3.profile,\ J2SE-1.2.profile,\ + JRE-1.1.profile,\ JavaSE_compact1-1.8.profile,\ JavaSE_compact2-1.8.profile,\ JavaSE_compact3-1.8.profile,\ From f5ee3b81bd5be0e9ce1cef25b3e45326bfa1c9c8 Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Mon, 15 Apr 2024 20:16:49 +0200 Subject: [PATCH 2/2] Add system-packages to JRE-1.1 execution environment profile The packages are read from ancient Java-1.1 JREs. Fixes https://github.com/eclipse-equinox/equinox/issues/571 Part of https://github.com/eclipse-pde/eclipse.pde/issues/1231 --- bundles/org.eclipse.osgi/JRE-1.1.profile | 26 +++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/bundles/org.eclipse.osgi/JRE-1.1.profile b/bundles/org.eclipse.osgi/JRE-1.1.profile index 865c3979349..8f639a4add0 100644 --- a/bundles/org.eclipse.osgi/JRE-1.1.profile +++ b/bundles/org.eclipse.osgi/JRE-1.1.profile @@ -11,7 +11,31 @@ # Contributors: # IBM Corporation - initial API and implementation ############################################################################### -org.osgi.framework.system.packages = +org.osgi.framework.system.packages = \ +java.applet,\ +java.awt,\ +java.awt.datatransfer,\ +java.awt.event,\ +java.awt.image,\ +java.awt.peer,\ +java.beans,\ +java.io,\ +java.lang,\ +java.lang.reflect,\ +java.math,\ +java.net,\ +java.rmi,\ +java.rmi.dgc,\ +java.rmi.registry,\ +java.rmi.server,\ +java.security,\ +java.security.acl,\ +java.security.interfaces,\ +java.sql,\ +java.text,\ +java.text.resources,\ +java.util,\ +java.util.zip org.osgi.framework.bootdelegation = \ sun.*,\ com.sun.*