-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.0 M5
-
Fix Version/s: 7.0.0 M5
-
Component/s: Core Infrastructure, Core Infrastructure > Portal Bootstrap
-
Labels:None
-
Story Points:3
-
Fix Priority:1
-
Git Pull Request:
I would like to refactor the _isFragment method to check the bundle as fragment or not by adapting to BundleRevision and Checking for the type
As-Is
private boolean _isFragmentBundle(Bundle bundle) { Dictionary<String, String> headers = bundle.getHeaders(); String fragmentHost = headers.get(Constants.FRAGMENT_HOST); if (fragmentHost == null) { return false; } return true; }
To-be
if ((bundle.adapt(BundleRevision.class).getTypes() & BundleRevision.TYPE_FRAGMENT) == 0) { return true; }else{ return false; }
- causes
-
LPS-72459 Upgrade on Websphere with SP1/2 osgi deps fail with NPE
- Closed