OGR Plugin define attribute datatype incorrectly [Mostly Convert Integer to Byte]

Description

we have read Mapinfo Tab file in Geotools using JniOGRDataStoreFactory, but when we execute filter statement on feature collection it give some vague values so we decide to investigate it and found that it create some attributes with byte data type that originally are integer.
we have used the following code.

OGRDataStoreFactory factory = new JniOGRDataStoreFactory();
Map<String, String> connectionParams = new HashMap<String, String>();
connectionParams.put("DriverName", "MapInfo File");
connectionParams.put("DatasourceName", _FilePath);
DataStore store = factory.createDataStore(connectionParams);

SimpleFeatureSource featureSource = store.getFeatureSource(FilenameUtils.getBaseName(_FilePath));
SimpleFeatureCollection fc = featureSource.getFeatures();

SimpleFeatureIterator it = featureSource.getFeatures().features();
int iCount = 2;
while (it.hasNext()) {
SimpleFeature feature = it.next();
Collection<Property> properties = feature.getProperties();
System.out.println("ID:=" + iCount + ", HSDSCHThroughputTotalkbits="
+feature.getAttribute("HSDSCHThroughputTotalkbits").toString());
iCount++;
{{}}}

map.setTitle("Quickstart");
Layer layer = new FeatureLayer(fc, createPointStyle());
layer.setTitle(FilenameUtils.getBaseName(_FilePath));
map.addLayer(layer);
System.out.println(layer.getBounds().toString());
layer.setSelected(true);

we have attached two images Fig.1 and Fig.2

Fig.2:- It contains the console output , which shows the byte values that ranges from -127 to 128 but it has original values are in integer format and Geotool's OGRPlugin automatically converts it into Byte datatype.
Fig.1:- It Contains the original values exported from the Ogr2Ogr which exactly shows the integer values.

Note:- One more thing we have used Ogr2Ogr to Convert my MapinfoTab file to CSV it shows correct values , we have use OGR C# Wraper dll in .NET project it also gives the correct values.The problem is only in geotools . As Mapinfo tool also gives correct values

Attached Files:-
Tutorial.rar:- Sample Project for regenerate the bug
HSDPA.rar:- Input MapinfoTab File.
Fig.2:- Console output of attached project
Fig.1:- Mapinfo Output

Environment

Windows,Java JRE1.8

Assignee

Unassigned

Reporter

Shubham Goyal

Triage

None

Components

Fix versions

Affects versions

Priority

High
Configure