Commit Graph
3046 Commits
Author SHA1 Message Date
Roel Spilker 2ba65d105d Cache hashCode:
- Fix bug where 0 would be returned once
- Fix Eclipse position error
- Don't initialize field with default value 0
2020-09-25 00:13:50 +02:00
Andre Brait ee6c0ca7f2 Remove warning for final classes 2020-09-24 22:25:15 +02:00
Andre Brait 8d004c0638 Allow non-final types, use Integer.MIN_VALUE
Allow caching hash code for non-final classes (but will warn)
Use Integer.MIN_VALUE to differentiate uncached and 0 cached
2020-09-24 22:25:15 +02:00
Andre Brait 0808d4271a Remove CacheStrategy compilation unit for javac 2020-09-24 22:25:15 +02:00
Andre Brait 32db0ef710 Generate Pure annotation for cached hashCode 2020-09-24 22:25:15 +02:00
Andre Brait c91a7dc8ca Undo unnecessary change, add TODO 2020-09-24 22:25:15 +02:00
Andre BraitandRawi01 a4866a8d23 Add missing set source/statement start/end
Co-authored-by: Rawi01 <Rawi01@users.noreply.github.com>
2020-09-24 22:25:15 +02:00
Andre BraitandRawi01 a8a811b245 Fix using source start instead of source end
Co-authored-by: Rawi01 <Rawi01@users.noreply.github.com>
2020-09-24 22:25:15 +02:00
Andre Brait 04a10be919 Change documentation to reflect code 2020-09-24 22:25:15 +02:00
Andre Brait b62ce8fb2f Fix typo 2020-09-24 22:25:15 +02:00
Andre Brait 4788df3fb3 Readd line removed by Eclipse 2020-09-24 22:25:15 +02:00
Andre Brait beec8309ef Removed unused imports 2020-09-24 22:25:15 +02:00
Andre Brait 2aea0cb3d2 Fix delombok tests 2020-09-24 22:25:15 +02:00
Andre Brait 03d1119e08 Revert unnecessary changes 2020-09-24 22:25:15 +02:00
Andre Brait d00ab552e1 Finish implementation, add tests 2020-09-24 22:25:15 +02:00
Andre Brait 4e0ffbc329 Eclipse impl and tests 2020-09-24 22:25:15 +02:00
Andre Brait b78a6af49c Restore some missing white spaces removed by IDEA 2020-09-24 22:25:15 +02:00
Andre Brait 3019e73f96 Attempt to implement cacheHashCode 2020-09-24 22:25:15 +02:00
Rawi01 f397c2b482 [fixes #2586] Add Java 15 support for delombok 2020-09-24 22:19:01 +02:00
Reinier Zwitserloot 25f91eb7b2 Merge pull request #2560 from Rawi01/extensionmethod-names
Detect static method access properly
2020-09-18 02:32:34 +02:00
Reinier Zwitserloot 1dd84581c0 Merge pull request #2558 from Rawi01/extensionmethod-suppress
Fix suppressBaseMethods in ecj/eclipse
2020-09-18 02:31:44 +02:00
Reinier Zwitserloot f43a63b1d9 Merge branch 'delegate-methods-outline' of git://github.com/Rawi01/lombok into Rawi01-delegate-methods-outline
# Conflicts:
#	src/core/lombok/eclipse/EclipseAugments.java
2020-09-18 02:30:42 +02:00
Reinier Zwitserloot 730670f1f4 Merge branch 'eclipse-javadoc' of git://github.com/Rawi01/lombok into Rawi01-eclipse-javadoc
# Conflicts:
#	src/core/lombok/eclipse/handlers/EclipseHandlerUtil.java
2020-09-18 02:27:35 +02:00
Reinier Zwitserloot ea1578a0a9 [tests] ant-based compiling of test infra was failing.
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 01:03:29 +02:00
Reinier Zwitserloot c10fe50f6a [tests] removed a ridiculously exotic feature that still works, but is too 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 01:01:41 +02:00
Reinier Zwitserloot a478fd5679 [tests] fixed a test that fails due to, of all things, a javac bug. 2020-09-18 01:00:46 +02:00
Reinier Zwitserloot 9d45a506b1 [build] eclipse test target for Javac8 fixed
javac8 has a bizarre dependency situation: we need the stubs in src/stubs there to compile, but if they are there
at runtime during a test run of javac8, they take precedence over the JDK's javac (because we include this
as a separate cp entry, and thus it is not a bootclasspath item), and messes everything up.
The fix is to tell eclipse to compile various src/X folders to different 'bin' targets, which required
an update to ivyplusplus as well.

also it was just broken in general, fixed that too :)
2020-09-18 01:00:24 +02:00
Reinier Zwitserloot 007c4e7cb2 Merge pull request #2570 from Rawi01/eclipse-test-fixes
Eclipse test fixes
2020-09-17 22:18:31 +02:00
Reinier Zwitserloot 60d86fab3c Merge pull request #2413 from Rawi01/extensionmethod
Improve ExtensionMethod support in Eclipse
2020-09-17 22:18:11 +02:00
Rawi01 f7f26a9c56 Fix ExtensionMethod for older eclipse version 2020-09-03 10:07:36 +02:00
Rawi01 82ac8aad1d Merge branch 'master' into extensionmethod
Conflicts:
	build.xml
2020-08-31 09:57:29 +02:00
Rawi01 23b80658bc Merge branch 'master' into eclipse-javadoc
Conflicts:
	src/core/lombok/javac/handlers/JavacHandlerUtil.java
	test/core/src/lombok/RunTestsViaEcj.java
2020-08-31 09:38:14 +02:00
Rawi01 54ea7c1c6b [tests] Fix CustomLog tests 2020-08-29 12:16:20 +02:00
Rawi01 6165941f79 [tests] Fix SuperBuilder test 2020-08-29 12:16:19 +02:00
Rawi01 9af2611dce [tests] Fix Delegate tests 2020-08-29 12:10:23 +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