8806 Commits

Author SHA1 Message Date
Joseph Zuniga-Daly
e0d29d154d Store custom serializer type in the Kryo stream so we can spot when a different serializer is being used to deserialize 2020-07-13 15:53:12 +01:00
Joseph Zuniga-Daly
195c88a8fa Add test to serialize a class that references itself 2020-07-09 11:41:02 +01:00
Joseph Zuniga-Daly
6520aa62d6 Sort serializers by classname so we are not registering in an unknown or random order 2020-07-08 15:57:28 +01:00
Joseph Zuniga-Daly
3080d93417 Update doc comment for CheckpointCustomSerializer 2020-07-08 15:50:54 +01:00
Joseph Zuniga-Daly
9e3242b234 Do not log the duplicate serializer warning when the duplicate is the same class 2020-07-08 15:41:37 +01:00
Joseph Zuniga-Daly
beb87fd6ae Add test to check duplicate serializers are logged 2020-07-08 15:13:00 +01:00
Joseph Zuniga-Daly
a1b4aa1ec2 Add doc comments to CustomSerializerCheckpointAdaptor 2020-07-08 11:40:45 +01:00
Joseph Zuniga-Daly
b45b8cf365 Add doc comments 2020-07-08 11:29:28 +01:00
Joseph Zuniga-Daly
f0ebaab3e9 Check for duplicate custom checkpoint serializers 2020-07-08 11:23:39 +01:00
Joseph Zuniga-Daly
a719163caf Split serializer registration into default and non-default registrations. Run registrations at the right time to preserve Cordas own custom serializers. 2020-07-07 11:27:35 +01:00
Joseph Zuniga-Daly
862a590d32 Add a broken serializer for EdDSAPublicKey to make test more robust 2020-07-06 15:47:37 +01:00
Joseph Zuniga-Daly
cf2928b7bd Test PublicKey serializer has not been overridden 2020-07-03 17:20:04 +01:00
Joseph Zuniga-Daly
14d8651817 Register as default unless the target class is final 2020-07-03 16:53:38 +01:00
Joseph Zuniga-Daly
a4ed9d66bc Check serialization of final classes 2020-07-03 16:40:54 +01:00
Joseph Zuniga-Daly
fed60e5af2 Add tests that run the checkpoint serializer directly 2020-07-03 16:31:56 +01:00
Joseph Zuniga-Daly
1ebfccadd0 Rename class to have a shorter name 2020-07-03 14:17:51 +01:00
Joseph Zuniga-Daly
ae6104ad37 Delete comment now source file is simpler 2020-07-03 14:13:47 +01:00
Joseph Zuniga-Daly
fefa2bee5e Move broken map into its own source file 2020-07-03 14:11:53 +01:00
Joseph Zuniga-Daly
576e563070 Move flows and serializers into their own source file 2020-07-03 14:02:07 +01:00
Joseph Zuniga-Daly
0bba32818a Rename test 2020-07-03 13:53:13 +01:00
Joseph Zuniga-Daly
7ba2210049 Move test into its own package 2020-07-03 13:51:54 +01:00
Joseph Zuniga-Daly
0f139b5bb0 Test serializer configured with abstract class 2020-07-03 13:39:07 +01:00
Joseph Zuniga-Daly
3fb8a61d3a Test custom serializers mapped to interfaces 2020-07-03 13:15:34 +01:00
Joseph Zuniga-Daly
87f859686c Add newline to end of file 2020-07-03 11:28:55 +01:00
Joseph Zuniga-Daly
a5b59d8098 Remove maySkipCheckpoint from calls to sleep 2020-07-03 11:28:11 +01:00
Joseph Zuniga-Daly
19fbfa1414 Make file match original to remove from diff 2020-06-29 15:35:09 +01:00
Joseph Zuniga-Daly
e94c32f3fa Remove need for external library in tests 2020-06-29 15:31:55 +01:00
Joseph Zuniga-Daly
223cfe640d Remove unused imports 2020-06-26 15:06:03 +01:00
Joseph Zuniga-Daly
bc921f0cb4 Use kryo default for abstract classes 2020-06-26 14:20:57 +01:00
Joseph Zuniga-Daly
b1408453ee Wire up the new CheckpointCustomSerializer interface 2020-06-26 14:18:54 +01:00
Joseph Zuniga-Daly
1c7258aee0 Add CheckpointCustomSerializer interface 2020-06-25 17:14:18 +01:00
Joseph Zuniga-Daly
050a36a677 Add test to check references are restored correctly 2020-06-25 11:40:47 +01:00
Joseph Zuniga-Daly
296202d541 Use 0 seconds when forcing a flow checkpoint inside test 2020-06-24 14:23:57 +01:00
Joseph Zuniga-Daly
fbe234574e Tidy up the fetching of types 2020-06-24 12:58:40 +01:00
Joseph Zuniga-Daly
4ab9241416 Explain why we are looking for two type parameters when we only use one 2020-06-24 12:39:03 +01:00
Joseph Zuniga-Daly
d41a1f39fb Give field a descriptive name 2020-06-24 12:33:26 +01:00
Joseph Zuniga-Daly
e95757426f Remove unused proxyType field 2020-06-24 12:32:22 +01:00
Joseph Zuniga-Daly
b43ec6a103 Remove unused constructors from exception 2020-06-24 12:31:30 +01:00
Joseph Zuniga-Daly
65b6e05a98 Put calls to the userSerializer on their own lines to improve readability 2020-06-24 12:26:15 +01:00
Joseph Zuniga-Daly
dffc7e832b Extract method 2020-06-24 11:42:04 +01:00
Joseph Zuniga-Daly
5f9d2a68bb Rename exception 2020-06-24 11:38:09 +01:00
Joseph Zuniga-Daly
ae3396a7c3 Remove try/catch to fix TooGenericExceptionCaught detekt rule 2020-06-24 11:34:07 +01:00
Joseph Zuniga-Daly
a66e140185 CORDA-3717: Apply custom serializers to checkpoints 2020-06-24 11:15:08 +01:00
Chris Rankin
6485a025c7
ENT-5430: Increase test coverage when serializing Optional fields. (#6387) 2020-06-22 16:51:40 +01:00
Waldemar Żurowski
1a7e302d5f
Merge pull request #6385 from corda/release/os/4.5
NOTICK Merge OS 4.5 -> OS 4.6
2020-06-20 16:44:14 +01:00
Waldemar Żurowski
5bfc693a71
Merge pull request #6384 from corda/INFRA-357
INFRA-357 4.4 to 4.5 merge + JDK 11 regression build changes for tag publishing
2020-06-20 14:33:24 +01:00
Schife
84583d2a1c INFRA-357 Re adding JDK 11 regression build file that was removed in the 4.4 to 4.5 merge 2020-06-20 11:25:20 +01:00
Schife
6a12cf34ad Merge branch 'release/os/4.4' of https://github.com/corda/corda into INFRA-357
 Conflicts:
	testing/DockerfileJDK11Azul
2020-06-20 11:22:30 +01:00
Razvan Codreanu
e021022d0d
INFRA-357 Publish build tag (#6375) 2020-06-20 11:08:52 +01:00
Waldemar Zurowski
a7644dab8b Cosmetic change for Windows Server builds 2020-06-19 22:09:02 +01:00