Tom Watson

FELIX-6215 - Cannot run scr unit tests on Java 11

Updates to the latest version of mockito 2.x for Java 11 support

Signed-off-by: Mat Booth <mat.booth@redhat.com>

FELIX-6215 - Cannot run scr unit tests on Java 11

Updates to the latest version of mockito 2.x for Java 11 support

Signed-off-by: Mat Booth <mat.booth@redhat.com>

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1873364 13f79535-47bb-0310-9956-ffa450edef68

FELIX-6212 : Add testcase and fix reexport uses constraint check

When an exporter of a split package requires multiple bundles that also

export the split package and that bundle does a reexport on one of the

parts it can cause resolution issues for uses constraints.

The actual problem is with reexport itself. The reexporting bundle does

not have to also export the package to cause the issue. The problem is

that each part of the package pulled in from the require-reexport is

checked in isolation with the using bundles wire to the same package

name. This is incorrect because that is only a subset of the actual

used package from the perspective of the exported package that is using

the split package.

The fix is to record all the package parts for the split used package

from the wiring of the bundle exporting the package that uses the split

package. That way during the compatibility check we can accurately use

the set of sources for the split package that the exporting bundle is

using.

FELIX-6212 : Add testcase and fix reexport uses constraint check

When an exporter of a split package requires multiple bundles that also

export the split package and that bundle does a reexport on one of the

parts it can cause resolution issues for uses constraints.

The actual problem is with reexport itself. The reexporting bundle does

not have to also export the package to cause the issue. The problem is

that each part of the package pulled in from the require-reexport is

checked in isolation with the using bundles wire to the same package

name. This is incorrect because that is only a subset of the actual

used package from the perspective of the exported package that is using

the split package.

The fix is to record all the package parts for the split used package

from the wiring of the bundle exporting the package that uses the split

package. That way during the compatibility check we can accurately use

the set of sources for the split package that the exporting bundle is

using.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1872796 13f79535-47bb-0310-9956-ffa450edef68

FELIX-6159 - Handle IllegalStateException when configuration is deleted
FELIX-6159 - Handle IllegalStateException when configuration is deleted

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1863223 13f79535-47bb-0310-9956-ffa450edef68

FELIX-6155 - Add version to metadata store file

If the stored version is not the current version

of the implementation then the cached metadata is

ignored.

FELIX-6155 - Add version to metadata store file

If the stored version is not the current version

of the implementation then the cached metadata is

ignored.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1862759 13f79535-47bb-0310-9956-ffa450edef68

FELIX-6155 - Add integration tests for caching of component metadata
FELIX-6155 - Add integration tests for caching of component metadata

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1862494 13f79535-47bb-0310-9956-ffa450edef68

    • -0
    • +94
    /scr/src/test/resources/integration_test_component_metadata_cache.xml
    • -0
    • +36
    /scr/src/test/resources/integration_test_component_metadata_cache2.xml
FELIX-6155 - Add unit tests for caching of component meta data
    • ?
    /scr/src/test/resources/components_10.xml
    • ?
    /scr/src/test/resources/components_11.xml
    • ?
    /scr/src/test/resources/factory_14.properties
    • ?
    /scr/src/test/resources/components_12.xml
    • ?
    /scr/src/test/resources/components_14.xml
    • ?
    /scr/src/test/resources/components_13.xml
FELIX-6155 - Add unit tests for caching of component meta data

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1862493 13f79535-47bb-0310-9956-ffa450edef68

    • -0
    • +90
    /scr/src/test/resources/components_10.xml
    • -0
    • +90
    /scr/src/test/resources/components_11.xml
    • -0
    • +94
    /scr/src/test/resources/components_12.xml
    • -0
    • +99
    /scr/src/test/resources/components_13.xml
    • -0
    • +148
    /scr/src/test/resources/components_14.xml
    • -0
    • +19
    /scr/src/test/resources/factory_14.properties
FELIX-6155 - Move methods from XmlHandlerTest to ComponentBase class

Some of the methods in XmlHandlerTest are moved to ComponentBase because

the can be general useful in other tests.

FELIX-6155 - Move methods from XmlHandlerTest to ComponentBase class

Some of the methods in XmlHandlerTest are moved to ComponentBase because

the can be general useful in other tests.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1862492 13f79535-47bb-0310-9956-ffa450edef68

FELIX-6155 - Add caching of service component metadata

By default the caching is disabled. The configuration property (or

framework launch property) ds.cache.metadata can be set to the string

"true" to enable the support. Unfortunately dynamically setting this

with config admin is problematic because the cache is read at activation

time currently. This could be enhanced to read the cache any time the

value is set to true dynamically. For now it is required to be set from

the start with a system or framework launch property

FELIX-6155 - Add caching of service component metadata

By default the caching is disabled. The configuration property (or

framework launch property) ds.cache.metadata can be set to the string

"true" to enable the support. Unfortunately dynamically setting this

with config admin is problematic because the cache is read at activation

time currently. This could be enhanced to read the cache any time the

value is set to true dynamically. For now it is required to be set from

the start with a system or framework launch property

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1862491 13f79535-47bb-0310-9956-ffa450edef68

FELIX-6140: possible deadlock in ResolverImpl.EnhancedExecutor.await()

Change await implementation to use a Queue<Future<Void>> to avoid

inaccurate accounting of task count to wait for completion when an

exception is thrown from executor.execute() method. There are scenarios

where the resolver algorithm can take a huge amount of memory resulting

in out of memory errors. If this happens to occur when dispatching a

task to the executor then the count was never decremented.

FELIX-6140: possible deadlock in ResolverImpl.EnhancedExecutor.await()

Change await implementation to use a Queue<Future<Void>> to avoid

inaccurate accounting of task count to wait for completion when an

exception is thrown from executor.execute() method. There are scenarios

where the resolver algorithm can take a huge amount of memory resulting

in out of memory errors. If this happens to occur when dispatching a

task to the executor then the count was never decremented.

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1861034 13f79535-47bb-0310-9956-ffa450edef68

[maven-release-plugin] prepare for next development iteration
[maven-release-plugin] prepare for next development iteration

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1853964 13f79535-47bb-0310-9956-ffa450edef68

[maven-release-plugin] copy for tag org.apache.felix.scr-2.1.16

git-svn-id: https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.scr-2.1.16@1853963 13f79535-47bb-0310-9956-ffa450edef68

[maven-release-plugin] prepare release org.apache.felix.scr-2.1.16
[maven-release-plugin] prepare release org.apache.felix.scr-2.1.16

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1853962 13f79535-47bb-0310-9956-ffa450edef68

[maven-release-plugin] prepare release org.apache.felix.scr-2.1.16

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk/scr@1853962 13f79535-47bb-0310-9956-ffa450edef68

Update changelog
Update changelog

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk/scr@1853913 13f79535-47bb-0310-9956-ffa450edef68

Update changelog

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1853913 13f79535-47bb-0310-9956-ffa450edef68

Update changelog
Update changelog

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1853896 13f79535-47bb-0310-9956-ffa450edef68

Update changelog

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk/scr@1853896 13f79535-47bb-0310-9956-ffa450edef68