aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent/PatchVal.java
AgeCommit message (Collapse)Author
2021-12-12[fixes #3000] Generate new type reference for val marker annotationRawi01
2021-10-22[fixes #2985] Resolve var/val only once in eclipseRawi01
2021-09-27[fixes #2972] Use simple type, move code to patch methodRawi01
2021-09-06Replace val with native final var in Java >= 10Rawi01
2021-03-24[records] [`@NonNull`] eclipse impl onfthe `@NonNull` on record components ↵Reinier Zwitserloot
feature. All tests passing.
2021-02-07Fix ecj classloadingRawi01
2020-08-27[fixes #2566] Reset constant value set during type resolutionRawi01
2019-09-12[trivial] removing some unused imports and suchReinier Zwitserloot
2019-09-10Undoing PR #2114 which tried to fix issue #1976Reinier Zwitserloot
This PR does fix that, but introduces its own problem. See commit immediately following this one for explanation
2019-07-09Merge pull request #2138 from ↵Reinier Zwitserloot
bulgakovalexander/feature/typeInferenceImprovements val. override error handling policy for problemReporter to guarantee AbortCompilation is throwing.
2019-05-24[val]. Sets false to ReferenceContexts' ignoreFurtherInvestigationField ↵Bulgakov Alexander
fields for generating bytecode correctly. Resolves the False part type of a conditional expression.
2019-05-24#1976. override error handling policy for problemReporter to guarantee ↵Bulgakov Alexander
AbortCompilation is throwing.
2019-05-21Code review + mention in changelog for the improvement to val handling vs. ↵Reinier Zwitserloot
lambdas and conditional (ternary) expressions.
2019-05-07#1976. naive fix of the eclipse compiler's error 'The target type of this ↵Bulgakov Alexander
expression must be a functional interface' in code like 'lombok.val foo = (System.currentTimeMillis() > 0) ? (Runnable)()-> {} : System.out::println;'
2019-05-03Revert "[val] in ecj we were constructing a different type than for javac, ↵Bulgakov Alexander
when using ‘val’ on an intersection type." This reverts commit 1730a991
2019-04-24[val] in ecj we were constructing a different type than for javac, when ↵Reinier Zwitserloot
using ‘val’ on an intersection type.
2019-02-19var/val in Eclipse can now handle intersection types, fixes #1986Roel Spilker
2018-10-29eliminate ‘you are using private API’ warnings by streamlining all ↵Reinier Zwitserloot
reflective access via a class that uses sun.misc.Unsafe to arrange access. From the nqzero permit-reflect library.
2018-07-25[Fixes issue #1783] lombok.var / lombok.experimental.var import would be ↵Reinier Zwitserloot
removed by eclipse’s organize imports.
2018-06-05Fixes #1676 at least for eclipse: You can now use java10 var in an eclipse ↵Reinier Zwitserloot
that supports this, without lombok getting in the way.
2018-02-07[trivial] copyright header year bump to 2018Reinier Zwitserloot
2018-02-07[var] various upgrades to var:Reinier Zwitserloot
* var is promoted to the main package. * It is no longer an opt-in thing. * bug: var (unlike val) is allowed in old-style for loops, but if you multi-init: for (var i = 0, j="Foo";;), you now get an error that you can't do that. * tests both for the multi-for situation and the new main package variant.
2016-11-12imports expanded, idents alignedBulgakov Alexander
2016-10-26The @var annotation has been moved to the experimental package.Bulgakov Alexander
Added a test of a @var variable with null initialization.
2016-10-24added supporting of @var variables. The @var annotation has the same ↵Bulgakov Alexander
functionality as the @val except 'final' modifier.
2015-11-22[Fixes #970] Eclipse would generate some internal IDE errors if using ↵Reinier Zwitserloot
‘val’ on invalid expressions. This fixes one such case.
2015-01-21the previous basic for fix didn't really work, this one is better.Roel Spilker
2015-01-21Fix for erroneous use of val in basic fors.Reinier Zwitserloot
2014-05-08[java8] don't crash on intersection typesRoel Spilker
2014-02-27Fixed some issues when using lambda expressions in eclipse using the beta ↵Reinier Zwitserloot
JDK8 support plugin for Kepler.
2012-04-19fixed: @val didn't work with rawtypes in enhanced for loopspeichhorn
2012-02-15'val' is no longer legal in basic for loops now. Fixes issue #346Reinier Zwitserloot
2011-11-20Fixed issue 300: 'lombok.val' (vs. just val and an import statement) didn't ↵Reinier Zwitserloot
fix auto-complete dialogs. However, now the auto-highlight feature will crash with an IOOBE if you click in lombok.val.
2011-11-07Changed copyright noticesRoel Spilker
2011-10-24pretty big refactor; introduced a new source package which should be (and ↵Reinier Zwitserloot
is) separately compilable, i.e. has no deps on any of the others. This is preparation work for being able to access some of these from lombok.ast without creating a cyclic dependency nightmare.
2011-05-16Split up PatchVal into the ecj and eclipse bits; in ecj you'd just get ↵Reinier Zwitserloot
NoSuchClassErrors.
2010-12-22After 2 weeks of debugging, finally figured out val in eclipse using ↵Reinier Zwitserloot
lombok.val without breaking 'fix imports'. Eesh. Using "lombok.val" only half-works; auto-complete on the variable doesn't work, but it compiles fine and no errors are reported.
2010-11-29Added 'val' as a type which the 'val' fake keyword must resolve to before ↵Reinier Zwitserloot
val works, as a gesture to make val less 'magical'. It even works, in eclipse. Next up: javac.
2010-11-19Fix for reported NPEs by Stephen Haberman.Reinier Zwitserloot
2010-11-15Added copyright notices to PatchVal and PatchDelegate [trivial]Reinier Zwitserloot
2010-11-14Moved patch code specific to val and delegate to their own class.Reinier Zwitserloot
@Delegate in eclipse works pretty much exactly as designed at this point!