Hi Benson, If you use String#format without an explicit Locale, its forbidden because not platform independent, which is a requirement for an library like Lucene. If you really know for sure that you want to use the default locale, add Locale.getDefault() explicit. Forbidden checker mentions that fact when it reports the error. Lucene 5 (trunk) is based on Java 7, Lucene 4 is based on Java 6.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: Benson Margulies [mailto:bimargul...@gmail.com] > Sent: Wednesday, February 05, 2014 1:46 PM > To: dev@lucene.apache.org > Subject: Why is String.format[] forbidden? > > Or, more specifically, what's the minimum JVM for 4.x versus 5.x? I had the > idea that even 4.x required 1.6. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional > commands, e-mail: dev-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org