[
https://issues.apache.org/jira/browse/LUCENE-3574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13149679#comment-13149679
]
Shai Erera commented on LUCENE-3574:
------------------------------------
Exactly (I think that's what I meant) -- we detect the Java version as best we
can and store it in a constant JAVA_VERSION. It can be compared to JAVA_6/7
thru an atLeast() API, like JAVA_VERSION.atLeast(JAVA_7).
The code in 3.5 will only know to detect up to Java 7, while the code in 5.2
will know to detect Java 8.
Wouldn't that work?
> Add some more constants for newer Java versions to Constants.class, remove
> outdated ones.
> -----------------------------------------------------------------------------------------
>
> Key: LUCENE-3574
> URL: https://issues.apache.org/jira/browse/LUCENE-3574
> Project: Lucene - Java
> Issue Type: New Feature
> Components: core/other
> Reporter: Uwe Schindler
> Assignee: Uwe Schindler
> Fix For: 3.5, 4.0
>
> Attachments: LUCENE-3574-3x.patch
>
>
> Preparation for LUCENE-3235:
> This adds constants to quickly detect Java6 and Java7 to Constants.java. It
> also deprecated and removes the outdated historical Java versions.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]