Hi,
In Java 8, '_' will become a reserved keyword for lambda expressions.
It's already generate compiler warning:
[WARNING] bootstrap class path not set in conjunction with -source 1.6
xxx:[28,35] '_' used as an identifier
[WARNING] (use of '_' as an identifier might not be supported in future releases)
I maybe be the time to think about _() method future...
--
Éric Chatellier - Code Lutin
Tel: 02.40.50.29.28 - http://www.codelutin.com
Bonjour,
J'ai fait un petit parseur pour détecter les chaînes
I18n dans un code Java, mais basé sur la syntaxe Java (AST).
Par rapport au code précédent, il :
- ne détecte pas la chaîne dans les commentaire
- il détecte les formatage bizarre, par exemple :
String matraduction = _(
"chainesecondeligne");
Il est pour l'instant basé sur le projet javaparser [1]
parce que j'ai trouvé plus facilement la doc que
antlr ou javacc par exemple.
Voilà le code :
http://svn.nuiton.org/svn/sandbox/i18nastparsingtest/src/main/java/org/test…
À vos avis.
[1] : http://code.google.com/p/javaparser/
--
Éric Chatellier <chatellier(a)codelutin.com>
Tel: 02.40.50.29.28
http://www.codelutin.com
The I18n team is pleased to announce the i18n-3.0 release!
Nuiton i18n tools
Documentation of the project can be found here:
https://maven-site.nuiton.org/i18n
Important Note
--------------
This major version makes it now compatible with java 1.8 (see issue 2687).
The I18n class api has changed, follow the migration guide to use this new version:
https://maven-site.nuiton.org/i18n/migrate.html
Changes
-------
Changes in this version include:
New features:
o Rename I18n methods to be compatible with jre 8 Issue: 2687. Thanks to Tony Chemit. Resolved by tchemit.
o Add new AST parser for java file Issue: 1586. Thanks to Éric Chatellier. Resolved by echatellier.
Fixed Bugs:
o Commented keys are parsed in GWT parser mojo Issue: 1535. Thanks to Florian DESBOIS. Resolved by fdesbois.
Changes:
o Updates mavenpom to 4.7 Issue: 3030. Thanks to Tony Chemit. Resolved by tchemit.
o Updates xwork-core to 2.3.16 Issue: 3026. Thanks to Tony Chemit. Resolved by tchemit.
o Updates plexus-utils to 3.0.17 Issue: 3025. Thanks to Tony Chemit. Resolved by tchemit.
o Update to commons-collections4 Issue: 2941. Thanks to Éric Chatellier. Resolved by tchemit.
o Remove deprecated parser (jsp and tapestry) Issue: 3020. Thanks to Tony Chemit. Resolved by tchemit.
Maven artifacts
---------------
Artifacts are deployed in Maven Central Repository
http://repo1.maven.org/maven2/
Find us at
* http://search.maven.org/#artifactdetails|org.nuiton|i18n|3.0|jar
Have fun!
-I18n team
--
Tony Chemit
--------------------
tél: +33 (0) 2 40 50 29 28
http://www.codelutin.com
email: chemit(a)codelutin.com
twitter: https://twitter.com/tchemit