Commit Graph
324 Commits
Author SHA1 Message Date
Reinier Zwitserloot 0ae11ce404 If there are severe load errors, then an attempt to just log that fails and causes eclipse to break down; now it should just log to standard error and at least let eclipse continue running, sans lombok, if the logging to the eclipse log of the failure also fails. 2009-09-26 09:00:39 +02:00
Reinier Zwitserloot 35691e83ed Massive change to the eclipse handlers: They now set the 'generatedBy' flag which we can use to patch eclipse in specific places to ignore generated nodes. 2009-09-23 07:44:53 +02:00
Reinier Zwitserloot 21717cec11 BIIG change to the eclipse agent: Now all patcher classes represent themselves via SPI. LinkedNOdeFinderTransformer is broken. 2009-09-23 07:44:13 +02:00
Reinier Zwitserloot 21ea5eeca8 Slight tweak to SpiLoadUtil: It now returns iterables instead of iterators. 2009-09-23 07:43:43 +02:00
Reinier Zwitserloot ec38e1a51b Spi is now used to find transformers (code that knows how to patch 1 specific eclipse class). 2009-09-23 07:42:32 +02:00
Reinier Zwitserloot 3986d1ff54 Change to the build process of the eclipse agent: Any dependencies it has on stuff in lombok-core is now explicitly added in build.xml. Less code duplication that way. 2009-09-23 07:42:00 +02:00
Reinier Zwitserloot 76f50ccf2e Fixes issue #49. Credit goes entirely to Michael McCallum who found the problem, found the place in the source where the problem occurred, and even wrote a patch. 2009-09-21 03:47:09 +02:00
Reinier Zwitserloot 2547ee7b97 This is a fix for the auto-format. The fix is NOT ready for proper release - it does rather a lot of stack introspection which may slow things down far too much. 2009-09-21 03:18:38 +02:00
Reinier Zwitserloot 62fa41e0eb Binkley on the newsgroup spotted a bug in this code: the one-arg javacError method delegated to javacWarning instead of javacError. Fixed that little oversight. 2009-09-15 20:57:52 +02:00
Reinier Zwitserloot 02f8fbc13b Added a bunch of javadoc. No other changes. 2009-09-03 23:11:04 +02:00
Reinier Zwitserloot 9f691c56be Version update. 2009-09-03 02:58:43 +02:00
Reinier Zwitserloot 9bbe8bdace Version release. 2009-09-03 02:58:19 +02:00
Reinier Zwitserloot bcf6f51cd3 bugfix in the javac implementation of AnnotationValues. 2009-09-03 02:40:49 +02:00
Reinier Zwitserloot d0116a8efe Updated website features documentation for the new AnnotationLevel.NONE. 2009-09-03 02:28:30 +02:00
Reinier Zwitserloot 0b30a56950 Fixed a problem in AnnotationValues where 'isExplicit' always returned true. 2009-09-03 02:25:51 +02:00
Reinier Zwitserloot cfa9bef58d Added changelog for previous commit. 2009-09-03 02:25:14 +02:00
Reinier Zwitserloot b262ed905a Added an AccessLevel.NONE to suppress generating getters and setters (useful in combination with @Data). Addresses issue #37. 2009-09-03 02:22:07 +02:00
Reinier Zwitserloot c07196d3d2 Added changelog note for previous commit. 2009-09-03 01:49:44 +02:00
Reinier Zwitserloot f1124aad02 Addressed issue #32: The @EqualsAndHashCode and @ToString annotations now support explicitly listing the fields to use, via the new 'of' parameter.
We've also added any fields that start with $ to the default excludes list. Lombok itself can generate these fields ($lock of @Synchronized, for example), and in general they probably should count as effectively not part of the class.
2009-09-03 01:44:59 +02:00
Reinier Zwitserloot 6b7919166e Added support for checking if an annotation parameter is explicitly mentioned. This functionality is used in quite a few places, so generalized it. 2009-09-03 01:44:11 +02:00
Reinier Zwitserloot 780a17e583 Added changelog on previous commit. 2009-09-03 01:43:54 +02:00
Reinier Zwitserloot c46bf8576f "Fixed" issue #43" - problems with javax.validation.NotNull, which lombok used to copy over to the method parameter of generated setters and constructors, but NotNull is not valid there. We've fixed it by limiting ourselves to annotations named 'NonNull', popular versions of which are legal in all the places we copy them to.
This leaves IDEA's NotNull out in the cold, but, lombok doesn't support IDEA anyway.

