Reinier Zwitserloot
ed61012f95
whoops, belated push and fixes to the documentation of onX
2013-02-18 21:41:07 +01:00
Reinier Zwitserloot
1488a262bd
Bugfix for delombok mangling x++ into ++x on java7.
2013-02-11 22:35:42 +01:00
Reinier Zwitserloot
aafd83079a
BIG commit:
...
* re-introduction of onMethod/onConstructor/onParam
* tests checking error/warnings rewritten to be more heuristic, in order to accomodate difference in messaging between java6 and java 7
* Ability to eliminate java's own output of erroneous error messages (heh); i.e. those messages that are invalidated by lombok's actions. This mechanism is used for onMethod/onConstructor/onParam
* First steps to unifying a billion setGeneratedBy calls into a single visitor traversal for eclipse' HandleGetter/Setter/Constructor/Wither
* To simplify 'zooming in' the tests on just a few files, added an 'accept' mechanism.
* Updated copyright headers of website to 2013.
2013-02-11 22:34:48 +01:00
Reinier Zwitserloot
ef8769d318
Added all documentation for the onX feature and updated changelog.
...
Now to actually write the feature (Well, rescue it from the onX-removal tag).
2012-11-17 20:26:58 +01:00
Reinier Zwitserloot
58851b4c6e
Updated the javadoc of each and every feature annotation that lombok has:
...
* Removed most documentation and instead put in a link to the much more up to date and extensive documentation at http://projectlombok.org/features
* Getting ahead of ourselves a little, added notes on onConstructor/onParam/onMethod which we are about to add in the next few commits.
* Updated copyrights to 2012.
2012-11-17 19:12:01 +01:00
Reinier Zwitserloot
e95bb83e06
Fixed two minor javadoc typos in @Getter and @Value.
...
(With thanks to Bart Enkelaar)
2012-11-12 22:12:35 +01:00
Reinier Zwitserloot
7e84f8d1c2
[refactor] Cleaned up static imports (always use *), and refactored out getCtcInt calls into constants as defined in Javac.
2012-11-12 22:07:07 +01:00
Reinier Zwitserloot
8a6167f8b0
whoops forgot to update changelog for release 0.11.6
2012-10-30 01:03:42 +01:00
Reinier Zwitserloot
4dd2dda762
post-release version bump.
2012-10-30 01:02:32 +01:00
Reinier Zwitserloot
afaa5b3060
pre-release version bump
2012-10-30 00:50:29 +01:00
grootjans
11a07262ef
Added annotation for the slf4j extended logger
2012-10-30 00:44:45 +01:00
Reinier Zwitserloot
8a5d637af7
Fix for issue 408: IllegalArgumentException when generating setters in eclipse for fields with @Deprecated on them.
2012-10-30 00:25:26 +01:00
Reinier Zwitserloot
b8e1f3bdeb
added tests for lub and val (lub = finding the common supertype, for example in a ternary expression).
2012-10-29 23:12:14 +01:00
Reinier Zwitserloot
7bd3851f68
//ignore in files now counts even if the 'ignore' comment is followed by more text (such as the explanation for why it is being ignored).
2012-10-29 23:11:21 +01:00
Reinier Zwitserloot
d15d722872
fix for issue #423 : @ExtensionMethods failed with an NPE in the handler on javac if generated constructors are involved.
2012-10-29 22:21:15 +01:00
Reinier Zwitserloot
cec7dfd190
Empty statements no longer being printed to be consistent with Javac7 which seems to just remove these from the AST entirely.
2012-10-25 00:08:02 +02:00
Reinier Zwitserloot
d2808d407a
The testrunner now uses a different mechanism to verify correctness of produced errors and warnings (i.e. we intentionally compile code with errors in them to verify that the appropriate error or warning message is emitted when lombok is active during a compilation run of either javac or ecj) - instead of string comparisons, it's a little more complex. This to enable testing of both javac6 and javac7, even if they produce (slightly) different error output.
...
Updated all message files in the 'expected output' directories to represent this change.
2012-10-25 00:07:44 +02:00
Reinier Zwitserloot
2d21611898
Updated the setup test environment tasks in the build script to produce eclipse launch targets IF the project has been treated as eclipse project ('.project' is present).
2012-10-25 00:05:02 +02:00
Reinier Zwitserloot
7d78e45128
added previous fix to changelog.
2012-10-23 11:22:21 +02:00
Reinier Zwitserloot
614d490ea1
Fix for NPEs in the eclipse log for
...
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceMethod(MethodBinding.java:1108)
2012-10-23 11:19:35 +02:00
Reinier Zwitserloot
10085d5f2a
Typo fixes in build.xml
2012-10-23 11:19:12 +02:00
Reinier Zwitserloot
bde859c853
Fixes issue 422: VerifyError when running delombok in a javac7 environment.
2012-10-22 09:49:19 +02:00
Reinier Zwitserloot
a295c4fc12
Ever since we do a lot more than just calling 'parse' when running delombok in our tests, the tests are in the unfortunate scenario where we always compile against a given javac (lib/build/javac6.jar), and always run the tests against a given javac, but that javac tries to use the bootclasspath of the host JRE, and if that is JRE7, you get all sorts of errors.
...
I fixed it by still compiling against a given javac (we can only ship one lombok.jar after all), but having the test task run with a given bootclasspath and a given javac.jar.
There are 2 tasks that download both rt.jar and javac.jar for either OpenJDK6 or OpenJDK7, and it writes a properties file with those locations. The test task will use this property file, and explain what you need to do if it is not there.
Incidentally, this brought to light issue 422: Delombok in java7 produces VerifyErrors.
2012-10-22 09:47:56 +02:00
Reinier Zwitserloot
0baf73b2aa
Patches ASTNode.setSourceRange; by default it throws IllegalArgumentExceptions in certain cases, but with no message, thus making it very hard to figure out what went wrong. The patch throws the same exceptions in the same cases, but gives the exception a useful error message.
2012-10-08 20:26:06 +02:00
Reinier Zwitserloot
a733c15082
Updated copyright header in website feature pages.
2012-10-08 20:24:41 +02:00
Reinier Zwitserloot
7ada401b6d
If val errors out, now at least you see where it happened.
2012-09-17 17:19:05 +02:00
Reinier Zwitserloot
9bc421ecdc
@FieldDefaults was causing template suggestions to not appear sometimes.
...
See issue 411.
2012-09-03 21:34:51 +02:00
Reinier Zwitserloot
70256754c2
If the JVM is started with -Dlombok.disable, lombok is disabled entirely for both eclipse/ecj and javac operations.
2012-08-28 09:17:01 +02:00
Reinier Zwitserloot
672ddda8f5
updated copyright year notices in website html
2012-08-27 23:09:09 +02:00
Reinier Zwitserloot
4f5f689bf2
There is now an 'override this method' alternative for
...
setting the annotation you handle for an XAnnotationHandler<T>;
default behaviour still extracts the T part out of the signature.
2012-08-24 15:17:46 +02:00
Reinier Zwitserloot
579e139c6c
post release version bump
2012-08-14 04:00:04 +02:00
Reinier Zwitserloot
767d9f7cad
prerelease version bump
2012-08-13 02:51:36 +02:00
Reinier Zwitserloot
afcb211e47
Fix for issue 401: test(), Object.test(), and super.test() were all allowed in eclipse for @ExtensionMethod, resulting in VerifyErrors in the emitted class files.
2012-08-13 02:46:43 +02:00
Reinier Zwitserloot
d1539a3ec2
prettying up the pre/post examples for FieldDefaults and ExtensionMethod
2012-08-13 02:46:35 +02:00
Reinier Zwitserloot
5f511da091
FieldDefaults (and Value) did not call .rebuild() after changing modifiers. This also meant delombok would not emit the changed code if that's all that changed, because it thought nothing changed.
2012-08-13 00:12:41 +02:00
Reinier Zwitserloot
6e25b00ace
test for using 'val' on an expression that involved lombok-generated code.
2012-08-13 00:11:22 +02:00
Reinier Zwitserloot
8850798a04
Documentation for @Value, @FieldDefaults, @Wither
2012-08-13 00:11:02 +02:00
Reinier Zwitserloot
42f5a55d69
Added tests for @FieldDefaults and @Value.
2012-08-10 18:41:51 +02:00
Reinier Zwitserloot
0dbc68a5cc
Added an optimization to javac: Don't force new resolution rounds if none of the handlers in the next priority level need it.
2012-08-10 18:30:35 +02:00
Reinier Zwitserloot
b31ca9606b
bugfix: Detecting javac6 didn't work on soylatte; now it does.
2012-08-10 18:06:24 +02:00
Reinier Zwitserloot
1be7da7601
* Added priorities to handlers, along with implementation of the priority system for javac and ecj.
...
* @Value now makes the class itself final by default.
2012-08-10 18:06:13 +02:00
Reinier Zwitserloot
70317c7384
Added @Value and @FieldDefaults implementations for javac and ecj, the annotations including @NonFinal and @PackagePrivate, and some refactors. No tests yet.
2012-08-06 22:47:59 +02:00
Reinier Zwitserloot
d1b0242dc5
Fixed outdated javadoc text in @Data annotation.
2012-08-06 22:46:17 +02:00
Reinier Zwitserloot
8ca3ddaa53
fully tested the HandleWither impl for eclipse.
2012-08-06 21:26:55 +02:00
Reinier Zwitserloot
87f763a94c
Merge branch 'master' into wither
...
Conflicts:
src/core/lombok/javac/handlers/JavacHandlerUtil.java
2012-08-06 20:37:21 +02:00
Reinier Zwitserloot
eb4cbcd8bb
Untested implementation of HandleWither for eclipse along with minor refactors to HandleSetter
2012-08-06 20:36:38 +02:00
Reinier Zwitserloot
34055fcdff
A potential fix for issue #394 ; Memory leaks in eclipse introduced in lombok 0.11.2 due to a fix involving WeakHashMaps for lazy getters of type boolean.
2012-07-22 07:17:52 +02:00
Philipp Eichhorn
98c704c7cb
Lombok not longer removes the feature annotations and the import declarations of said annotations when running in Netbeans. This solves another batch of usability issues in Netbeans.
2012-07-18 19:53:29 +02:00
Reinier Zwitserloot
555bdfd52f
Updated changelog with fixes for 396 and 399.
2012-07-17 00:19:00 +02:00
Reinier Zwitserloot
dd18f63ee5
Fix for issue 396: Static constructors generated for classes with type parameters did not work in javac.
2012-07-17 00:15:40 +02:00