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
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
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
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
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
Roel Spilker
6c5ca79942
Issue 349: Test failed in some environments
2012-03-05 20:22:27 +01:00
Roel Spilker
82d939844f
Merge branch 'issue349-test-failed' of https://github.com/buzztaiki/lombok into buzztaiki-issue349-test-failed
2012-03-05 20:20:25 +01:00
Roel Spilker
4c8cc228e8
Issue 348: @Delegate should also generate @Deprecated when the interface methods javadoc contains@deprecated
2012-03-05 20:18:10 +01:00
Taiki Sugawara
b01f5aba87
Use english locale on test via delombok for using english message catalog.
2012-02-25 01:30:20 +09: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
Roel Spilker
102e7eafb0
Make the unittests for ecj work on windows
2012-02-23 23:26:30 +01: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
Reinier Zwitserloot
f259af306f
'val' now works for member types whose outers have generics. (issue #343 )
2012-02-14 16:31: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
Roel Spilker
b7ebd3a674
Fixed bug in reading long and double values
2012-01-23 21:15:13 +01:00
peichhorn and Reinier Zwitserloot
87cca2d322
[Issue 275] Allow @Delegate on no-argument methods
2012-01-19 00:44:47 +01:00
Reinier Zwitserloot
9abb6432e9
Added a test to make sure we never break ecj again.
2012-01-09 19:49:56 +01:00