netty5/codec-http/src
Norman Maurer 7aca99f986 DefaultHttpHeader.names().toArray(...) may throw ArrayStoreException
Motivation:

DefaultHttpHeader.names() exposes HTTP header names as a Set<String>. Converting the resulting set to an array using toArray(String[]) throws an exception: java.lang.ArrayStoreException: io.netty.util.AsciiString.

Modifications:

- Remove our custom implementation of toArray(...) (and others) by just extending AbstractCollection.
- Add unit test

Result:

Fixes [#7428].
2017-11-22 19:04:55 +01:00
..
main/java/io/netty/handler/codec Optimize DefaultHeaders#toString and implement HttpHeaders#toString 2017-11-22 08:42:59 +01:00
test DefaultHttpHeader.names().toArray(...) may throw ArrayStoreException 2017-11-22 19:04:55 +01:00