aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
AgeCommit message (Collapse)Author
2012-10-23Fix for NPEs in the eclipse log forReinier Zwitserloot
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceMethod(MethodBinding.java:1108)
2012-04-23Replaced the 'try some reflection and if that fails, oh well' code with ↵Reinier Zwitserloot
catch(Throwable) instead of catch(Exception). The whole point is to default to an alternative path is anything goes wrong, and it turns out there are various ways to get Throwables instead of Exceptions.
2012-03-19Fix for issue 342: @Deprecated annotation not propagated to generated ↵Roel Spilker
getter/setter
2012-02-25Handle deprecated by ordinary usage.Taiki Sugawara
2012-02-24Add deprecated comment support for eclipse.Taiki Sugawara
2012-01-24Fix for issue 328: @Delegate on a field for which we also generate a getter ↵Roel Spilker
will use the getter for delegation
2012-01-23Added null-check to prevent errors in eclipse when working on incomplete filesRoel Spilker
2012-01-19@Delegate is no longer legal on static entities (previously no immediate ↵Reinier Zwitserloot
errors but I don't think it would work right anyway), and prettied up the error message when you use @Delegate wrong (on static items or methods with args). Also put back something I accidentally deleted with the previous merge.
2012-01-19[Issue 275] Allow @Delegate on no-argument methodspeichhorn
2011-12-19Merge branch 'master' of github.com:rzwitserloot/lombokReinier Zwitserloot
2011-12-19Now the type resolver also finds top-level types in a compilation unit that ↵Reinier Zwitserloot
name-shadow. Added tests for the type resolver.
2011-12-08Fix for issue 308: Allows organize imports works with @Delegate Also fixes ↵jvanderhel
errors in eclipse-log when using @Delegate.
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-09-20preparing for an edge release, and updated changelog.Reinier Zwitserloot
2011-09-20Fix for issue #264: use of @Delegate would cause memory leaks in eclipse.Reinier Zwitserloot
2011-06-13Fixed PrintAST, and separately SneakyThrows/Synchronized which failed ↵Reinier Zwitserloot
because the 'isFullParse' boolean was erronously set on a full rebuild, forced by HandleDelegate. HandleDelegate has also been updated to not do so much work if there's no @Delegate in a source file.
2011-05-30Removed the ability of lombok to run as ecj annotation processor, becauseReinier Zwitserloot
it won't actually work right; method-level generics would break. The new way is to use -javaagent:lombok.jar=ECJ in addition to -cp lombok.jar
2011-05-17Added a layer of indirection between the patched calls for delegate to guard ↵grootjans
against situations in which lombok can't possibly work, since there is not enough of eclipse on the classpath. Major example of this is when we are called through jsps in the eclipse help. Also added an extra check before the patchval is performed by checking if previous patch calls failed in TransformEclipseAST. This fixes Issue #207.
2011-05-16Split up PatchVal into the ecj and eclipse bits; in ecj you'd just get ↵Reinier Zwitserloot
NoSuchClassErrors.
2011-05-03Changed how @Delegate works in ecj - methods already present do NOTReinier Zwitserloot
preclude them from being generated, which means you get duplicate method errors. excludes=Types has been added to counteract this. Once we figure out how to resolve method sigs out of order we can go back to the original plan.
2011-03-28Now delegating classes defined in the same project works.Reinier Zwitserloot
At this revision, you can easily and reliably reproduce issue #164 by creating a loop (A delegates B and B delegates A).
2011-02-07Removed a debug print.Reinier Zwitserloot
2010-12-31Resolve-phase transformers in eclipse need to force a rebuild of the ↵Reinier Zwitserloot
EclipseAST object. Fixes issue #171
2010-12-28Using @Delegate to add a varargs method now works in eclipse (the varargs ↵Reinier Zwitserloot
nature of the method is preserved).
2010-12-24Added detection of type var naming conflicts to eclipse's @Delegate support.Reinier Zwitserloot
2010-12-22@Delegate in eclipse works when delegating parameterized types now, and will ↵Reinier Zwitserloot
use the parameter names if the delegated element is a source (vs. class) dependency.
2010-12-01Parameter names are now 'arg0', 'arg1', etc, unless the delegated type is ↵Reinier Zwitserloot
source, then the name is copied over. Compared to javac, this means eclipse's @Delegate does NOT use debug symbols, which we'll have to fix later (We checked out how to do it, and it seems virtually impossible).
2010-12-01@Deprecated is now copied across for eclipse's @DelegateReinier Zwitserloot
2010-12-01@Delegate in eclipse now uses more of the standard infrastructure to inject ↵Reinier Zwitserloot
methods.
2010-11-28bugfixes for typeToJCTree. HandleDelegate (javac) is working better.Reinier Zwitserloot
2010-11-25@Delegate, at least without value=, seems to work great in javac now!Reinier Zwitserloot
2010-11-15Added copyright notices to PatchVal and PatchDelegate [trivial]Reinier Zwitserloot
2010-11-15eclipse @Delegate: Whoops; earlier fixes meant methods that existed ↵Reinier Zwitserloot
explicitly in multiple supertypes got added that many times, resulting in duplicate method errors. Fixed.
2010-11-14eclipse: @Delegate now no longer generates methods that you already wrote.Reinier Zwitserloot
2010-11-14Removed the brainfart where final methods aren't delegated.Reinier Zwitserloot
2010-11-14eclipse: methods with their own type variables can now be delegated.Reinier Zwitserloot
eclipse: local classes can now be delegated. eclipse: source position of delegated methods are now set properly. cleaned out a bunch of debug helpers.
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!