netty5/codec/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 DefaultHttpHeader.names().toArray(...) may throw ArrayStoreException 2017-11-22 19:04:55 +01:00
test Make methods 'static' where it possible 2017-10-21 14:59:26 +02:00