Commit Graph
1266 Commits
Author SHA1 Message Date
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
Reinier Zwitserloot a382c21d46 fixed issue 391: Using 'staticConstructor' on @Data whilst an @XxxArgsConstructor is present means it gets ignored, but until now lombok didn't warn you about this. 2012-07-16 23:18:58 +02:00
Reinier Zwitserloot fe4985e212 Added setting position of generated nodes in javac's @Synchronized as a 'pilot' to see if we cause any problems with this approach. It does generate nicer error messages!
Example: Using @Synchronized with named lock on a static method, naming a non-existent or instance lock. That used to error on line -1.
2012-07-16 22:51:56 +02:00
Reinier Zwitserloot b1877a77be fixed tests since Robbert Jan's fix for issue 377. 2012-07-16 22:24:04 +02:00
Reinier Zwitserloot bd2d76bb54 Added feature to test suite to dump actual result of running ecj / delombok on things to a directory (use -Dlombok.tests.dump_actual_files=/path/to/dir).
Useful if you KNOW lombok is working but something changed in output, i.e. order of generated methods.
2012-07-16 22:22:57 +02:00
Reinier Zwitserloot e642150998 Updated tests to reflect changes to delombok (delombok now kills super(), because attrib adds them even in places where that's wrong).
Also split up the SynchronizedName test into separate cases for each expected failure mode.
2012-07-16 22:04:39 +02:00
Philipp EichhornandReinier Zwitserloot 2502862f89 Delombok now also runs attrib on more files; this will reveal more errors which is particularly important for tests.
This does mean delombok really does need your entire source/classpath to work right but there's unfortunately no real avoiding this anyway,
given that we're doing more and more with resolution.
2012-07-16 21:05:54 +02:00
Reinier Zwitserloot c09481eb8e Added tests for @ExtensionMethod 2012-07-16 21:05:48 +02:00
Philipp Eichhorn 06826342f3 Fixed issue 399: @ExtensionMethod broken for javac in nearly all cases 2012-07-13 15:27:52 +02:00
Philipp Eichhorn 02446794b0 Fixed issue 397: Rare java.lang.StackOverflowError in JavacResolution. 2012-07-13 12:48:55 +02:00
Reinier Zwitserloot 3cf9ffed29 Wither support + tests (javac only; ecj tests are currently set to ignore). 2012-07-12 02:58:26 +02:00
Reinier Zwitserloot 1865bd7309 expanded on something in the changelog. 2012-07-11 01:33:21 +02:00
Reinier Zwitserloot 288ea10ec7 fixed some markdown errors in the changelog. 2012-07-11 01:12:50 +02:00
Reinier Zwitserloot d2d9687a5c Fielding a request to make some stuff public. The things made public are already part of things we'll change even if public (because, not part of lombok.X or lombok.experimental.X or lombok.experimental.**), nor is it particularly volatile.
See issue #389.
2012-07-11 00:59:36 +02:00
Reinier Zwitserloot 71e0d53bc3 Fixed an issue where the installer tool would erroneously complain about needing root access to install/uninstall lombok. 2012-07-11 00:53:10 +02:00
Jan LahodaandReinier Zwitserloot 6bf2b9299d Made lombok more stable in netbeans based on some smart observations by Jan Lahoda of team Netbeans. 2012-07-11 00:50:46 +02:00