You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2015/02/09 13:45:34 UTC

[jira] [Created] (HTTPCORE-395) VersionInfo#getUserAgent reports incorrect Java version

Michael Osipov created HTTPCORE-395:
---------------------------------------

             Summary: 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org