aboutsummaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2021-03-04Merge pull request #2754 from Rawi01/npe-nonStaticAccessReinier Zwitserloot
Save problem handler state for postponed error handling
2021-02-17[fixes #2752] Save problem handler state for postponed error handlingRawi01
2021-02-07[fixes #2741] Handle inner method invocations firstRawi01
2021-02-04Merge pull request #2719 from Rawi01/superbuilder-initializer-npeReinier Zwitserloot
SuperBuilder now skips initializers while gathering types
2021-02-04Merge pull request #2733 from Rawi01/checker-superbuilderReinier Zwitserloot
Add missing checker annotations in SuperBuilder
2021-02-04Merge pull request #2734 from Rawi01/data-equals-warningReinier Zwitserloot
Only show super()-warning if lombok generates a method
2021-02-04[issue #2730] Javadoc generated by lombok in javac now gets its position set.Reinier Zwitserloot
This may fix 'IllegalArgumentException' errors when using google errorprone.
2021-01-31[fixes #1064] Only show super()-warning if lombok generates a methodRawi01
2021-01-31[fixes #2692] Add missing checker annotations in SuperBuilderRawi01
2021-01-28Validate positions during testsRawi01
2021-01-21[fixes #2716] SuperBuilder now skips initializers while gathering typesRawi01
2021-01-14[fixes #2443] Remove multiline Javadoc tagsRawi01
2021-01-01Do not lose generic arguments when adding annotations #2689Mattias Grönlund
2020-12-27Merge pull request #2684 from Rawi01/npe-javadocReinier Zwitserloot
Fix NullPointerException during Javadoc copy
2020-12-22Fix configuration test, the configuration app generates platform-specific ↵Roel Spilker
line-endings
2020-12-22Run tests if no exclusions matchRoel Spilker
2020-12-21[fixes #2682] Fix NPE, always add Javadoc return statementRawi01
2020-12-20[tests] Support javadoc in ecj testsRawi01
2020-12-10Merge pull request #2658 from Rawi01/extension-method-genericReinier Zwitserloot
Reset inference context for extension methods
2020-12-03[fixes #2657] Use the correct field to query parent type parametersRawi01
2020-11-25[fixes #2648] Reset inference context, remove generic information copyRawi01
In Java >= 8 ecj uses the inference context to resolve the generic information. This one is already set before lombok tries rewrite the method call. Simply copying the information does not cover all the different cases but reseting the inference contexts and running type inference again does.
2020-10-08[fixup] Fixing up the checkerframework `@CalledMethods` annotation package ↵Reinier Zwitserloot
rename from commit 390ebcf
2020-10-04The Object Construction Checker has been renamed the Called Methods CheckerMichael Ernst
2020-10-03Merge remote-tracking branch 'origin/master'Reinier Zwitserloot
# Conflicts: # src/core/lombok/javac/handlers/HandleEqualsAndHashCode.java
2020-10-03[builder] big refactor: Fixing CheckerFramework features + all params now in ↵Reinier Zwitserloot
an object These handlers had methods with humongous argument lists, and they needed to grow even more in order to accommodate some new needs to properly implement checkerframework (where annos can be type-use based, which means they were being put in the wrong place. void foo(com.foo.@X Bar paramName) // correct void foo(@X com.foo.Bar paramName) // wrong For example, the CalledMethod annotation is a type-use annotation. This commit covers both that refactor and fixing checkerframework generation.
2020-10-03Untangling patches to classes that only exist in eclipse, not ecjReinier Zwitserloot
Specifically, Rawi01's patches to make javadoc behaviour in eclipse better, which cannot be applied to ecj as you get load errors (javadoc not a thing there). As part of this commit, tests can be limited to ecj or eclipse, and I made cut-down versions of a few tests (to run on ecj, as the main one cannot be, due to javadoc issues). The tests now marked as eclipse only don't fail on ecj, but they don't generate the same result. Alternatively, we could go with a separated out after-ecj and after-eclipse dir instead, but that's perhaps going overboard.
2020-10-02Rename TryWithResourcesVarRefRawi01
2020-09-25Cache hashCode:Roel Spilker
- Fix bug where 0 would be returned once - Fix Eclipse position error - Don't initialize field with default value 0
2020-09-24Remove warning for final classesAndre Brait
2020-09-24Allow non-final types, use Integer.MIN_VALUEAndre Brait
Allow caching hash code for non-final classes (but will warn) Use Integer.MIN_VALUE to differentiate uncached and 0 cached
2020-09-24Fix delombok testsAndre Brait
2020-09-24Finish implementation, add testsAndre Brait
2020-09-24Eclipse impl and testsAndre Brait
2020-09-18Merge pull request #2560 from Rawi01/extensionmethod-namesReinier Zwitserloot
Detect static method access properly
2020-09-18Merge pull request #2558 from Rawi01/extensionmethod-suppressReinier Zwitserloot
Fix suppressBaseMethods in ecj/eclipse
2020-09-18Merge branch 'eclipse-javadoc' of git://github.com/Rawi01/lombok into ↵Reinier Zwitserloot
Rawi01-eclipse-javadoc # Conflicts: # src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
2020-09-18[tests] ant-based compiling of test infra was failing.Reinier Zwitserloot
I committed some code to debug classpath issues; this code is no longer needed and was using java8+ features that aren't available at compile time in the first place; a simple matter of removing that code is all that was needed.
2020-09-18[tests] removed a ridiculously exotic feature that still works, but is too ↵Reinier Zwitserloot
hard to test Specifically, using as custom logger topic a concatenated string, like literally `"A" + "B"`. It works, but depending on javac and phase of the moon that ends up as `"A" + "B"` or `"AB"`, and I don't think it's worthwhile for lombok to try to be consistent in this and test for that.
2020-09-18[tests] fixed a test that fails due to, of all things, a javac bug.Reinier Zwitserloot
2020-08-31Merge branch 'master' into extensionmethodRawi01
Conflicts: build.xml
2020-08-31Merge branch 'master' into eclipse-javadocRawi01
Conflicts: src/core/lombok/javac/handlers/JavacHandlerUtil.java test/core/src/lombok/RunTestsViaEcj.java
2020-08-29[testing] [eclipse] [#2413] Eclipse tests now more expansiveReinier Zwitserloot
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-28Merge pull request #2548 from rosti-il/masterReinier Zwitserloot
Fix tests under Windows, fix test.javac11 and test.javac14, fix issue #1745
2020-08-27[test] [bugfix] Compare full line instead of ignoring the last characterRawi01
2020-08-20[fixes #2261] Detect static method access properlyRawi01
2020-08-20[bugfix] Fix suppressBaseMethods in ecj/eclipseRawi01
2020-08-18Fix tests under Windows, fix test.javac11 and test.javac14, fix issue #1745Rostislav Krasny
The change of the TestConfiguration.java is based on the fact that Git for Windows is configured with 'core.autocrlf=true' by default.
2020-07-29Support javadoc copying in eclipseRawi01
2020-07-23[trivial] [tests] fixing a broken testReinier Zwitserloot
2020-07-23[tests] [trivial] stop printing the javac versionReinier Zwitserloot
... when running javac tests