[mapguide-trac] #363: Expected MgInvalidArgumentException is not thrown in MgFeatureQueryOptions::AddFeatureProperty() when adding an empty property name.

MapGuide Open Source trac_mapguide at osgeo.org
Wed Dec 5 21:47:20 EST 2007


#363: Expected MgInvalidArgumentException is not thrown in
MgFeatureQueryOptions::AddFeatureProperty() when adding an empty property
name.
--------------------------+-------------------------------------------------
   Reporter:  jessicacao  |       Owner:  Tom Fukushima                            
       Type:  defect      |      Status:  new                                      
   Priority:  medium      |   Milestone:  2.0                                      
  Component:  General     |     Version:                                           
   Severity:  major       |    Keywords:  MgFeatureQueryOptions::AddFeatureProperty
External_id:  985087      |  
--------------------------+-------------------------------------------------
 Expected MgInvalidArgumentException is not thrown in
 MgFeatureQueryOptions::AddFeatureProperty() when adding an empty property
 name.[[BR]]

 Step to recur:[[BR]]

 1.      Construct a MgFeatureQueryOptions object.[[BR]]

 2.      Call AddFeatureProperty() with an empty string as argument.[[BR]]

 Sample code: [[BR]]


 MgFeatureQueryOptions featQueryOpt = new MgFeatureQueryOptions();[[BR]]


 //MgInvalidArgumentException expected. [[BR]]

 featQueryOpt.AddFeatureProperty("");[[BR]]


 Expect result: MgInvalidArgumentException[[BR]]

 Actual result:  No exception thrown[[BR]]

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/363>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list