Skip to content

Commit 02ee533

Browse files
kimetavjovanov
authored andcommitted
AI fix for activemq-broker 6.0.0
1 parent 2677c40 commit 02ee533

File tree

13 files changed

+225
-1
lines changed

13 files changed

+225
-1
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"reflect-config.json",
3+
"resource-config.json"
4+
]
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
[
2+
{
3+
"condition": {
4+
"typeReachable": "org.apache.activemq.util.IntrospectionSupport"
5+
},
6+
"name": "org.apache.activemq.broker.BrokerService",
7+
"queryAllPublicMethods": true,
8+
"methods": [
9+
{
10+
"name": "setPersistent",
11+
"parameterTypes": [
12+
"boolean"
13+
]
14+
}
15+
]
16+
},
17+
{
18+
"condition": {
19+
"typeReachable": "org.apache.activemq.broker.BrokerFactory"
20+
},
21+
"name": "org.apache.activemq.broker.DefaultBrokerFactory",
22+
"methods": [
23+
{
24+
"name": "<init>",
25+
"parameterTypes": []
26+
}
27+
]
28+
},
29+
{
30+
"condition": {
31+
"typeReachable": "org.apache.activemq.transport.TransportFactory"
32+
},
33+
"name": "org.apache.activemq.transport.vm.VMTransportFactory",
34+
"methods": [
35+
{
36+
"name": "<init>",
37+
"parameterTypes": []
38+
}
39+
]
40+
},
41+
{
42+
"condition": {
43+
"typeReachable": "org.apache.activemq.util.LongSequenceGenerator"
44+
},
45+
"name": "org.apache.activemq.util.LongSequenceGenerator",
46+
"fields": [
47+
{
48+
"name": "lastSequenceId"
49+
}
50+
]
51+
}
52+
]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"resources": {
3+
"includes": [
4+
{
5+
"condition": {
6+
"typeReachable": "org.apache.activemq.broker.BrokerFactory"
7+
},
8+
"pattern": "\\QMETA-INF/services/org/apache/activemq/broker/broker\\E"
9+
},
10+
{
11+
"condition": {
12+
"typeReachable": "org.apache.activemq.transport.TransportFactory"
13+
},
14+
"pattern": "\\QMETA-INF/services/org/apache/activemq/transport/vm\\E"
15+
},
16+
{
17+
"condition": {
18+
"typeReachable": "org.apache.activemq.broker.BrokerService"
19+
},
20+
"pattern": "\\Qorg/apache/activemq/version.txt\\E"
21+
}
22+
]
23+
},
24+
"bundles": []
25+
}

metadata/org.apache.activemq/activemq-broker/index.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[
22
{
3-
"latest" : true,
43
"module" : "org.apache.activemq:activemq-broker",
54
"metadata-version" : "5.18.1",
65
"tested-versions" : [
@@ -14,5 +13,13 @@
1413
"5.19.0",
1514
"5.19.1"
1615
]
16+
},
17+
{
18+
"latest": true,
19+
"metadata-version": "6.0.0",
20+
"module": "org.apache.activemq:activemq-broker",
21+
"tested-versions": [
22+
"6.0.0"
23+
]
1724
}
1825
]

tests/src/index.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,12 @@
304304
"name" : "org.apache.activemq:activemq-broker",
305305
"versions" : [ "5.18.1" ]
306306
} ]
307+
}, {
308+
"test-project-path": "org.apache.activemq/activemq-broker/6.0.0",
309+
"libraries": [ {
310+
"name": "org.apache.activemq:activemq-broker",
311+
"versions": [ "6.0.0" ]
312+
} ]
307313
}, {
308314
"test-project-path" : "org.apache.activemq/activemq-client/5.18.1",
309315
"libraries" : [ {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
gradlew.bat
2+
gradlew
3+
gradle/
4+
build/
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright and related rights waived via CC0
3+
*
4+
* You should have received a copy of the CC0 legalcode along with this
5+
* work. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
6+
*/
7+
8+
plugins {
9+
id "org.graalvm.internal.tck"
10+
}
11+
12+
String libraryVersion = tck.testedLibraryVersion.get()
13+
14+
dependencies {
15+
testImplementation "org.apache.activemq:activemq-broker:$libraryVersion"
16+
testImplementation 'org.assertj:assertj-core:3.22.0'
17+
}
18+
19+
graalvmNative {
20+
agent {
21+
defaultMode = "conditional"
22+
modes {
23+
conditional {
24+
userCodeFilterPath = "metadata-user-code-filter.json"
25+
extraFilterPath = "metadata-extra-filter.json"
26+
}
27+
}
28+
}
29+
}
30+
31+
graalvmNative {
32+
agent {
33+
defaultMode = "conditional"
34+
modes {
35+
conditional {
36+
userCodeFilterPath = "user-code-filter.json"
37+
}
38+
}
39+
}
40+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
library.version = 6.0.0
2+
metadata.dir = org.apache.activemq/activemq-broker/6.0.0/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"rules": [
3+
{"includeClasses": "**"},
4+
{"excludeClasses": "com.sun.**"},
5+
{"excludeClasses": "java.lang.**"},
6+
{"excludeClasses": "java.math.**"},
7+
{"excludeClasses": "java.util.**"},
8+
{"excludeClasses": "javax.management.**"},
9+
{"excludeClasses": "jdk.management.**"},
10+
{"excludeClasses": "sun.management.**"},
11+
{"excludeClasses": "org.apache.activemq.broker.jmx.**"}
12+
]
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rules": [
3+
{"includeClasses": "org.apache.activemq.**"},
4+
{"excludeClasses": "org.apache.activemq.broker.jmx.**"}
5+
]
6+
}

0 commit comments

Comments
 (0)