-
Notifications
You must be signed in to change notification settings - Fork 452
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update and adapt to GraalVM for JDK 23 (#2069)
* build(deps): update dependency com.google.cloud:native-image-shared-config to v1.14.0 * disable testDisconnectShouldNotWaitToReadResponse for JDK >= 23 * fix assumption code * fix assumption ii * Revert "fix assumption ii" This reverts commit 2fbd4cb. * Revert "fix assumption code" This reverts commit d355740. * Revert "disable testDisconnectShouldNotWaitToReadResponse for JDK >= 23" This reverts commit e2c988e. * chore: use JUnit4 in tests this is basically not rely on extending TestCase and using @test annotations * use at least 1 Junit38 test * Revert "use at least 1 Junit38 test" This reverts commit 84f3f4f. * fix net http response tests * annotate tests with @RunWith(JUnit4.class) * initialize static members in static block * use static blocks to initialize test classes * format * set up class initialization * convert google-http-client-test to JUnit4 * use java.nio for tests * run with JUnit 4 explicitly * use static block * Revert "use static block" This reverts commit 73ebee2. * Reapply "use static block" This reverts commit 06acc4a. * initialize IS_WINDOWS at build time * prevent cryptic message when initializing FileDataStoreFactory * fix static initialization in AbstractDatastoreFactory * test no IS_WINDOWS * Revert "test no IS_WINDOWS" This reverts commit 3f6483d. * ruling out logger initialization * add test output * safe initialization of ID_PATTERN * remove provided scope depdendency * convert appengine transport to JUnit 4 * add clirr differences * include appengine classes in runtime this allows native compilation * add native config * add reflect-config for appengine * use JUnit4 in GSON tests * fix clirr * port abstract json parser test to JUnit4 * remove unused imports * update clirr again * add native config to gson module * convert jackson module to JUnit4 * make jackson factory instantiation native friendly * config test-only build-time initialization * adapt protocol buffers module to JUnit 4 * initialize test classes at test time * convert xml module to JUnit4 * add test time initialization entries to xml module * format * restore debug setup * add junit test time initialization flags * add junit to gson deps * add junit test-scoped dependency to jackson2 module * add jackson factory to class initialization this is due to one of the test classes statically initializing this factory. * add app engine feature * try setup time feature registration * Revert "try setup time feature registration" This reverts commit eeb9352. * Revert "add app engine feature" This reverts commit e75875b. * add app engine core lib for testing this allows these classes to be included for native testing * add test-scoped dep in test module * use -Pnative-deps * add conflicting dep in native-deps profile for appengine * include appengine in graalvm tests * restore static blocks in google-http-client * restore static blocks in gson module * restore static blocks in jackson * restore static blocks in protobuf * format * restore static initailization in xml module * restore static block in jackson module * format * remove app engine from test --------- Co-authored-by: Mend Renovate <bot@renovateapp.com>
- Loading branch information
1 parent
2285bb1
commit 7a0fab3
Showing
93 changed files
with
1,562 additions
and
411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...-INF/native-image/com.google.http-client/google-http-client-appengine/reflect-config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[ | ||
{ | ||
"name": "com.google.apphosting.api.DatastorePb$DeleteRequest", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.google.apphosting.api.DatastorePb$GetRequest", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.google.apphosting.api.DatastorePb$NextRequest", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.google.apphosting.api.DatastorePb$PutRequest", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "com.google.apphosting.api.DatastorePb$Query", | ||
"methods": [ | ||
{ | ||
"name": "<init>", | ||
"parameterTypes": [] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
.../native-image/com.google.http-client/google-http-client-appengine/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Args=--initialize-at-build-time=org.junit.runner.RunWith,java.lang.annotation.Annotation \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...A-INF/native-image/com.google.http-client/google-http-client-gson/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Args=--initialize-at-build-time=org.junit.runner.RunWith,java.lang.annotation.Annotation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
...F/native-image/com.google.http-client/google-http-client-jackson2/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
Args=--initialize-at-build-time=com.google.api.client.json.jackson2.JacksonFactoryTest \ | ||
--initialize-at-build-time=com.google.api.client.json.jackson2.JacksonGeneratorTest \ | ||
--initialize-at-build-time=com.fasterxml.jackson.core.io.SerializedString \ | ||
--initialize-at-build-time=com.fasterxml.jackson.core.io.CharTypes \ | ||
--initialize-at-build-time=com.fasterxml.jackson.core.JsonFactory \ | ||
--initialize-at-build-time=com.fasterxml.jackson.core.io.JsonStringEncoder \ | ||
--initialize-at-build-time=com.google.api.client.util.StringUtils | ||
--initialize-at-build-time=com.google.api.client.json.jackson2.JacksonFactory \ | ||
--initialize-at-build-time=com.google.api.client.util.StringUtils \ | ||
--initialize-at-build-time=com.fasterxml.jackson.core \ | ||
--initialize-at-build-time=org.junit.runner.RunWith,java.lang.annotation.Annotation |
1 change: 1 addition & 0 deletions
1
...F/native-image/com.google.http-client/google-http-client-protobuf/native-image.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Args=--initialize-at-build-time=org.junit.runner.RunWith,java.lang.annotation.Annotation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- see http://www.mojohaus.org/clirr-maven-plugin/examples/ignored-differences.html --> | ||
<!-- | ||
[ERROR] 4001: com.google.api.client.test.json.AbstractJsonFactoryTest: Removed junit.framework.Test from the set of implemented interfaces | ||
[ERROR] 5001: com.google.api.client.test.json.AbstractJsonFactoryTest: Removed junit.framework.Assert from the list of superclasses | ||
[ERROR] 5001: com.google.api.client.test.json.AbstractJsonFactoryTest: Removed junit.framework.TestCase from the list of superclasses | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_EMPTY is no longer a compile-time constant | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_EMPTY_OUTPUT is no longer a compile-time constant | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_FALSE is no longer a compile-time constant | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_NULL is no longer a compile-time constant | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_NULL_OUTPUT is no longer a compile-time constant | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_TRUE is no longer a compile-time constant | ||
[WARNING] 6002: com.google.api.client.test.json.AbstractJsonFactoryTest: Value of field BOOLEAN_TYPE_WRONG is no longer a compile-time constant | ||
[ERROR] 7004: com.google.api.client.test.json.AbstractJsonFactoryTest: In method 'public AbstractJsonFactoryTest(java.lang.String)' the number of arguments has changed | ||
[ERROR] 4001: com.google.api.client.test.json.AbstractJsonGeneratorTest: Removed junit.framework.Test from the set of implemented interfaces | ||
[ERROR] 5001: com.google.api.client.test.json.AbstractJsonGeneratorTest: Removed junit.framework.Assert from the list of superclasses | ||
[ERROR] 5001: com.google.api.client.test.json.AbstractJsonGeneratorTest: Removed junit.framework.TestCase from the list of superclasses | ||
[ERROR] 4001: com.google.api.client.test.json.AbstractJsonParserTest: Removed junit.framework.Test from the set of implemented interfaces [ERROR] 5001: com.google.api.client.test.json.AbstractJsonParserTest: Removed junit.framework.Assert from the list of superclasses [ERROR] 5001: com.google.api.client.test.json.AbstractJsonParserTest: Removed junit.framework.TestCase from the list of superclasses | ||
--> | ||
<differences> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>4001</differenceType> | ||
<className>com/google/api/client/test/util/store/AbstractDataStoreFactoryTest</className> | ||
<to>junit/framework/Test</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>4001</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonFactoryTest</className> | ||
<to>junit/framework/Test</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>4001</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonGeneratorTest</className> | ||
<to>junit/framework/Test</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>4001</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonParserTest</className> | ||
<to>junit/framework/Test</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>5001</differenceType> | ||
<className>com/google/api/client/test/util/store/AbstractDataStoreFactoryTest</className> | ||
<to>junit/framework/*</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>5001</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonFactoryTest</className> | ||
<to>junit/framework/*</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>5001</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonGeneratorTest</className> | ||
<to>junit/framework/*</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>5001</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonParserTest</className> | ||
<to>junit/framework/*</to> | ||
</difference> | ||
<difference> | ||
<!-- migration to JUnit 4 --> | ||
<differenceType>7004</differenceType> | ||
<className>com/google/api/client/test/json/AbstractJsonFactoryTest</className> | ||
<method>*</method> | ||
</difference> | ||
</differences> |
Oops, something went wrong.