Skip to content

Commit 0621cd5

Browse files
authored
Merge pull request #32811 from tjwatson/removeBetaOverrideLibrary
Remove beta guards for overrideLibrary references
2 parents 52e68dc + b167103 commit 0621cd5

File tree

12 files changed

+5
-31
lines changed

12 files changed

+5
-31
lines changed

dev/com.ibm.ws.app.manager.module/src/com/ibm/ws/app/manager/module/internal/DeployedAppInfoBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
import com.ibm.ws.ffdc.FFDCFilter;
5959
import com.ibm.ws.ffdc.annotation.FFDCIgnore;
6060
import com.ibm.ws.javaee.dd.permissions.PermissionsConfig;
61-
import com.ibm.ws.kernel.productinfo.ProductInfo;
6261
import com.ibm.wsspi.adaptable.module.AdaptableModuleFactory;
6362
import com.ibm.wsspi.adaptable.module.Container;
6463
import com.ibm.wsspi.adaptable.module.UnableToAdaptException;
@@ -271,7 +270,7 @@ public SharedLibDeploymentInfo(DeployedAppServices deployedAppServices, String p
271270
Configuration cfg = classloaderConfigs[0];
272271
Dictionary<String, Object> props = cfg.getProperties();
273272
if (props != null) {
274-
String[] libraryPIDs = ProductInfo.getBetaEdition() ? (String[]) props.get("overrideLibraryRef") : null;
273+
String[] libraryPIDs = (String[]) props.get("overrideLibraryRef");
275274
processLibraryPIDs(deployedAppServices, classesContainerInfo, libraryPIDs, LibraryType.OVERRIDE_LIB);
276275

277276
libraryPIDs = (String[]) props.get("privateLibraryRef");

dev/com.ibm.ws.cdi.visibility_fat/publish/servers/visTestServer/jvm.options

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/com.ibm.ws.cdi.visibility_fat/publish/servers/visTestServerAddWarCPToEar/jvm.options

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/com.ibm.ws.classloading/resources/OSGI-INF/l10n/classloader.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classloader.library.ref.desc=List of library references. Library class instances
3232

3333
# Override libraryRefs
3434
classloader.override.library.ref=Override Library
35-
classloader.override.library.ref$Ref=Override Library references
35+
classloader.override.library.ref$Ref=Override library references
3636
classloader.override.library.ref.desc=List of library references. Library class instances are unique to this class loader, independent of class instances from other class loaders. The referenced library class path is searched before searching the class path of this class loader.
3737

3838
classloader.common.library.ref=Shared Library

dev/com.ibm.ws.classloading/resources/OSGI-INF/metatype/classloader.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838
<AD name="%classloader.override.library.ref" description="%classloader.override.library.ref.desc"
3939
id="overrideLibraryRef"
40-
ibm:beta="true"
4140
required="false"
4241
type="String"
4342
cardinality="10000"

dev/com.ibm.ws.classloading/src/com/ibm/ws/classloading/internal/AppClassLoader.java

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
import java.util.Set;
5353
import java.util.concurrent.ConcurrentHashMap;
5454
import java.util.concurrent.ConcurrentMap;
55-
import java.util.concurrent.atomic.AtomicBoolean;
5655
import java.util.concurrent.atomic.AtomicReference;
5756

5857
import org.osgi.framework.Bundle;
@@ -68,7 +67,6 @@
6867
import com.ibm.ws.classloading.internal.util.ClassRedefiner;
6968
import com.ibm.ws.classloading.internal.util.FeatureSuggestion;
7069
import com.ibm.ws.ffdc.annotation.FFDCIgnore;
71-
import com.ibm.ws.kernel.productinfo.ProductInfo;
7270
import com.ibm.ws.kernel.security.thread.ThreadIdentityManager;
7371
import com.ibm.wsspi.adaptable.module.Container;
7472
import com.ibm.wsspi.classloading.ApiType;
@@ -84,7 +82,6 @@
8482
*/
8583
public class AppClassLoader extends ContainerClassLoader implements SpringLoader {
8684
static final TraceComponent tc = Tr.register(AppClassLoader.class);
87-
private static final AtomicBoolean issuedOverrideBetaMessage = new AtomicBoolean(false);
8885

8986
private static final Set<String> forbiddenClassNames = Collections.unmodifiableSet( loadForbidden() );
9087

@@ -185,21 +182,7 @@ private TraceComponent getClassLoadingTraceComponent(String pkg) {
185182
for (Container container : config.getNativeLibraryContainers())
186183
addNativeLibraryContainer(container);
187184

188-
List<Library> foundOverrideLibraries = Providers.getOverrideLibraries(config);
189-
if (foundOverrideLibraries != null && !foundOverrideLibraries.isEmpty()) {
190-
// beta guard check
191-
if (!ProductInfo.getBetaEdition()) {
192-
foundOverrideLibraries = Collections.emptyList();
193-
if (issuedOverrideBetaMessage.compareAndSet(false, true)) {
194-
Tr.info(tc, "BETA: Override libraries can only be used with the Open Liberty BETA.");
195-
}
196-
} else {
197-
if (issuedOverrideBetaMessage.compareAndSet(false, true)) {
198-
Tr.info(tc, "BETA: Override libraries are being used.");
199-
}
200-
}
201-
}
202-
this.overrideLibraries = new AtomicReference<>(foundOverrideLibraries);
185+
this.overrideLibraries = new AtomicReference<>(Providers.getOverrideLibraries(config));
203186
this.privateLibraries = new AtomicReference<>(Providers.getPrivateLibraries(config));
204187

205188
List<LibertyLoader> tmpBeforeApp = new ArrayList<>();

dev/com.ibm.ws.classloading_classpath_fat/publish/servers/overrideLibWarTest/jvm.options

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/com.ibm.ws.classloading_classpath_fat/publish/servers/parentLastLibraryInconsistentTest/jvm.options

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/com.ibm.ws.classloading_classpath_fat/publish/servers/parentLastResourceAdaptorInconsistentTest/jvm.options

Lines changed: 0 additions & 1 deletion
This file was deleted.

dev/com.ibm.ws.jdbc/src/com/ibm/ws/jdbc/DataSourceResourceFactoryBuilder.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
import com.ibm.ws.jdbc.internal.JDBCDriverService;
5555
import com.ibm.ws.jdbc.internal.JDBCDrivers;
5656
import com.ibm.ws.jdbc.internal.PropertyService;
57-
import com.ibm.ws.kernel.productinfo.ProductInfo;
5857
import com.ibm.ws.resource.ResourceFactory;
5958
import com.ibm.ws.resource.ResourceFactoryBuilder;
6059
import com.ibm.ws.rsadapter.AdapterUtil;
@@ -488,7 +487,7 @@ private final String updateWithLibraries(BundleContext bundleContext,
488487

489488
// Do not check for privateLibraryRef for java:global data source definitions, applicationName is null when java:global is used
490489
if (applicationName != null) {
491-
Object overrideLibraryRef = ProductInfo.getBetaEdition() ? classloaderProps.get("overrideLibraryRef") : null;
490+
Object overrideLibraryRef = classloaderProps.get("overrideLibraryRef");
492491
if (overrideLibraryRef != null && overrideLibraryRef instanceof String[])
493492
for (String pid : (String[]) overrideLibraryRef)
494493
libraryFilter.append(FilterUtils.createPropertyFilter(Constants.SERVICE_PID, pid));

0 commit comments

Comments
 (0)