lakedaemon
cd1493b082
sharing the Flatbuffers warning
2016-05-26 15:26:58 +02:00
Mormegil
25c99273d3
[Issue 252] Add type cast for default enum values in C#
...
When creating a CreateXxx(...) method for a simple table type,
enum-type fields with a non-zero default must have an explicit
cast for the respective argument default value, because in C#,
there is an implicit cast from int to an enum only for 0.
Also, added an example of such type into the example monster_test
type, so that we test this feature.
2015-08-11 18:07:38 +02:00
Advay Mengle
557c57eb9d
Seal all classes in Java/C#
...
Makes enums/structs/tables unsubclassable (final or sealed) and
prevents instantiation of enum classes (which are solely static
constants).
Tested (Mac OS 10.10.2):
1. run flattests
2. cd tests && ../flatc -c monster_test.fbs && ../flatc -j
monster_test.fbs && ../flatc -g monster_test.fbs && ../flatc -n
monster_test.fbs # Note deltas for C# and Java.
3. ./JavaTest.sh
**Breaking api change**
Change-Id: Ie008c941c36d212690da58ddc72c9b228eb7a093
2015-04-10 11:20:19 -07:00
Gabriel Martinez
048638a971
Add enum name lookup method to Java/C# enums
...
Tested: on Linux for Java and C#
Bug: 15781151
Change-Id: I7cb97bcc01d986cac2b24aaf7cb29521ddaa2f6b
2014-09-22 15:10:48 -07:00
Wouter van Oortmerssen
350011f581
Fixed a bugs in the Java runtime that could cause an index out of bounds exception.
...
Tested: on Windows.
Change-Id: I0d4cdafc21690eb9a509ba31f21e80dacfb602ff
2014-07-02 14:39:58 -07:00
Wouter van Oortmerssen
26a30738a4
Initial commit of the FlatBuffers code.
...
Change-Id: I4c9f0f722490b374257adb3fec63e44ae93da920
Tested: using VS2010 / Xcode / gcc on Linux.
2014-06-10 13:53:28 -07:00