问题
Currently our applications runs with Spring Data Solr + Apache Solr 5.3 + Java 8
We are upgrading our systems to Java 11. Does Spring Data Solr & Apache Solr latest version support Java 11 ?
回答1:
Solr 7.6 supports "Java 8 or greater". However . . . .
- As per the Solr News it looks like 10 is tested and supported
- Java is generally backwards compatible although Java 11 release notes might suggest has some backwards compatibility issues that might trip folks up in general
- This ticket in the Solr Apache JIRA indicates that "Upgrading to a more recent Java (JDK 11?)" is open and unresolved
- More definitively: As of late 2018, Java 11 was not yet recommended according to the good folks at LucidWorks. "The recommendation is to stay with JDK-8 until the Apache project officially supports JDK-11."
Based on the above it sounds like Java 8 is the safe bet, 10 might work but is risky and 11 is "right out" (h/t to Monty Python and the Holy Grail)
来源:https://stackoverflow.com/questions/54350573/does-solr-7-x-have-support-for-java-11