Fix for previous Java commit.
Fix for previous Java commit.

optimization would cause vtable fields from previous tables to be written.

Bug: 19046968
Change-Id: I781f7bcbceeaec0b499d4f1e4e5e8a1e750e0707
Tested: on Linux.

bog-dan-ro/flatbuffers,jekinchen/flatjni,jekinchen/flatjni,pakoito/flatbuffers,royalharsh/flatbuffers,yiliaofan/flatbuffers,lulufei/flatbuffers,hryang/flatbuffers,FrankStain/flatbuffers,MiCHiLU/flatbuffers,alexames/flatbuffers,evolutional/flatbuffers,jasonstubbs/flatbuffers,guker/flatbuffers,rw/flatbuffers,EricLagergren/flatbuffers,alarouche/flatbuffers,marschall/flatbuffers,ajrulez/flatbuffers,vitalyisaev2/flatbuffers,google/flatbuffers,MiCHiLU/flatbuffers,yaolinz/flatbuffers,royalharsh/flatbuffers,xiaPier/flatbuffers,layzerar/flatbuffers,google/flatbuffers,SinbadFreedom/FlatBuffer,iperry/flatbuffers,stewartmiles/flatbuffers,robertfsegal/flatbuffers,chobie/flatbuffers,arbitrary-cat/flatbuffers,kiyoto-suzuki/flatbuffers,royalharsh/flatbuffers,DreamHill/flatbuffers,RyanTech/flatbuffers,eproxus/flatbuffers,felixguendling/flatbuffers,evanw/flatbuffers,iperry/flatbuffers,lulufei/flatbuffers,wheelcomplex/flatbuffers,fuchsia-mirror/third_party-flatbuffers,JackLian/flatbuffers,bog-dan-ro/flatbuffers,mormegil-cz/flatbuffers,onecityuni/flatbuffers,wheelcomplex/flatbuffers,i17c/flatbuffers,fuchsia-mirror/third_party-flatbuffers,Volcanoscar/flatbuffers,FrankStain/flatbuffers,rw/flatbuffers,DavadDi/flatbuffers,jekinchen/flatjni,royalharsh/flatbuffers,hanhailong/flatbuffers,chenkai036/flatbuffers,pjulien/flatbuffers,yaolinz/flatbuffers,MiCHiLU/flatbuffers,robertfsegal/flatbuffers,evanw/flatbuffers,layzerar/flatbuffers,RAldrich/flatbuffers,evanw/flatbuffers,aeneid/flatbuffers,ThomasBrixLarsen/flatbuffers,eburkitt/flatbuffers,wuyan6293/flatbuffers,Reimerei/flatbuffers,RyanTech/flatbuffers,hanhailong/flatbuffers,alarouche/flatbuffers,1yvT0s/flatbuffers,jekinchen/flatjni,alexames/flatbuffers,rw/flatbuffers,evanw/flatbuffers,eburkitt/flatbuffers,rw/flatbuffers,cogumbreiro/flatbuffers,pakoito/flatbuffers,vitalyisaev2/flatbuffers,wingahi/flatbuffers,zarianw/flatbuffers,stewartmiles/flatbuffers,benssson/flatbuffers,dwillmer/flatbuffers,alexames/flatbuffers,xudeheng/flatbuffers,davidnasar/flatbuffers,evolutional/flatbuffers,brunoqc/flatbuffers,tieusangaka/flatbuffers,chenkai036/flatbuffers,KeronTeam/flatbuffers,endorph-soft/flatbuffers,google/flatbuffers,DavadDi/flatbuffers,yaolinz/flatbuffers,RAldrich/flatbuffers,guker/flatbuffers,zhuxiaohao/flatbuffers,1yvT0s/flatbuffers,jackyglony/flatbuffers,SinbadFreedom/FlatBuffer,FrankStain/flatbuffers,splhack/flatbuffers,EricLagergren/flatbuffers,vitalyisaev2/flatbuffers,DavadDi/flatbuffers,DreamHill/flatbuffers,hanhailong/flatbuffers,zarianw/flatbuffers,royalharsh/flatbuffers,tieusangaka/flatbuffers,stewartmiles/flatbuffers,Volcanoscar/flatbuffers,jasonstubbs/flatbuffers,endorph-soft/flatbuffers,eburkitt/flatbuffers,arbitrary-cat/flatbuffers,zarianw/flatbuffers,royalharsh/flatbuffers,fengshao0907/flatbuffers,alexames/flatbuffers,wuyan6293/flatbuffers,stewartmiles/flatbuffers,kiyoto-suzuki/flatbuffers,robertfsegal/flatbuffers,SinbadFreedom/FlatBuffer,pakoito/flatbuffers,JackLian/flatbuffers,pjulien/flatbuffers,MiCHiLU/flatbuffers,zarianw/flatbuffers,alexames/flatbuffers,kusharami/flatbuffers,chenkai036/flatbuffers,eproxus/flatbuffers,jbrads/flatbuffers,wheelcomplex/flatbuffers,google/flatbuffers,FrankStain/flatbuffers,google/flatbuffers,tieusangaka/flatbuffers,wheelcomplex/flatbuffers,DavadDi/flatbuffers,alarouche/flatbuffers,wingahi/flatbuffers,endorph-soft/flatbuffers,hanhailong/flatbuffers,wingahi/flatbuffers,eproxus/flatbuffers,google/flatbuffers,hgl888/flatbuffers,benssson/flatbuffers,chenkai036/flatbuffers,vanloswang/flatbuffers,hryang/flatbuffers,eburkitt/flatbuffers,benssson/flatbuffers,splhack/flatbuffers,kadirahq/flatbuffers,wuyan6293/flatbuffers,cogumbreiro/flatbuffers,DreamHill/flatbuffers,evanw/flatbuffers,fengshao0907/flatbuffers,robertfsegal/flatbuffers,dwillmer/flatbuffers,yiliaofan/flatbuffers,pjulien/flatbuffers,yaolinz/flatbuffers,JackLian/flatbuffers,brunoqc/flatbuffers,jasonstubbs/flatbuffers,marschall/flatbuffers,madvay/flatbuffers,kiyoto-suzuki/flatbuffers,ajrulez/flatbuffers,KeronTeam/flatbuffers,xiaPier/flatbuffers,hgl888/flatbuffers,FrankStain/flatbuffers,Belxjander/flatbuffers,wuyan6293/flatbuffers,madvay/flatbuffers,chenkai036/flatbuffers,MiCHiLU/flatbuffers,vanloswang/flatbuffers,google/flatbuffers,benssson/flatbuffers,KeronTeam/flatbuffers,endorph-soft/flatbuffers,zhuxiaohao/flatbuffers,iperry/flatbuffers,alexames/flatbuffers,yaolinz/flatbuffers,stewartmiles/flatbuffers,jekinchen/flatjni,davidnasar/flatbuffers,JackLian/flatbuffers,zhuxiaohao/flatbuffers,endorph-soft/flatbuffers,xudeheng/flatbuffers,i17c/flatbuffers,alexames/flatbuffers,radent/flatbuffers,FrankStain/flatbuffers,kiyoto-suzuki/flatbuffers,guker/flatbuffers,pjulien/flatbuffers,uus169/flatbuffers,arbitrary-cat/flatbuffers,kadirahq/flatbuffers,chenkai036/flatbuffers,chobie/flatbuffers,evanw/flatbuffers,Reimerei/flatbuffers,zarianw/flatbuffers,zarianw/flatbuffers,pakoito/flatbuffers,iperry/flatbuffers,Belxjander/flatbuffers,yaolinz/flatbuffers,radent/flatbuffers,lulufei/flatbuffers,alexames/flatbuffers,madvay/flatbuffers,stewartmiles/flatbuffers,endorph-soft/flatbuffers,DreamHill/flatbuffers,wuyan6293/flatbuffers,splhack/flatbuffers,madvay/flatbuffers,kusharami/flatbuffers,uus169/flatbuffers,SinbadFreedom/FlatBuffer,brunoqc/flatbuffers,bog-dan-ro/flatbuffers,dwillmer/flatbuffers,1yvT0s/flatbuffers,rw/flatbuffers,stewartmiles/flatbuffers,iperry/flatbuffers,uus169/flatbuffers,chobie/flatbuffers,google/flatbuffers,brunoqc/flatbuffers,evolutional/flatbuffers,pjulien/flatbuffers,davidnasar/flatbuffers,RAldrich/flatbuffers,mormegil-cz/flatbuffers,jekinchen/flatjni,kadirahq/flatbuffers,SinbadFreedom/FlatBuffer,Belxjander/flatbuffers,i17c/flatbuffers,jbrads/flatbuffers,lulufei/flatbuffers,mormegil-cz/flatbuffers,endorph-soft/flatbuffers,FrankStain/flatbuffers,fuchsia-mirror/third_party-flatbuffers,alarouche/flatbuffers,vanloswang/flatbuffers,kadirahq/flatbuffers,Reimerei/flatbuffers,xiaPier/flatbuffers,jekinchen/flatjni,madvay/flatbuffers,xiaPier/flatbuffers,tieusangaka/flatbuffers,rw/flatbuffers,fengshao0907/flatbuffers,jbrads/flatbuffers,alexames/flatbuffers,bog-dan-ro/flatbuffers,JackLian/flatbuffers,robertfsegal/flatbuffers,tieusangaka/flatbuffers,KeronTeam/flatbuffers,fuchsia-mirror/third_party-flatbuffers,hgl888/flatbuffers,hanhailong/flatbuffers,stewartmiles/flatbuffers,fuchsia-mirror/third_party-flatbuffers,felixguendling/flatbuffers,zhuxiaohao/flatbuffers,stewartmiles/flatbuffers,alexames/flatbuffers,RyanTech/flatbuffers,vanloswang/flatbuffers,alexames/flatbuffers,davidnasar/flatbuffers,uus169/flatbuffers,hgl888/flatbuffers,eproxus/flatbuffers,dwillmer/flatbuffers,splhack/flatbuffers,jasonstubbs/flatbuffers,aeneid/flatbuffers,RAldrich/flatbuffers,layzerar/flatbuffers,chobie/flatbuffers,1yvT0s/flatbuffers,ThomasBrixLarsen/flatbuffers,google/flatbuffers,zarianw/flatbuffers,bog-dan-ro/flatbuffers,JackLian/flatbuffers,fuchsia-mirror/third_party-flatbuffers,arbitrary-cat/flatbuffers,ThomasBrixLarsen/flatbuffers,xiaPier/flatbuffers,hryang/flatbuffers,davidnasar/flatbuffers,evolutional/flatbuffers,kusharami/flatbuffers,fengshao0907/flatbuffers,stewartmiles/flatbuffers,felixguendling/flatbuffers,jasonstubbs/flatbuffers,Volcanoscar/flatbuffers,EricLagergren/flatbuffers,fuchsia-mirror/third_party-flatbuffers,pakoito/flatbuffers,chobie/flatbuffers,radent/flatbuffers,bog-dan-ro/flatbuffers,xudeheng/flatbuffers,wingahi/flatbuffers,jbrads/flatbuffers,rw/flatbuffers,google/flatbuffers,wuyan6293/flatbuffers,MiCHiLU/flatbuffers,evolutional/flatbuffers,jackyglony/flatbuffers,cogumbreiro/flatbuffers,MiCHiLU/flatbuffers,radent/flatbuffers,endorph-soft/flatbuffers,zhuxiaohao/flatbuffers,hryang/flatbuffers,RAldrich/flatbuffers,pjulien/flatbuffers,EricLagergren/flatbuffers,kusharami/flatbuffers,KeronTeam/flatbuffers,xiaPier/flatbuffers,evolutional/flatbuffers,ajrulez/flatbuffers,uus169/flatbuffers,felixguendling/flatbuffers,pjulien/flatbuffers,yiliaofan/flatbuffers,evolutional/flatbuffers,onecityuni/flatbuffers,yiliaofan/flatbuffers,dwillmer/flatbuffers,alarouche/flatbuffers,jasonstubbs/flatbuffers,splhack/flatbuffers,google/flatbuffers,rw/flatbuffers,wheelcomplex/flatbuffers,yiliaofan/flatbuffers,wheelcomplex/flatbuffers,rw/flatbuffers,felixguendling/flatbuffers,wheelcomplex/flatbuffers,ThomasBrixLarsen/flatbuffers,eburkitt/flatbuffers,google/flatbuffers,benssson/flatbuffers,1yvT0s/flatbuffers,mormegil-cz/flatbuffers,radent/flatbuffers,jackyglony/flatbuffers,1yvT0s/flatbuffers,wingahi/flatbuffers,Reimerei/flatbuffers,EricLagergren/flatbuffers,dwillmer/flatbuffers,marschall/flatbuffers,ajrulez/flatbuffers,chobie/flatbuffers,Reimerei/flatbuffers,google/flatbuffers,i17c/flatbuffers,ThomasBrixLarsen/flatbuffers,mormegil-cz/flatbuffers,splhack/flatbuffers,mormegil-cz/flatbuffers,hanhailong/flatbuffers,marschall/flatbuffers,brunoqc/flatbuffers,Belxjander/flatbuffers,fuchsia-mirror/third_party-flatbuffers,onecityuni/flatbuffers,xudeheng/flatbuffers,tieusangaka/flatbuffers,iperry/flatbuffers,brunoqc/flatbuffers,RyanTech/flatbuffers,google/flatbuffers,marschall/flatbuffers,SinbadFreedom/FlatBuffer,jackyglony/flatbuffers,jbrads/flatbuffers,jackyglony/flatbuffers,FrankStain/flatbuffers,alexames/flatbuffers,jbrads/flatbuffers,guker/flatbuffers,vitalyisaev2/flatbuffers,rw/flatbuffers,fengshao0907/flatbuffers,layzerar/flatbuffers,kusharami/flatbuffers,RAldrich/flatbuffers,eproxus/flatbuffers,hgl888/flatbuffers,i17c/flatbuffers,chenkai036/flatbuffers,kiyoto-suzuki/flatbuffers,bog-dan-ro/flatbuffers,SinbadFreedom/FlatBuffer,chenkai036/flatbuffers,hryang/flatbuffers,RyanTech/flatbuffers,xudeheng/flatbuffers,hryang/flatbuffers,zarianw/flatbuffers,Reimerei/flatbuffers,chobie/flatbuffers,Belxjander/flatbuffers,pjulien/flatbuffers,kiyoto-suzuki/flatbuffers,rw/flatbuffers,layzerar/flatbuffers,RyanTech/flatbuffers,zhuxiaohao/flatbuffers,eburkitt/flatbuffers,DavadDi/flatbuffers,KeronTeam/flatbuffers,aeneid/flatbuffers,wingahi/flatbuffers,guker/flatbuffers,wheelcomplex/flatbuffers,DavadDi/flatbuffers,rw/flatbuffers,evolutional/flatbuffers,jasonstubbs/flatbuffers,kadirahq/flatbuffers,davidnasar/flatbuffers,endorph-soft/flatbuffers,aeneid/flatbuffers,google/flatbuffers,xudeheng/flatbuffers,kadirahq/flatbuffers,evanw/flatbuffers,eburkitt/flatbuffers,evolutional/flatbuffers,felixguendling/flatbuffers,robertfsegal/flatbuffers,ajrulez/flatbuffers,iperry/flatbuffers,vanloswang/flatbuffers,chobie/flatbuffers,eproxus/flatbuffers,jbrads/flatbuffers,stewartmiles/flatbuffers,evolutional/flatbuffers,iperry/flatbuffers,jasonstubbs/flatbuffers,alarouche/flatbuffers,kiyoto-suzuki/flatbuffers,hgl888/flatbuffers,Reimerei/flatbuffers,benssson/flatbuffers,stewartmiles/flatbuffers,ajrulez/flatbuffers,evanw/flatbuffers,cogumbreiro/flatbuffers,cogumbreiro/flatbuffers,uus169/flatbuffers,guker/flatbuffers,pjulien/flatbuffers,jackyglony/flatbuffers,benssson/flatbuffers,jekinchen/flatjni,splhack/flatbuffers,marschall/flatbuffers,jbrads/flatbuffers,evolutional/flatbuffers,vanloswang/flatbuffers,chenkai036/flatbuffers,aeneid/flatbuffers,royalharsh/flatbuffers,royalharsh/flatbuffers,chenkai036/flatbuffers,lulufei/flatbuffers,aeneid/flatbuffers,kiyoto-suzuki/flatbuffers,pakoito/flatbuffers,pjulien/flatbuffers,DreamHill/flatbuffers,Belxjander/flatbuffers,alexames/flatbuffers,onecityuni/flatbuffers,eburkitt/flatbuffers,DreamHill/flatbuffers,arbitrary-cat/flatbuffers,endorph-soft/flatbuffers,vitalyisaev2/flatbuffers,pjulien/flatbuffers,alexames/flatbuffers,cogumbreiro/flatbuffers,MiCHiLU/flatbuffers,yiliaofan/flatbuffers,evolutional/flatbuffers,i17c/flatbuffers,royalharsh/flatbuffers,royalharsh/flatbuffers,stewartmiles/flatbuffers,jekinchen/flatjni,ThomasBrixLarsen/flatbuffers,fengshao0907/flatbuffers,evolutional/flatbuffers,Volcanoscar/flatbuffers,SinbadFreedom/FlatBuffer,onecityuni/flatbuffers,alexames/flatbuffers,jekinchen/flatjni,EricLagergren/flatbuffers,EricLagergren/flatbuffers,Volcanoscar/flatbuffers,vitalyisaev2/flatbuffers,lulufei/flatbuffers,kadirahq/flatbuffers,benssson/flatbuffers,pjulien/flatbuffers,EricLagergren/flatbuffers,layzerar/flatbuffers,Volcanoscar/flatbuffers,vitalyisaev2/flatbuffers,kadirahq/flatbuffers,kiyoto-suzuki/flatbuffers,vitalyisaev2/flatbuffers,bog-dan-ro/flatbuffers,splhack/flatbuffers,layzerar/flatbuffers