Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-03-15 12:05:50 +0000
committerEike Stepper2013-03-16 12:01:04 +0000
commit396cef94a6cedf0db16e2efe92c41d46d2c3fffd (patch)
tree68210428114a421d2cb5c01a634ff043bb401d17 /plugins/org.eclipse.emf.cdo.admin
parente743103a0cb14f44da88c8f6f24d8c24fef23086 (diff)
downloadcdo-396cef94a6cedf0db16e2efe92c41d46d2c3fffd.tar.gz
cdo-396cef94a6cedf0db16e2efe92c41d46d2c3fffd.tar.xz
cdo-396cef94a6cedf0db16e2efe92c41d46d2c3fffd.zip
[403445] [Releng] Use Execution Environments descriptions to avoid
illegal references to system libraries https://bugs.eclipse.org/bugs/show_bug.cgi?id=403445
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.admin')
-rw-r--r--plugins/org.eclipse.emf.cdo.admin/.settings/org.eclipse.pde.api.tools.prefs3
-rw-r--r--plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java9
2 files changed, 9 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.admin/.settings/org.eclipse.pde.api.tools.prefs b/plugins/org.eclipse.emf.cdo.admin/.settings/org.eclipse.pde.api.tools.prefs
index f8d0a0660e..0c17d59e45 100644
--- a/plugins/org.eclipse.emf.cdo.admin/.settings/org.eclipse.pde.api.tools.prefs
+++ b/plugins/org.eclipse.emf.cdo.admin/.settings/org.eclipse.pde.api.tools.prefs
@@ -59,7 +59,8 @@ INTERFACE_ELEMENT_TYPE_REMOVED_METHOD=Error
INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_MEMBER=Error
INTERFACE_ELEMENT_TYPE_REMOVED_TYPE_PARAMETER=Error
INVALID_JAVADOC_TAG=Ignore
-INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Ignore
+INVALID_REFERENCE_IN_SYSTEM_LIBRARIES=Error
+MISSING_EE_DESCRIPTIONS=Warning
LEAK_EXTEND=Warning
LEAK_FIELD_DECL=Warning
LEAK_IMPLEMENT=Warning
diff --git a/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java b/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java
index 6ada0c08ee..3deac12a51 100644
--- a/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java
+++ b/plugins/org.eclipse.emf.cdo.admin/src/org/eclipse/emf/cdo/internal/admin/CDOAdminClientImpl.java
@@ -29,7 +29,6 @@ import org.eclipse.net4j.util.lifecycle.LifecycleUtil;
import org.eclipse.spi.net4j.ConnectorFactory;
-import java.util.Arrays;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ExecutorService;
@@ -100,7 +99,13 @@ public class CDOAdminClientImpl extends AbstractCDOAdmin implements CDOAdminClie
public CDOAdminClientRepository[] getRepositories()
{
CDOAdminRepository[] repositories = super.getRepositories();
- return Arrays.copyOf(repositories, repositories.length, CDOAdminClientRepository[].class);
+ CDOAdminClientRepository[] result = new CDOAdminClientRepository[repositories.length];
+ for (int i = 0; i < repositories.length; i++)
+ {
+ result[i] = (CDOAdminClientRepository)repositories[i];
+ }
+
+ return result;
}
@Override

Back to the top