#2236 Uri.encodeQuery throws UnsupportedOperationException

SlimerDude Fri 31 Jan 2014

Just a quickie,

Uri.encodeQuery throws java.lang.UnsupportedOperationException when handed an case insensitive map:

static Void main(Str[] args) {
    Uri.encodeQuery( Str:Str[:] { caseInsensitive = true } )
}

sys::UnsupportedErr: java.lang.UnsupportedOperationException
  fan.sys.Map$CIHashMap.keySet (Map.java:650)
  fan.sys.Map.keysIterator (Map.java:629)
  fan.sys.Uri.encodeQuery (Uri.java:87)

I'm using Java 1.6.0_43. I have an easy work around (copy to a case sensitive map!) but I thought I'd let people know.

brian Fri 31 Jan 2014

thanks for reporting - I pushed a fix

Login or Signup to reply.