Encode PropertyIsLike filter 'matchcase' is ignored

Description

When you encode a propertyIsLike filter with matchcase = false the matchcase is ignored in encoding:

FilterFactory2 ff = CommonFactoryFinder.getFilterFactory2(GeoTools.getDefaultHints());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
org.geotools.xml.Configuration configuration2 = new OGCConfiguration();
org.geotools.xml.Encoder encoder = new org.geotools.xml.Encoder(configuration2);

//make like filter
Filter likefilter = ff.like(ff.property("test"), "tEst1","*", "?", "/",false);
//encode
encoder.encode(likefilter, org.geotools.filter.v1_1.OGC.Filter, baos);
String s = baos.toString();
System.out.println("Propertyislike matchcase=false filter: /n" + s);

Result:
Propertyislike matchcase=false filter:<?xml version="1.0" encoding="UTF-8"?>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogcropertyIsLike escapeChar="/" singleChar="?" wildCard="*"><ogcropertyName>test</ogcropertyName><ogc:Literal>tEst1</ogc:Literal></ogcropertyIsLike></ogc:Filter>

Environment

None

Assignee

Unassigned

Reporter

codehaus

Triage

None

Components

Fix versions

Affects versions

Priority

Medium
Configure