Thrift float type fixes for java & python
Thrift float type fixes for java & python

Summary:
Thrift handling for float type has a few bugs in java and python that I found
while working on porting support for floats to apache thrift.

First was an inconsistency in whether we support "wrong" (aka compact v1)
big-endian order for float bits for 32-bit floats in compact proto:
- only python supported writing floats this way (if v1 was turned on)
- only java & python supported reading floats this way (if v1 was turned on)
- c++ didn't support reading or writing this way

Fix: the whole big-endian double thing was a mistake that has caused a mess
there is no reason to intentionally repeat this mess for support float.

Second is that float support for compact protocol was incomplete anyway in java.
Fixed that and added a test to check it.

Test Plan: Added float compact unit tests for java

Reviewed By: alandau@fb.com

Subscribers: doug, alandau, bmatheny, yfeldblum

FB internal diff: D2123702

Signature: t1:2123702:1433362091:163cc28b86684d330ff70fd0bfa1bb1e583bcced

kangkot/fbthrift,soumith/fbthrift,guker/fbthrift,Orvid/fbthrift,Orvid/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,guker/fbthrift,maxwell-demon/fbthrift,SergeyMakarenko/fbthrift,raphaelamorim/fbthrift,maxwell-demon/fbthrift,raphaelamorim/fbthrift,sinjar666/fbthrift,HankFaan/fbthrift,SergeyMakarenko/fbthrift,maxwell-demon/fbthrift,kangkot/fbthrift,SergeyMakarenko/fbthrift,kangkot/fbthrift,HankFaan/fbthrift,LinusU/fbthrift,sinjar666/fbthrift,getyourguide/fbthrift,maxwell-demon/fbthrift,soumith/fbthrift,maxwell-demon/fbthrift,sinjar666/fbthrift,sinjar666/fbthrift,guker/fbthrift,HankFaan/fbthrift,maxwell-demon/fbthrift,LinusU/fbthrift,raphaelamorim/fbthrift,sinjar666/fbthrift,facebook/fbthrift,maxwell-demon/fbthrift,sinjar666/fbthrift,Orvid/fbthrift,Orvid/fbthrift,fengshao0907/fbthrift,Orvid/fbthrift,LinusU/fbthrift,kangkot/fbthrift,HankFaan/fbthrift,kangkot/fbthrift,soumith/fbthrift,chjp2046/fbthrift,raphaelamorim/fbthrift,raphaelamorim/fbthrift,soumith/fbthrift,guker/fbthrift,soumith/fbthrift,chjp2046/fbthrift,SergeyMakarenko/fbthrift,fengshao0907/fbthrift,kangkot/fbthrift,chjp2046/fbthrift,getyourguide/fbthrift,SergeyMakarenko/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,chjp2046/fbthrift,guker/fbthrift,facebook/fbthrift,getyourguide/fbthrift,soumith/fbthrift,LinusU/fbthrift,fengshao0907/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,fengshao0907/fbthrift,raphaelamorim/fbthrift,raphaelamorim/fbthrift,HankFaan/fbthrift,getyourguide/fbthrift,chjp2046/fbthrift,chjp2046/fbthrift,getyourguide/fbthrift,kangkot/fbthrift,sinjar666/fbthrift,facebook/fbthrift,sinjar666/fbthrift,chjp2046/fbthrift,SergeyMakarenko/fbthrift,HankFaan/fbthrift,soumith/fbthrift,LinusU/fbthrift,LinusU/fbthrift,getyourguide/fbthrift,guker/fbthrift,guker/fbthrift,HankFaan/fbthrift,facebook/fbthrift,guker/fbthrift,getyourguide/fbthrift,Orvid/fbthrift,getyourguide/fbthrift,HankFaan/fbthrift,getyourguide/fbthrift,Orvid/fbthrift,soumith/fbthrift,kangkot/fbthrift,LinusU/fbthrift,sinjar666/fbthrift,fengshao0907/fbthrift,chjp2046/fbthrift,chjp2046/fbthrift,Orvid/fbthrift,SergeyMakarenko/fbthrift,soumith/fbthrift,HankFaan/fbthrift,Orvid/fbthrift,maxwell-demon/fbthrift,HankFaan/fbthrift,maxwell-demon/fbthrift,raphaelamorim/fbthrift,fengshao0907/fbthrift,raphaelamorim/fbthrift,chjp2046/fbthrift,sinjar666/fbthrift,fengshao0907/fbthrift,facebook/fbthrift,guker/fbthrift,fengshao0907/fbthrift,getyourguide/fbthrift,HankFaan/fbthrift,soumith/fbthrift,kangkot/fbthrift,SergeyMakarenko/fbthrift,raphaelamorim/fbthrift,facebook/fbthrift,kangkot/fbthrift,fengshao0907/fbthrift,LinusU/fbthrift,SergeyMakarenko/fbthrift,chjp2046/fbthrift,maxwell-demon/fbthrift,guker/fbthrift,fengshao0907/fbthrift,facebook/fbthrift,LinusU/fbthrift,Orvid/fbthrift,soumith/fbthrift,SergeyMakarenko/fbthrift,Orvid/fbthrift,chjp2046/fbthrift,raphaelamorim/fbthrift,facebook/fbthrift,sinjar666/fbthrift,SergeyMakarenko/fbthrift,SergeyMakarenko/fbthrift,facebook/fbthrift,guker/fbthrift,maxwell-demon/fbthrift