Commit Graph
92 Commits
Author SHA1 Message Date
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 6e25b00ace test for using 'val' on an expression that involved lombok-generated code. 2012-08-13 00:11:22 +02:00
Reinier Zwitserloot 42f5a55d69 Added tests for @FieldDefaults and @Value. 2012-08-10 18:41:51 +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 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 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
Reinier Zwitserloot c09481eb8e Added tests for @ExtensionMethod 2012-07-16 21:05:48 +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
Roel Spilker eb22b3fe05 Added tests to make sure issue 385 is not caused by a simple bug regarding enums 2012-07-02 22:18:18 +02:00
Roel Spilker 8e24e2e123 Added tests for this() call in SneakyThrows (issue 381) 2012-06-25 22:37:05 +02:00
Philipp Eichhorn 8fb4f79757 [Issue 381] @SneakyThrows respects constructor calls 2012-06-24 20:38:00 +02:00
Roel Spilker 37cbe2d3f9 Fix for issue 376 for Eclipse 2012-06-18 23:38:02 +02:00
Roel Spilker 0a53be1d3e Updated test files for getter-lazy on boolean fields. 2012-06-18 23:38:01 +02:00
Roel Spilker 6355ca8e5e Created testcase for i376 2012-06-18 23:38:00 +02:00
Roel Spilker 68ca159867 Added tests for delegating recursively: issue 305 2012-04-30 00:23:33 +02:00
Roel Spilker 25def866b5 Issue 366: don't call the getter twice, fixed for Eclipse. 2012-04-29 23:57:48 +02:00
Roel Spilker 5a13db5dc9 Issue 366: don't call the getter twice, fixed for javac. 2012-04-29 23:57:47 +02:00
peichhorn 3f408782de fixed: @val didn't work with rawtypes in enhanced for loops 2012-04-19 02:41:31 +02:00
Roel Spilker b041b355d6 Added tests for issue 358 2012-04-02 20:47:33 +02:00
Reinier Zwitserloot e98d226cfb Added full test suite for @Accessors, as well as the new rules for whether or not a method is already there so lombok shouldn't generate it (now number of parameters matters), and added generics testing to RequiredArgsConstructor's static constructor feature. 2012-03-26 23:49:39 +02:00
Reinier Zwitserloot 7ddafc0fe5 delombok now prints a space in between method type args and return type. 2012-03-26 23:48:46 +02:00
Reinier Zwitserloot 7569969e25 In delombok mode, @Accessors is now eliminated from your source files. 2012-03-26 23:48:00 +02:00
Reinier Zwitserloot eb3250a2fa Finished work on @Accessors 2012-03-26 21:57:24 +02:00
Roel Spilker 8bc82cad05 Fix for issue 342: @Deprecated annotation not propagated to generated getter/setter 2012-03-19 23:18:37 +01:00
Robbert Jan Grootjans d39623693b Merge branch 'master' of github.com:rzwitserloot/lombok
Conflicts:
	doc/changelog.markdown
2012-03-05 21:12:39 +01:00
Robbert Jan Grootjans f1e679471d PrettyCommentsPrinter now prints default clause of annotation methods. Fixes Issue #350 2012-03-05 21:11:19 +01:00
Taiki Sugawara 821370e01b Add deprecated comment support for eclipse. 2012-02-24 23:55:02 +09:00
Taiki Sugawara c63d036e78 Remove spaces in after files. 2012-02-24 22:56:42 +09:00
Taiki Sugawara c809047b78 support delegate with deprecated comment. 2012-02-22 05:01:35 +09:00
Reinier Zwitserloot 0f86101098 Couple more tests for val 2012-02-15 04:45:28 +01:00
Reinier Zwitserloot 9a50da2d09 ecj tests and eclipse tests are now effectively doing the same thing, except the ecj tests are written in a slightly more close-to-reality way, and do work for 'val'. eclipse test aspect removed. 2012-02-14 17:11:15 +01:00
Reinier Zwitserloot 06581537f2 More test files, test files updated to be valid java, and ecj test now goes through the complete compile process. This means val and @Delegate testing is now enabled.
TODO: Update -eclipse tests.
2012-02-14 16:39:48 +01:00
Roel Spilker bf8b93701a Added test for @Getter(AccessLevel.NONE) 2012-01-24 03:07:14 +01:00
Roel Spilker 2242de2bf9 Fix for issue 328: @Delegate on a field for which we also generate a getter will use the getter for delegation 2012-01-24 02:52:13 +01:00
peichhornandReinier Zwitserloot 87cca2d322 [Issue 275] Allow @Delegate on no-argument methods 2012-01-19 00:44:47 +01:00
Reinier Zwitserloot ae87a26456 Now the type resolver also finds top-level types in a compilation unit that name-shadow. Added tests for the type resolver. 2011-12-19 20:09:40 +01:00
Reinier Zwitserloot 3b921ad7f6 Fix for issue 299: labels would break 'val' in javac. 2011-11-20 19:04:31 +01:00
peichhorn 0d75d56fce Eclipse/JavacHandlerUtil.injectField(...) inserts the new fields after the enum constants.
Also the new fields are ordered in the same way the method injectField() gets invoked.
2011-11-13 09:06:57 +01:00
Roel Spilker 45f9e9def1 Changed copyright notices 2011-11-07 22:04:40 +01:00
Robbert Jan Grootjans 88a83e08a9 Fixed eclipse and ecj unit test broken by 99e36bf51c 2011-11-07 21:51:12 +01:00
Roel Spilker 2fcfc4c3dc Fixed unit tests to take into account work on issue 289 and 287. 2011-11-01 00:53:21 +01:00
peichhorn 2d39470469 [Issue 281] added test 2011-10-07 21:40:33 +02:00
peichhorn 236c88fc5c fixed Issue 271: @NotNull annotations should introduce a null check 2011-09-05 21:53:58 +02:00
Roel Spilker a284600987 Removed support for onMethod, onParam and onConstructor due to javac7 type incapabilities. Issue #251 2011-08-15 21:21:51 +02:00
Reinier Zwitserloot 4ff39e5770 Added some forgotten copyright headers 2011-08-02 03:57:53 +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