Commit Graph
3004 Commits
Author SHA1 Message Date
Rawi01 fa0b5249cf Support With(By) on records and record components
This also replaces the javac/eclipse specific code for searching the
parent fields of an annotation by a search based on the lombok AST.
2020-09-12 14:35:40 +02:00
Rawi01 0064c53427 Add record support 2020-09-10 10:32:14 +02:00
Reinier Zwitserloot 9148294f78 [testing] [eclipse] [#2413] Eclipse tests now more expansive
We now test generating a level2-DOM from our level1-AST (eclipse has 3 levels of ASTs, more or less), only if
that is possible, i.e. only if the full eclipse is available. This requires using a test target named `eclipse-X`, and not
one of the `ecjX` ones. This is the change that requires the massive update to the build system. About 6 tests,
including a newly added one about @Delegate, now fail. These failures would usually not cause instant failure in
eclipse, but can cause errors during save actions and will likely mess with other things in weird ways, such as
messing up syntax highlighting.

Yes, this commit now makes a bunch of cases fail the unit tests, but that is representative of actual errors in lombok,
so I'm checking it in as is (without this commit, the problem is still there, the tests are just incapable of detecting it).
2020-08-29 04:14:10 +02:00
Reinier Zwitserloot 7e44900cd3 [docs] confkey addConstructorProperties had wrong docs about its default value 2020-08-29 04:10:29 +02:00
Reinier Zwitserloot dbcdcfbbf7 [trivial] 2020-08-28 04:23:01 +02:00
Reinier Zwitserloot 409f0428c7 Merge pull request #2548 from rosti-il/master
Fix tests under Windows, fix test.javac11 and test.javac14, fix issue #1745
2020-08-28 00:27:33 +02:00
Reinier Zwitserloot 7f8e15762d [website] [#397] [#2371] added docs for installing in eclipse via p2 2020-08-28 00:15:55 +02:00
Reinier Zwitserloot 6088e6e3d6 [build] added ant website.open
this serves the site locally and opens your browser
2020-08-28 00:15:55 +02:00
Kay Schubert edbfdfe8c5 Issue 2552 - generate class initializer body only after field member injection 2020-08-27 23:52:32 +02:00
Roel Spilker 60a9799c24 Revert "changed arraylist to set"
This reverts commit 273d8fc53c.
2020-08-27 23:43:15 +02:00
Le Beier 273d8fc53c changed arraylist to set 2020-08-27 23:38:23 +02:00
Roel Spilker 9f6c2203c9 trivial - Only assign variable once 2020-08-27 23:15:11 +02:00
Denis Stepanov eb78f5c766 Fix missing parameter names, annotations in following annotation processors 2 2020-08-27 23:10:47 +02:00
Rawi01 74211eb0ae [fixes #2566] Reset constant value set during type resolution 2020-08-27 23:05:48 +02:00
Rawi01 d4bd359d21 [test] [bugfix] Compare full line instead of ignoring the last character 2020-08-27 23:01:05 +02:00
Rawi01 f44c642d40 Use enum instead of Boolean; switch to synchronized map 2020-08-27 22:59:59 +02:00
Rawi01 355ea57b80 Handle each Eclipse ASTs not more than two times (diet + full) 2020-08-27 22:59:59 +02:00
Rawi01 0736f29174 Skip PostCompiler for empty byte arrays 2020-08-27 22:57:07 +02:00
Reinier Zwitserloot 2ac4faf14c [trivial] [changelog] 2020-08-21 00:00:16 +02:00
Reinier Zwitserloot 613ecb0910 [docs] typo-fixes 2020-08-20 23:57:33 +02:00
Rostislav Krasny 79c3d383fd Fix tests under Windows, fix test.javac11 and test.javac14, fix issue #1745
The change of the TestConfiguration.java is based on the fact that
Git for Windows is configured with 'core.autocrlf=true' by default.
2020-08-18 04:09:25 +03:00
Reinier Zwitserloot 7dfbe4323c [tests] fixed the 'ant test.javac' tests. 2020-07-24 00:35:33 +02:00
Reinier Zwitserloot 18222922da [tests] command line 'ant test.eclipse' fixed 2020-07-24 00:27:36 +02:00
Reinier Zwitserloot 0cbea15cae [trivial] I broke 'ant dist' earlier today 2020-07-24 00:27:36 +02:00
inherithandle 19db4be6e9 [trivial] update javadoc on Builder.java 2020-07-24 00:06:41 +02:00
Reinier Zwitserloot a0eb13a478 [test] bugfix for the 'dist' step 2020-07-23 23:51:50 +02:00
Reinier Zwitserloot 2f397d7c95 [tests] only add agent VM args for ECJ/Eclipse tests 2020-07-23 23:40:33 +02:00
Reinier Zwitserloot c003172205 [bugfix] [javac] LUB types + val
Until recently, we'd 'resolve' LUB (compound) types in val constructs by just taking the first one in the line of interfaces. The problem is, different versions of different compilers use different orderings. In an earlier commit, the eclipse impl gained a new algorithm that is more stable, e.g. by sorting on alphabet. now the javac side has the same algorithm.
2020-07-23 23:33:41 +02:00
Reinier Zwitserloot 5175725eee [trivial] [tests] fixing a broken test 2020-07-23 23:33:41 +02:00
Reinier Zwitserloot e6cbb7fbe6 [tests] [trivial] stop printing the javac version
...  when running javac tests
2020-07-23 23:33:41 +02:00
Rawi01 b1f6372b35 [fixes #2300] Keep method argument positions for lazy getter initializer 2020-07-23 22:23:55 +02:00
Rawi01 ce92389da7 [fixes #977] Set generated flag for annotation names 2020-07-12 01:22:38 +02:00
Reinier Zwitserloot 4fdcdd126a [test] this covers more eclipse versions 2020-07-10 02:57:45 +02:00
Reinier Zwitserloot 1fd2401bad [test] more flexible options for limiting your tests. 2020-07-10 02:57:45 +02:00
Reinier Zwitserloot 32e7cd1857 [bugfix] eclipse version differences in constants for registering operator type 2020-07-10 02:57:45 +02:00
Reinier Zwitserloot 857a57cb16 [bugfix] eclipse version differences for weird LUB types 2020-07-10 02:57:45 +02:00
Roel Spilker baa3848498 fix assertion error if the param.sym is null 2020-07-09 22:53:44 +02:00
Roel Spilker 2e08e49ed7 fix typo in printing switch expressions 2020-07-09 22:49:21 +02:00
Rawi01 ab7970b259 Remove unnecessary list copy 2020-07-09 22:04:23 +02:00
Rawi01 586af27800 Replace JavacAst list with single object iteration to save some memory 2020-07-09 22:04:23 +02:00
Reinier Zwitserloot 88d4c1e54c [build] [wip] the eclipse debug targets still aren't entirely correct. 2020-07-03 17:50:44 +02:00
Reinier Zwitserloot 933d75c2fe [test] [bugfix] far too few tests were being selected for the 'javac' target. 2020-07-03 05:34:31 +02:00
Reinier Zwitserloot cb7e4a9ef3 [build] propagate chosen bootclasspath into eclipse test targets 2020-07-03 05:34:30 +02:00
Reinier Zwitserloot 88918e9eb3 [build] fixed a build issue (on 'ant dist') on windows.
apparently on windows symlinking requires admin rights because ?????
This can be fixed with an explicit update to group policies, which I
can't assume anybody working on lombok is going to actually do.
/bin/ln in msysgit just copies (interesting choice). I could write a mechanism
that tries /bin/ln and if not there, try <copy> instead, either in the build scripts
or in ivyplusplus, but that's way too much effort to avoid a 2MB copy. So,
for now, we just copy... if more symlinking is to be done later, we'll revisit, though.
copying is such a silly waste of time, slowing down the build for no reason.
2020-07-02 23:34:54 +02:00
Rawi01 91f576e7e5 Documentation for lombok.addSuppressWarnings 2020-07-02 23:15:14 +02:00
Rawi01 84556ebb00 [fixes #2433] Add config key to turn off @SuppressWarnings("all") 2020-07-02 23:15:14 +02:00
Rawi01 9425e99b49 [fixes #2469] Support static reference as logger topic 2020-07-02 23:08:41 +02:00
Denis Stepanov e4ec9e6648 Fix missing parameter names, annotations in following annotation processors 2020-07-02 20:25:28 +02:00
Roel Spilker 326955cde1 Update changelog. 2020-06-26 00:12:20 +02:00
Roel Spilker f2b2555045 Potential fix for #2412 2020-06-26 00:06:50 +02:00