You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Uwe Schindler (JIRA)" <ji...@apache.org> on 2013/01/27 16:13:12 UTC
[jira] [Created] (LUCENE-4725) Use Animal-Sniffer ANT task to
enforce JDK compatibility
Uwe Schindler created LUCENE-4725:
-------------------------------------
Summary: Use Animal-Sniffer ANT task to enforce JDK compatibility
Key: LUCENE-4725
URL: https://issues.apache.org/jira/browse/LUCENE-4725
Project: Lucene - Core
Issue Type: Bug
Components: general/build
Affects Versions: 4.1
Reporter: Uwe Schindler
Assignee: Uwe Schindler
While developing the fork of the forbidden-apis check, I recogized another very useful task to execute (in fact its similar to the forbidden-apis task, it just does the opposite - it only allows specific signatures).
The problem is in general: If the developer has a newer JDK version installed and builds Lucene/Solr against it, he can accidentally use method dignatures or classes not available in the compile target java version (in our case 1.6). This is especially useful for Mac users, who are enforced to use the JDK version shipped with the operating system.
The Animal-Sniffer ANT plugin can handle this for us (http://mojo.codehaus.org/animal-sniffer/animal-sniffer-ant-tasks/), available via IVY. The corresponding signatures are also available via IVY: http://mojo.codehaus.org/signatures/java16/
Like the forbidden APIs scanner it scans the byte code and fails the build if any signature is used that is not shipped with the compiler target JDK.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org