gml:NullType fails to parse

Description

Using the following get feature request (slightly different than the inoic url used in wfs test case):

http://webservices.ionicsoft.com/ionicweb/wfs/BOSTON_SHAPE?version=1.0.0&request=getfeature&typename=wfs:hydro - http://webservices.ionicsoft.com/ionicweb/wfs/BOSTON_SHAPE?version=1.0.0&request=getfeature&typename=wfs:hydro

the GML result contains a gml:NullType element as follows:

<gml:boundedBy>
<gml:null>unavailable</gml:null>
</gml:boundedBy>

GMLSchema.GMLNullType.getValue incorrectly uses Arrays.binarySearch to determine legal enum values for the NullType. According to binarySearch javadoc, the method signature used is not approriate for Strings. A custom Comparator must be supplied.

A similar test is used elsewhere that also are probably failing. The attached shows a possible fix for getValue only. Perhaps there is a better method other than binarySearch to determine legal enum values.

Environment

None

Activity

Show:
codehaus
April 10, 2015, 2:53 PM

CodeHaus Comment From: jgarnett - Time: Wed, 26 Oct 2005 15:22:53 -0500
---------------------
Changed Fix Versions, apparently this is still unfixed.

codehaus
April 10, 2015, 2:53 PM

CodeHaus Comment From: jgarnett - Time: Wed, 26 Oct 2005 15:24:29 -0500
---------------------
Apparently still unfixed - please use Fix Version to mark actual fixes.

Assignee

Jody Garnett

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

High
Configure