Commit graph

171 commits

Author SHA1 Message Date
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