This is a workaround - once lombok supports type introspection we'll fix this properly.
2009-09-03 01:36:36 +02:00
Reinier Zwitserloot 2b51cf84f4 I think this one FINALLY fixes the problems with SneakyThrows! Issue #30 2009-09-03 00:12:09 +02:00
Reinier Zwitserloot 3bffd6b08e Version moved to 0.8.5-HEAD as part of a release process. 2009-09-02 01:29:05 +02:00
Reinier Zwitserloot e645067820 Moved version from 0.8.4-HEAD to 0.8.4 as this version has just been released. 2009-09-02 01:28:14 +02:00
Reinier Zwitserloot 10a4211346 Explained the correct pom magic incantation to force maven to use a v1.6 compiler. 2009-09-02 01:27:58 +02:00
Reinier Zwitserloot c66654505f There was an issue for that last fix (of @SneakyThrows in eclipse), so added an explanation plus a link to the issue to the changelog. 2009-09-02 01:12:29 +02:00
Reinier Zwitserloot cb4c8ca4a1 Fixed the problem where the eclipse editor AST just loses track of things when using @SneakyThrows (syntax colouring goes away, first character in the file is italic). 2009-09-01 21:09:27 +02:00
Reinier Zwitserloot b069df7484 [TRIVIAL] 2009-09-01 21:09:13 +02:00
Reinier Zwitserloot af202da7db Added a simple rewriter to the catch block finder of ASTConverter: If it can't find it, it used to return -1, which is exceedingly useless and causes no end of bugs. Changed it to returning the start point of the search, which is a more useful fallback. 2009-09-01 21:08:10 +02:00
Reinier Zwitserloot da367086c5 More work on fully addressing the David Lynch bug (issue #41) - the annotation @NotNull/@NonNull/@Nullable that is copied over by @Getter should no longer be causing the David Lynch bug. 2009-09-01 19:17:09 +02:00
Reinier Zwitserloot 25e33d02e3 Added position information _everywhere_ in EqualsAndHashCode and ToString generating. This really does seem to fix the David Lynch bug (#41). 2009-09-01 19:05:21 +02:00
Reinier Zwitserloot 5b16055417 Well, bugger me! Adjusting the positions of the actual type identifier for the generated annotations seems to fix the David Lynch bug (issue #41).
Saving this now before further fiddling breaks things again.
2009-09-01 18:47:01 +02:00
Reinier Zwitserloot 60a62bced8 Removed the various debug assist code in ClassLoaderWorkaround; the feature works now, no longer needed. 2009-09-01 18:39:35 +02:00
Reinier Zwitserloot cb091204f4 Fixed documentation, specifically: added eclipse help system fix to the changelog, and added some documentation on the special handling of @NonNull/@NotNull/@Nullable for Data and Getter/Setter on the website docs. 2009-09-01 00:19:28 +02:00
Reinier Zwitserloot 72cc800fd0 Fixed issue #26: Starting eclipse's help feature just shows you a 500 error, ond depending on your eclipse version, a long stack trace.
The problem boiled down to the JSP compiler used by the help system also being instrumented with lombok, but that's not exactly the environment lombok was expecting. Fixed by simply disabling lombok when the environments don't match what we expect. In the process, the instrumentation has been made a little more robust; multiple separate OSGi modules can all be instrumented now, instead of the first one winning.
2009-09-01 00:08:40 +02:00
Reinier Zwitserloot 65b9365b54 Pretty showstopping bug in here. 2009-09-01 00:07:05 +02:00
Reinier Zwitserloot c7a45b294d WHOOPS - that version number should have been updated much earlier. My fault (reinierz). 2009-08-28 00:21:02 +02:00
Reinier Zwitserloot e92fd5abac Fixes issue #35: ToString now defaults to includeFieldNames=true. 2009-08-28 00:16:58 +02:00
Reinier Zwitserloot 0236721d8d Updated documentation for @NonNull (and the changelog). 2009-08-28 00:12:27 +02:00
Reinier Zwitserloot e1ee1b7d2d null checks are no longer generated if you put @NonNull on primitives. 2009-08-28 00:02:15 +02:00
Reinier Zwitserloot d16775032b Set the source positions in eclipse of copied over annotations (used in @NonNull/@Nullable and getter/setter/constructor generation) to 0, as eclipse mysteriously fails for annotations copied WITH source positions, but only on methods (which happens for @Getter). 2009-08-27 23:35:05 +02:00
Reinier Zwitserloot 4e152f2f14 Merge branch 'nonnull'
Conflicts:
	src/lombok/eclipse/handlers/HandleData.java
	src/lombok/eclipse/handlers/HandleEqualsAndHashCode.java
	src/lombok/eclipse/handlers/HandleSetter.java
	src/lombok/javac/handlers/HandleData.java
	src/lombok/javac/handlers/HandleEqualsAndHashCode.java
	src/lombok/javac/handlers/HandleSetter.java
2009-08-27 23:16:47 +02:00
Reinier Zwitserloot fe0da3f53f Now @Nullable is also copied over. 2009-08-27 23:05:14 +02:00
Reinier Zwitserloot e6bb460e2b Added javadoc and copyright header. 2009-08-27 23:05:02 +02:00
Reinier Zwitserloot 0221e460b2 Updated the changelog (WIP 0.8.4) 2009-08-27 22:26:24 +02:00
Reinier Zwitserloot 7c786f5af6 Made all parameters of all generated methods 'final'. 2009-08-27 22:19:29 +02:00
Reinier Zwitserloot 8aab4e60d6 Whoops, forgot to update the changelog of 0.8.3. 2009-08-21 12:10:54 +02:00
Reinier Zwitserloot b92926b6f7 Preparing release of 0.8.3. 2009-08-21 12:02:46 +02:00
Reinier Zwitserloot 3f3c0cb749 Added link to sun bug db which contains a feature request that is analogous to @SneakyThrows, except with a keyword. 2009-08-19 13:13:54 +02:00