Commit graph

233 commits

Author SHA1 Message Date
Vaci Koblizek
218529deae add client factory for AnyPointer accessor 2020-10-22 15:55:11 +01:00
Vaci Koblizek
3b0e3f37a0 generate (non-generic) interfaces and capability accessors 2020-10-22 15:55:11 +01:00
dependabot[bot]
44a8c1e859 Bump junit from 4.12 to 4.13.1 in /compiler
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-10-13 18:21:11 -04:00
David Renshaw
880adcfe5e set sourceEncoding to UTF-8 2020-05-13 17:56:01 -04:00
David Renshaw
703449e966 invoke 'make' from maven 2020-05-13 17:45:24 -04:00
David Renshaw
7da9686191 fix comparisons of different enum types 2020-05-13 17:19:55 -04:00
David Renshaw
4cc34896b4 add StructList.newFactory method, allowing type parameters to be inferred 2020-05-12 23:29:16 -04:00
David Renshaw
f98f187538 bump version numbers 2020-05-12 23:03:41 -04:00
David Renshaw
79ffb37b4c sbt -> maven, scalatest -> junit 2020-05-12 20:17:47 -04:00
David Renshaw
c6762ff0f7 implement StructList.Builder.setWithCaveats() 2019-03-23 10:32:01 -04:00
David Renshaw
f4411ba2c7 implement asReader() for list types 2018-02-03 14:17:42 -05:00
David Renshaw
5b0afb58f3 add test case for #59 2017-12-13 21:45:49 -05:00
David Renshaw
755a2d38fb remove debug write 2017-02-27 18:43:08 -05:00
David Renshaw
14237610fb Fix bug in double-far creation and add StructListUpgradeDoubleFar test. 2017-02-27 18:42:38 -05:00
David Renshaw
2c43bd712f add Unions test 2016-12-16 14:50:43 -05:00
Amer Banet
cb0fdba7b8 Fixed code generator. Added missing union type initialization when using lists in unions. 2016-12-16 20:13:34 +01:00
David Renshaw
99107e64a5 cover some more cases 2016-09-19 15:52:30 -04:00
David Renshaw
7da1dc8159 get codegen working on GenericMap example 2016-09-19 14:59:20 -04:00
David Renshaw
4b75ac38a4 Oops, forgot to check in the schema. 2015-12-07 15:35:36 -05:00
David Renshaw
037bebfb9c Fully qualify class names so that cross-package references work. 2015-12-07 15:34:21 -05:00
David Renshaw
2127084a53 Update ByteBuffer.position() one last time before returning from Serialize.read(). 2015-08-17 22:13:06 -04:00
David Renshaw
755844c81a Add test for computSerializedSizeInWords(). 2015-06-13 15:15:59 -07:00
David Renshaw
49a5c6ba64 Implementent MessageBuilder.getRoot() and MessageBuilder.setRoot(). 2015-06-11 22:40:30 -04:00
Ben Challenor
ba0c120c77 Idiomatic scala - var -> val 2015-05-03 15:43:33 +01:00
Ben Challenor
28fac634bc Idiomatic scala - remove explicit return 2015-05-03 15:43:09 +01:00
Ben Challenor
50f4fe9d51 Idiomatic Scala - remove semicolons
Note this means that a few newlines have to be added to eliminate
ambiguity.
2015-05-03 15:35:07 +01:00
Ben Challenor
2ec3b6b125 Rename Scala files to match class names 2015-05-03 15:05:41 +01:00
David Renshaw
717d977233 Fix integer overflow issues. 2015-04-20 21:10:52 -04:00
dvdreddy
b56b91531c Fix setting default vals for Enums
Currently since we are xoring the default value in
the enums, if a enum field is set and then queries
you will encouter wrong values being returned. Adding
the xor offset in the generated code fixes this. Also
added a small test for this check
2015-03-11 17:40:54 -04:00
David Renshaw
0e8fe55593 Fix integer overflow bugs. 2015-03-08 20:39:44 -04:00
David Renshaw
2b1d5c201e Fix integer underflow bug. 2015-03-08 20:09:56 -04:00
David Renshaw
6cd61ff149 Prevent CPU amplification attack. 2015-03-03 10:46:42 -05:00
David Renshaw
86deb83f82 error messages that point to java.capnp 2015-02-16 12:46:35 -05:00
David Renshaw
2472fad686 add Make recipe for cross compiling capnpc-java to win32 2015-02-16 10:54:47 -05:00
David Renshaw
aa25559900 add version check 2014-11-29 08:50:43 -05:00
David Renshaw
57f8a5cdfc struct field upgrades 2014-11-17 17:39:16 -05:00
David Renshaw
a5f234136f more support for struct list upgrades 2014-11-16 21:17:56 -05:00
David Renshaw
6174de6744 builder upgrade from List(Primitive) to List(Struct) 2014-11-16 19:06:35 -05:00
David Renshaw
00cc63dfe8 reading double far pointers 2014-11-16 14:14:15 -05:00
David Renshaw
c25b96fe83 fill in some test data 2014-11-11 17:35:07 -05:00
David Renshaw
fd3efb080e add a Zeroing test and fix some bugs 2014-11-09 16:32:51 -05:00
David Renshaw
18b03eae8a list of generic structs 2014-10-29 10:28:25 -04:00
David Renshaw
46e5e77cc8 setters for fields of generic structs 2014-10-29 10:03:17 -04:00
David Renshaw
5f98572b7c setter method for constrained anypointer fields 2014-10-29 09:26:50 -04:00
David Renshaw
bf3384c926 simplification 2014-10-28 20:17:33 -04:00
David Renshaw
cba14cb6f6 set another field 2014-10-28 19:46:29 -04:00
David Renshaw
dabb9a6ee6 use wildcards 2014-10-28 19:43:25 -04:00
David Renshaw
a578dd1332 drat, this doesn't quite work 2014-10-28 18:23:51 -04:00
David Renshaw
3d8537521c adjust where the dot gets put in 2014-10-28 17:59:02 -04:00
David Renshaw
2557bd30c9 more 2014-10-28 17:34:54 -04:00
David Renshaw
71c77a97f8 a bit more cleanup 2014-10-28 17:28:28 -04:00
David Renshaw
5f4a5f79ed some cleanup 2014-10-28 17:27:02 -04:00
David Renshaw
20c20702e1 plugging things in 2014-10-28 15:54:40 -04:00
David Renshaw
252703ddfa progress 2014-10-28 14:28:49 -04:00
David Renshaw
6403f605aa update typeName and javaFullName to take capnp::Type 2014-10-28 13:17:02 -04:00
David Renshaw
4870faf255 init methods for generic fields 2014-10-28 12:51:01 -04:00
David Renshaw
77242cd15d getters 2014-10-28 11:47:29 -04:00
David Renshaw
2da0d65423 fewer type parameters 2014-10-28 09:21:45 -04:00
David Renshaw
b771c3baa4 reader factories 2014-10-27 21:36:57 -04:00
David Renshaw
4c2b7668f0 working with factories 2014-10-27 21:14:16 -04:00
David Renshaw
28b68ffcd2 parameterize the struct factory 2014-10-27 14:46:16 -04:00
David Renshaw
d1a2ce4049 a start on generics 2014-10-27 13:29:16 -04:00
David Renshaw
39eb2ed557 remove unused code 2014-10-27 10:57:44 -04:00
David Renshaw
3276d59dbd more cleanup 2014-10-27 09:57:13 -04:00
David Renshaw
8cd317c2b1 remove privateDecls 2014-10-27 09:53:41 -04:00
David Renshaw
bb6881d03f fill in setter test 2014-10-27 08:57:24 -04:00
David Renshaw
37516ab6d6 fix bug 2014-10-27 08:54:41 -04:00
David Renshaw
7357bc344e default text builder was broken 2014-10-26 19:24:30 -04:00
David Renshaw
10f775a11e some work on getWritableStructListPointer. still buggy 2014-10-26 18:56:58 -04:00
David Renshaw
29a51b067a get rid of bit0Offset 2014-10-26 10:13:12 -04:00
David Renshaw
9c5b64b98b get rid of struct list packing optimization 2014-10-26 09:31:09 -04:00
David Renshaw
8599ffc7a7 stop using getDependency() 2014-10-25 22:01:33 -04:00
David Renshaw
7c4d715421 extends -> superclasses 2014-10-25 16:30:21 -04:00
David Renshaw
fb239f612f fix a few more bugs 2014-10-18 21:25:38 -04:00
David Renshaw
26942d46c8 fix some more bugs 2014-10-17 20:53:51 -04:00
David Renshaw
fafb104401 fix one bug. there are more 2014-10-17 18:13:27 -04:00
David Renshaw
8e1de6012c make somewhat less buggy 2014-10-17 09:36:16 -04:00
David Renshaw
1db37b741d setStructPointer, setListPointer. still buggy 2014-10-16 18:54:11 -04:00
David Renshaw
2d7816fae4 a bit more in the empty struct test 2014-10-15 09:34:47 -04:00
David Renshaw
7bc197456d handle empty struct allocation 2014-10-14 20:17:07 -04:00
David Renshaw
26f1474fc0 _UNKNOWN -> _NOT_IN_SCHEMA 2014-10-12 09:41:36 -04:00
David Renshaw
610520d8e2 explicit IDs for java annotations 2014-10-12 09:20:42 -04:00
David Renshaw
c941f5960f FieldSize -> ElementSize 2014-10-11 09:25:31 -04:00
David Renshaw
f262701b4e java_support -> capnp 2014-10-10 10:21:46 -04:00
David Renshaw
03774fff34 add license comment to source files 2014-10-08 16:20:15 -04:00
David Renshaw
f4e7c33e93 update capnpc-java license 2014-10-08 16:02:44 -04:00
David Renshaw
7aead0ce75 preallocate StructList factories. remove makeListListFactoryArg 2014-10-08 13:05:48 -04:00
David Renshaw
6e9a325ca5 eradicate PointerBuilder 2014-10-08 12:22:58 -04:00
David Renshaw
b876c52ecd get rid of PointerReader 2014-10-08 11:12:52 -04:00
David Renshaw
1cef64e2da Text.factory, Data.factory 2014-10-08 11:00:22 -04:00
David Renshaw
dce3c46cf1 avoiding allocations of PointerReader and PointerBuilder 2014-10-08 09:24:48 -04:00
David Renshaw
4d842f0ef7 abstracting 2014-10-07 22:35:08 -04:00
David Renshaw
b4f34cb393 FromStructReader -> StructReader.Factory 2014-10-07 17:47:42 -04:00
David Renshaw
89ea97a401 inheritance for lists 2014-10-07 16:49:36 -04:00
David Renshaw
6495ab1da8 get the tests passing once again 2014-10-07 12:19:30 -04:00
David Renshaw
24e4183fc0 asReader 2014-10-07 12:19:29 -04:00
David Renshaw
25a537c323 bring up to date 2014-10-07 12:19:29 -04:00
David Renshaw
e05c743134 filling in the holes 2014-10-06 20:04:01 -04:00
David Renshaw
4773300ac3 enum defaults 2014-10-06 15:15:57 -04:00
David Renshaw
f84e1fa430 towards builder pointer defaults 2014-10-06 15:06:56 -04:00