[
https://issues.apache.org/jira/browse/HTTPCORE-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14313415#comment-14313415
]
Sebb commented on HTTPCORE-395:
-------------------------------
The minimum Java version seems to me completely irrelevant, and anyway can be
found from the HC website.
Does the actual Java version refer to the version used to build HC?
Or the run-time version? I assume the latter.
But I'm not sure either is useful to the end user as part of the user agent
string.
However it may be useful to log the runtime Java version
> VersionInfo#getUserAgent reports incorrect Java version
> -------------------------------------------------------
>
> Key: HTTPCORE-395
> URL: https://issues.apache.org/jira/browse/HTTPCORE-395
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.4
> Reporter: Michael Osipov
>
> Currently {{VersionInfo#getUserAgent}} sets {{Java 1.5 minimum}} by default
> but both
> [HttpCore|http://hc.apache.org/httpcomponents-core-4.4.x/httpcore/project-summary.html]
> and
> [HttpClient|http://hc.apache.org/httpcomponents-client-4.4.x/httpclient/project-summary.html]
> have Java 1.6 now. Values are completely ignored.
> This needs to be determined at runtime. The best approach would be add a
> manifest property {{X-Compile-Target-JDK}} just like
> {{[commons-parent|http://svn.apache.org/viewvc/commons/proper/commons-parent/trunk/pom.xml?view=markup#l506]}}
> does. {{VersionInfo}} can be changed and report that information.
> Alternatively, this information can be completely dropped.
> The output now is
> {noformat}
> [http-8081-1] DEBUG org.apache.http.wire - http-outgoing-44 >> "User-Agent:
> Apache-HttpClient/4.4 (Java 1.5 minimum; Java/1.7.0_55)[\r][\n]"
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]