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
Showing
- src/idl_gen_general.cpp 10 additions, 3 deletionssrc/idl_gen_general.cpp
- tests/MyGame/Example/Any.cs 2 additions, 1 deletiontests/MyGame/Example/Any.cs
- tests/MyGame/Example/Any.java 2 additions, 1 deletiontests/MyGame/Example/Any.java
- tests/MyGame/Example/Color.cs 2 additions, 1 deletiontests/MyGame/Example/Color.cs
- tests/MyGame/Example/Color.java 2 additions, 1 deletiontests/MyGame/Example/Color.java
- tests/MyGame/Example/Monster.cs 1 addition, 1 deletiontests/MyGame/Example/Monster.cs
- tests/MyGame/Example/Monster.go 0 additions, 2 deletionstests/MyGame/Example/Monster.go
- tests/MyGame/Example/Monster.java 1 addition, 1 deletiontests/MyGame/Example/Monster.java
- tests/MyGame/Example/Stat.cs 1 addition, 1 deletiontests/MyGame/Example/Stat.cs
- tests/MyGame/Example/Stat.java 1 addition, 1 deletiontests/MyGame/Example/Stat.java
- tests/MyGame/Example/Test.cs 1 addition, 1 deletiontests/MyGame/Example/Test.cs
- tests/MyGame/Example/Test.java 1 addition, 1 deletiontests/MyGame/Example/Test.java
- tests/MyGame/Example/Vec3.cs 1 addition, 1 deletiontests/MyGame/Example/Vec3.cs
- tests/MyGame/Example/Vec3.java 1 addition, 1 deletiontests/MyGame/Example/Vec3.java
Loading
Please register or sign in to comment