Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.2.1
-
None
-
Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
Maven home: C:\java\apache-maven-3.9.1
Java version: 1.8.0_372, vendor: Temurin, runtime: C:\Program Files\Eclipse Adoptium\jdk-8.0.372.7-hotspot\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8) Maven home: C:\java\apache-maven-3.9.1 Java version: 1.8.0_372, vendor: Temurin, runtime: C:\Program Files\Eclipse Adoptium\jdk-8.0.372.7-hotspot\jre Default locale: en_US, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Description
The factory method ContentType.create(String, NameValuePair...) should make a defensive copy of its input array.
Other code paths already do so, intentionally or by side-effect: ContentType.withParameters(NameValuePair...)