Option.createTargetURIOptions(new URI("coap://[2001:db8::2:1]"));
//and "coap://[2001:db8::2:1]/" also
throws
[StringOption] Value length for URI_PATH option must be between 1 and 270 but is 0
de.uniluebeck.itm.spitfire.nCoap.message.options.InvalidOptionException: [StringOption] Value length for URI_PATH option must be between 1 and 270 but is 0
at de.uniluebeck.itm.spitfire.nCoap.message.options.StringOption.setValue(StringOption.java:52)
at de.uniluebeck.itm.spitfire.nCoap.message.options.StringOption.<init>(StringOption.java:37)
at de.uniluebeck.itm.spitfire.nCoap.message.options.Option.createSeparatedOptions(Option.java:327)
at de.uniluebeck.itm.spitfire.nCoap.message.options.Option.createTargetURIOptions(Option.java:119)
at de.uniluebeck.itm.spitfire.nCoap.message.options.OptionTest$UriEncodeTest.test(OptionTest.java:52)
at de.uniluebeck.itm.spitfire.nCoap.message.options.OptionTest.testCreateTargetURIOptions(OptionTest.java:30)
throws
Cause: