diff options
author | Alex Clayton <alex.clayton@isode.com> | 2015-07-13 14:24:33 (GMT) |
---|---|---|
committer | Nick Hudson <nick.hudson@isode.com> | 2015-07-20 15:15:40 (GMT) |
commit | b429b47cf98881d9335ca41c93afc5f7fe4f7705 (patch) | |
tree | 8680114d2d298efd429789049facabe8f030b090 /README | |
parent | de14a6ae530f450dc89493d0bc2f3d1100e4eeba (diff) | |
download | stroke-b429b47cf98881d9335ca41c93afc5f7fe4f7705.zip stroke-b429b47cf98881d9335ca41c93afc5f7fe4f7705.tar.bz2 |
Add StringIndexOutOfBounds catch to IDNA
When run with java 7 class IDNA.getEncoded was throwing a StringIndexOutOfBounds exception if it was passed a String begining with '.isode'. This has the knock on effect of some of one of the isode MLC tests failing. This was caused by IDN.toAscii throwing the exception, when it should only thrown IllegalArgumentException.
Java 7 is no longer supported so I can't raise a bug for this, a fix for stroke is easy though, just add the StringIndexOutOfBoundException to the catch block.
Test-information:
Ran the tests that were failing in eclipse on my machine (which runs java 7) tests now all passed correctly.
Sanity test that tests still passed when run on command line against java 8.
Ran the Stroke JUnit test against the code. Tests all passed when using latest version of java 7 (7_79) and when using java 8.
Change-Id: Ifc9c830be7a0e5c9e5f2330a6782eff2401f18cb
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions