Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat Booth2018-07-12 11:24:43 -0400
committerMat Booth2018-07-12 12:05:45 -0400
commit2fa5b87e1f0764f9abb081904ecba5b340c25893 (patch)
tree7994e36fa3184fb353e407d9492f7289e0d0af91 /framework/bundles/org.eclipse.ecf.identity/src
parent2079b6f728aff28b5313cda5ddde29081e44a013 (diff)
downloadorg.eclipse.ecf-2fa5b87e1f0764f9abb081904ecba5b340c25893.tar.gz
org.eclipse.ecf-2fa5b87e1f0764f9abb081904ecba5b340c25893.tar.xz
org.eclipse.ecf-2fa5b87e1f0764f9abb081904ecba5b340c25893.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=534087
Allow ECF to build against both R6 and R7 implementations of the org.osgi.service.log API. This is accomplished by providing stubs of the new interfaces on the build-time classpath so that we can implement the new R7 methods without having unresolved classes on R6. The stubs are not shipped with the binary distribution of ECF, so in the actual ECF code we can use them as long as we avoid any explicit import statements to avoid runtime linkage errors on R6. Change-Id: Ib29135c030e3dd8a3bf799552a2f3144c26edfe3 Signed-off-by: Mat Booth <mat.booth@redhat.com>
Diffstat (limited to 'framework/bundles/org.eclipse.ecf.identity/src')
-rw-r--r--framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java22
1 files changed, 21 insertions, 1 deletions
diff --git a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
index 7826b0891..33eb9c568 100644
--- a/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
+++ b/framework/bundles/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/util/SystemLogService.java
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright (c) 2007, 2009 Composent, Inc. and others.
+ * Copyright (c) 2007, 2018 Composent, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,6 +13,7 @@ package org.eclipse.ecf.core.util;
import java.text.SimpleDateFormat;
import java.util.Date;
+import org.osgi.framework.Bundle;
import org.osgi.framework.ServiceReference;
import org.osgi.service.log.LogService;
@@ -100,4 +101,23 @@ public class SystemLogService implements LogService {
doLog(sr, level, message, exception);
}
+ public org.osgi.service.log.Logger getLogger(String name) {
+ throw new UnsupportedOperationException();
+ }
+
+ public org.osgi.service.log.Logger getLogger(Class<?> clazz) {
+ throw new UnsupportedOperationException();
+ }
+
+ public <L extends org.osgi.service.log.Logger> L getLogger(String name, Class<L> loggerType) {
+ throw new UnsupportedOperationException();
+ }
+
+ public <L extends org.osgi.service.log.Logger> L getLogger(Class<?> clazz, Class<L> loggerType) {
+ throw new UnsupportedOperationException();
+ }
+
+ public <L extends org.osgi.service.log.Logger> L getLogger(Bundle bundle, String name, Class<L> loggerType) {
+ throw new UnsupportedOperationException();
+ }
}

Back to the top