Commit Graph
910 Commits
Author SHA1 Message Date
Jan Lahoda d4b4a92302 Changes to the lombok annotations processor, forcing the java processing environment into doing multiple rounds and disabling certain reparses in netbeans. Thanks to Jan Lahoda for researching this issue and supplying us with a patch. 2011-07-18 23:35:02 +02:00
grootjans 931959c89a Fixes issue 232, now we also patch dom.SingleVariableDecls. Fixes val import disappearing when organizing imports in Eclipse, when using val in a foreach. 2011-07-18 22:45:48 +02:00
Reinier Zwitserloot 43d938a895 Updated .gitignore to ignore only the things we meant, i.e. with 'debug' we meant the top-level debug dir, not any file named debug. 2011-07-18 22:13:35 +02:00
Roel Spilker 7eef1fb7e1 UPdated changelog for the equals/hashCode/canEqual fix (issue #240) 2011-07-18 21:15:12 +02:00
Roel Spilker 4dfa3b7004 There's now 1 test suite that runs all tests, and 'ant eclipse' will make a launch config that adds the appropriate -javaagent VM param to ensure the runWithEclipse tests work. 2011-07-18 21:11:37 +02:00
Roel Spilker 83e2fb5e00 Now either all or none of equals/hashCode/canEqual is generated. Fixes issue 240. 2011-07-18 21:05:00 +02:00
Reinier Zwitserloot aa1a0e7ac8 The site's lombok v. vanilla java examples included lombok annotations on the vanilla java side. Fabrizio Guidici found this one. 2011-07-14 14:44:25 +02:00
peichhorn 68b079d312 fixed Issue 233:
Javac parser handles ";" (empty statements) as empty blocks with an invalid position. Thats why delomok replaces ";" with "{}". This gets an issue when you use this in an interface, since interfaces are not allowed to have initializer blocks.
2011-07-14 10:42:42 +02:00
Reinier Zwitserloot 4b9a8142d0 Another trivial website typo. 2011-07-04 15:49:47 +02:00
Reinier Zwitserloot 789f358c09 Updated documentation of SneakyThrows to remove remark about needing lombok.jar at runtime. 2011-06-30 18:21:30 +02:00
Reinier Zwitserloot c985950989 Added a note about serialVersionUID and @Synchronized to the feature docs. 2011-06-30 16:34:42 +02:00
Reinier Zwitserloot d5d7922801 A 'final' was missing in the vanilla version of the 'val' usecase. 2011-06-29 01:33:26 +02:00
Reinier Zwitserloot eec0b6ff34 Whoops, the titles on 3 feature pages were '@Data' instead of something more appropriate. 2011-06-29 01:32:09 +02:00
peichhorn 917518bbea fixed type mismatch in lazy getter example (issue 223)
note: this example shows how lazy getter would work once issue 160 is no more
2011-06-22 09:52:00 +02:00
Reinier Zwitserloot 865b7dbc6a changelog fix number 3 of the day. 2011-06-21 16:08:26 +02:00
Reinier Zwitserloot b427ca92fa And another typo in the changelog fixed. 2011-06-21 16:06:13 +02:00
Reinier Zwitserloot 3478ba2bfb Typoed it's. git blame says I did it. I conclude I'm an idiot. 2011-06-21 16:03:04 +02:00
Reinier Zwitserloot 620125c266 whoops, a very minor nit in synchronized which also caused a test to fail fixed. 2011-06-20 22:02:07 +02:00
Reinier Zwitserloot 3798d94263 Minor tweaks to documentation updates (javadocs, website). 2011-06-20 21:36:40 +02:00
Reinier Zwitserloot f5303a32dc forgot a few things in the changelog. 2011-06-20 21:35:54 +02:00
Reinier Zwitserloot 1bafafa6d8 Version bump to 0.10.0RC1 2011-06-20 21:19:04 +02:00
Reinier Zwitserloot 3303e4c94a Updated changelog 2011-06-20 21:16:53 +02:00
Reinier Zwitserloot 1816ffdebc fixed @Synchronized. 2011-06-20 21:08:19 +02:00
Reinier Zwitserloot f923671763 Added ability for annotation handlers to be invoked in the diet parse phase even if its a post-diet handler. 2011-06-20 21:05:06 +02:00
Reinier Zwitserloot 0fb0c59d5a Javac/EclipseAnnotationHandler are now abstract classes instead of interfaces; there were too many 'option' methods (methods where you return either true or false), so we really needed the ability to pick a default. 2011-06-20 21:05:06 +02:00
Reinier Zwitserloot bdcbd1bac4 SpiLoadUtil's findAnnotationClass didn't work with extends Foo<T>, only with implements Foo<T>. Fixed this. 2011-06-20 21:05:06 +02:00
Reinier Zwitserloot 1c883cb13f as lombok never runs as AP anymore in ecj, the 'show some more info for bug 164' escape to not do that in ecj was no longer relevant. 2011-06-20 21:05:05 +02:00
Reinier Zwitserloot 47f58c922c mentioned Anthony Whitford's delombok maven plugin on delombok feature page. 2011-06-13 23:50:39 +02:00
Reinier Zwitserloot ac8aae9b42 Updated to ivyplusplus 1.7 and used ivy:cachedunjar to shave a second off build times. 2011-06-13 23:48:00 +02:00
Reinier Zwitserloot 6e9205a570 Updated the download page for the website, which now includes a list with instructions for many platforms. 2011-06-13 23:47:47 +02:00
Reinier Zwitserloot cea08d7799 Fixed PrintAST, and separately SneakyThrows/Synchronized which failed because the 'isFullParse' boolean was erronously set on a full rebuild, forced by HandleDelegate.
HandleDelegate has also been updated to not do so much work if there's no @Delegate in a source file.
2011-06-13 22:07:30 +02:00
Reinier Zwitserloot 274d5de571 Decided to improve the windows regexp detector from 'windows' to win|win32|win64|windows, on a word break. 2011-06-07 22:12:29 -07:00
Reinier Zwitserloot deb6b061ce Detector regexp for windows had a pointless grouping in it. 2011-06-07 22:09:59 -07:00
Reinier Zwitserloot 612431bbbb Updated to ASM 4.0RC1 so that we can deal with java7,
especially class files built with java7.

Fixes issue #188
2011-06-07 00:56:43 +02:00
Roel Spilker ef220339b6 Issue 188: add class file pool constants for methodhandles and invokedynamic (java7) 2011-06-06 23:22:47 +02:00
Reinier Zwitserloot 3171afd5bc ecj is now downloaded into lib/ecj. We don't currently use it for anything anymore, but could be handy for automated testing and definitely handy for manual experimenting / testing. 2011-06-06 22:15:31 +02:00
Reinier Zwitserloot eac3971390 -javaagent:lombok.jar=ECJ should now work to enable lombok in any ecj-based tool including ecj itself. 2011-06-06 22:14:22 +02:00
Reinier Zwitserloot 05465b66a8 Minor update to include a timestamp on the edge release download page. 2011-06-06 22:06:02 +02:00
Philipp Eichhorn 476b198f16 Allow "before" to be used as a source-package for eclipse tests (see LoggerSlf4jWithPackage). 2011-06-05 22:14:50 +02:00
Reinier Zwitserloot 964b82124d Eclipse handlers can now opt out of being run in diet-parse mode. Fixes Synchronized and SneakyThrows 2011-06-02 06:43:48 +02:00
Reinier Zwitserloot cd6eee36cf the new eclipse dietparse test suite written by philipp requires junit to be fired up with lombok as agent. Fixed that in the build script. 2011-06-02 06:43:30 +02:00
Reinier Zwitserloot 3c92d18927 ecj and jdt.core contain mostly the same classes. Its possible to get these mixed up and that would be bad (SecurityExceptions as signatures don't match, and in general mixing and matching classes from different releases). Just ditching ecj should do the job. 2011-06-02 06:35:38 +02:00
Reinier Zwitserloot ee40c8542d Trivial fixes. 2011-06-02 06:00:14 +02:00
peichhorn 850c3eaf07 Added a test infrastructure that simulates eclipse with diet-parse, type-binding and so forth. Similar to eclipse, the test needs to be executed with lombok as vm-agent. @Delegate runs with this setup, sadly val does not, at least for now.
And as expected the tests shows that @Synchronized and @SneakyThrows are currently broken for eclipse but not for ecj.
2011-06-01 02:44:53 +02:00
Reinier Zwitserloot aa96fcbc77 Whoops, ecj was broken due to half work on a previous commit to take ecj annotation processing offline. 2011-05-30 23:49:44 +02:00
peichhorn b512546508 The EclipseAST was incomplete when it came to ConstructorCalls. This lead to a severe error in PatchDelegate(issue #211) where classes that didn't use lombok at all could not be build due to a NullPointerException. 2011-05-30 23:44:30 +02:00
Reinier Zwitserloot 88f4e2d2e3 Some small typofixes for the website feature docs. 2011-05-30 22:36:05 +02:00
Reinier Zwitserloot 339b4a6ab1 Whoops, we broke @Delegate with the last update. Now the CAS check on handled is only done if we are -actually- going to call a handler. 2011-05-30 22:30:16 +02:00
Reinier Zwitserloot aa8a627349 tracking if an annotation has been handled or not is now no longer done
via the LombokAST object. Instead its tracked more directly in an attempt
to avoid having to write all handlers as idempotent, and just in case
issue #164 is a race condition (the handled-or-not is a synchronized CAS check).

This does break API for other plugins, but the fix is trivial: Just make your
'handle' method return void. That 'we won't call you again' business in the decks
never quite worked right anyway.

Also, you might want to call Javac.(recursive)setHandledBy when you generate nodes, now.
2011-05-30 22:08:12 +02:00
peichhorn daf84dd00e HandleDelegate did not remove the annotation @Delegate from javac's AST, so HandleDelegate was called multiple times for the same field resulting in an error saying the delegate method was already defined.
Also added a test for @Delegate that uncovered this issue.
2011-05-30 21:26:45 +02:00