Project: Eclipse_Platform_UI
Bug 255849 [Metadata] Wrong types and methods used in org.eclipse.ui.workbench
Reported: 2008-11-19 13:26:40 | Status: resolved fixed

That bundle is supposed to be Foundation 1.0 compliant according to the 3.4 plan. Maybe this has changed for 3.5. The EEs defined for this project are: Bundle-RequiredExecutionEnvironment: J2SE-1.4, CDC-1.0/Foundation-1.0, J2SE-1.3 And for the compilation, pde.build ends up taking the first execution environment which is 1.4. If pde.build would take the latest execution environment, it would not compile. The bundle execution environment should be changed to 1.4 or some type references and method calls should be removed. Here is the list of possible problematic references found by the new validation from api tooling: - java.lang.String.replaceAll(String, String) - java.util.regex.Pattern and its methods - java.lang.StringBuffer.append(StringBuffer) - java.lang.String.split(String) - RuntimeException(Throwable) - Error(Throwable) - java.lang.Throwable.initCause(Throwable) - java.util.regex.Matcher and its methods - javax.swing.SwingUtilities - java.awt.KeyboardFocusManager - javax.swing.FocusManager - java.lang.Throwable.getStackTrace() - java.lang.StackTraceElement.toString() Let me know if any of these references is considered to be fine. Here is the complete list that let you know in what types the references were found: The method java.lang.String.replaceAll(String, String) referenced in org.eclipse.ui.activities.ActivityCategoryPreferencePage$AdvancedDialog is not defined in bundle's required execution environment: J2SE-1.3 The type java.util.regex.Pattern referenced in org.eclipse.ui.activities.IActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.StringBuffer.append(StringBuffer) referenced in org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$ItemsListLabelProvider is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.StringBuffer.append(StringBuffer) referenced in org.eclipse.ui.dialogs.FilteredItemsSelectionDialog$ItemsListLabelProvider is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.String.replaceAll(String, String) referenced in org.eclipse.ui.dialogs.SearchPattern is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.String.split(String) referenced in org.eclipse.ui.dialogs.WorkingSetConfigurationBlock is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.String.split(String) referenced in org.eclipse.ui.dialogs.WorkingSetConfigurationBlock is not defined in bundle's required execution environment: J2SE-1.3 The constructor RuntimeException(Throwable) referenced in org.eclipse.ui.internal.ExceptionHandler is not defined in bundle's required execution environment: J2SE-1.3 The constructor RuntimeException(Throwable) referenced in org.eclipse.ui.internal.StartupThreading is not defined in bundle's required execution environment: J2SE-1.3 The constructor Error(Throwable) referenced in org.eclipse.ui.internal.Workbench is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.Throwable.initCause(Throwable) referenced in org.eclipse.ui.internal.about.AboutBundleData is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.Throwable.initCause(Throwable) referenced in org.eclipse.ui.internal.about.AboutBundleData is not defined in bundle's required execution environment: J2SE-1.3 The type java.util.regex.Pattern referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.compile(String) referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.compile(String) referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The type java.util.regex.Pattern referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.pattern() referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.pattern() referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The type java.util.regex.Pattern referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.compile(String) referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.pattern() referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Pattern.matcher(CharSequence) referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The method java.util.regex.Matcher.matches() referenced in org.eclipse.ui.internal.activities.ActivityPatternBinding is not defined in bundle's required execution environment: J2SE-1.3 The type java.util.regex.Pattern referenced in org.eclipse.ui.internal.activities.MutableActivityManager is not defined in bundle's required execution environment: J2SE-1.3 The type javax.swing.SwingUtilities referenced in org.eclipse.ui.internal.handlers.WidgetMethodHandler is not defined in bundle's required execution environment: CDC-1.0/Foundation-1.0 The type java.awt.KeyboardFocusManager referenced in org.eclipse.ui.internal.handlers.WidgetMethodHandler is not defined in bundle's required execution environment: J2SE-1.3 The type javax.swing.FocusManager referenced in org.eclipse.ui.internal.handlers.WidgetMethodHandler is not defined in bundle's required execution environment: CDC-1.0/Foundation-1.0 The method java.lang.Throwable.getStackTrace() referenced in org.eclipse.ui.internal.statushandlers.StackTraceSupportArea is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.StackTraceElement.toString() referenced in org.eclipse.ui.internal.statushandlers.StackTraceSupportArea is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.Throwable.getCause() referenced in org.eclipse.ui.internal.statushandlers.StackTraceSupportArea is not defined in bundle's required execution environment: J2SE-1.3 The method java.lang.Throwable.getCause() referenced in org.eclipse.ui.internal.statushandlers.StackTraceSupportArea is not defined in bundle's required execution environment: J2SE-1.3

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/activities/ActivityCategoryPreferencePage.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/SearchPattern.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/WorkingSetConfigurationBlock.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/plugin/AbstractUIPlugin.java