aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse
AgeCommit message (Collapse)Author
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
2015-01-20[shadowloader] all the patching we do for ecj are ALL entrypoints and need ↵Roel Spilker
shadowloader treatment. This commit makes it happen.
2014-12-04fix for lombok not compiling if JDK8’s javac is used as default compiler.Reinier Zwitserloot
2014-10-29[shadowloader] simple bugfix; shadowloader wasn’t working in luna.Reinier Zwitserloot
2014-10-28Installer updated to no longer add -Xbootclasspath.Reinier Zwitserloot
2014-10-24Making SCL work right is more complicated than it first seemed.Reinier Zwitserloot
Right now the rules are: * _IF_ a class is being loaded, sourced by a lombok-jar originating class, we FIRST search the lombok jar, and if we can’t find it, farm out the job to the originating equinox-side loader. * _IF_ the equinox-side loader attempts to load a class, and it does NOT start with lombok, we don’t interfere and would never serve up any content from the lombok-jar (so if we have deps, they do NOT get loaded, by design). If it DOES start with lombok, we load it, and the loading class is SCL, not the equinox-side loader. * getResource() to load classes did not work (because internally classes end in .SCL.lombok and not .class). This breaks a bunch of things. Fixed by having getResource() be aware that it should try rewriting any request for a .class to .SCL.lombok. * launchified annotationprocessor, and cleaned up the launchified agent, which now, like all other launchers, just sets up classloader stuff and then calls into the lombok loader side to finish the actual processing, instead of trying to do it itself in a handicapped environment that can’t load much.
2014-09-30first take on the shadow classloader. All seems to be in order, but we still ↵Reinier Zwitserloot
have to solve the problem with adding our shadow loader to the equinox infrastructure (solved in lombok currently by adding all of lombok to the bootclasspath), and all the public API still has to be kept as actual class files by build.xml. Currently it is all shadowed away.
2014-06-05addendum to previous commit; found hardcoded reference to an added field and ↵Roel Spilker
it is safer to now use the augment class to access that field.
2014-06-05Finished refactor of FieldAugment; there's no longer a separate variant for ↵Roel Spilker
boolean and references, and the code no longer blows up with a bunch of NPEs if you try to use the reference variant (which is now the only variant) with a primitive type. Should have zero effect on features or bugs, 100% refactor.
2014-05-29#683: URI not absolute errors in mvn builds due to search for lombok.config ↵Reinier Zwitserloot
being broken.
2014-05-21Added an error if @Delegate is used recursively.Reinier Zwitserloot
2014-05-08[java8] don't crash on intersection typesRoel Spilker
2014-04-01all usage of sneakyThrow is now throw sneakyThrow as it should be.Reinier Zwitserloot
2014-03-17[#590][refactor] Fix for deadlock in WeakHashMap. Refactored all code that ↵Roel Spilker
used a WeakHashMap to fake a field.
2014-02-27Fixed some issues when using lambda expressions in eclipse using the beta ↵Reinier Zwitserloot
JDK8 support plugin for Kepler.
2014-02-20[suspect:eclipse] Fix for issue 633: refactor script 'extract local ↵Roel Spilker
variable' did not work inside for example SneakyThrows-protected methods. This fix is reverting the change in e835daa9. During conversion of the internal.ast to the dom AST, a flag is introduced named 'ORIGINAL'. Commit e835daa9 always explicitly cleared it for all lombok-generated nodes, in an attempt to try and do the appropriate thing, treating the ORIGINAL flag as a simile for 'generated code'. Unfortunately, for eclipse code analysis, all our generated code should be treated as if it's "really" there, and in general this doesn't work because eclipse's concept of 'generated' applies to explicit super() calls and the like, not the kind of stuff lombok introduces.
2013-10-10No functional change, but runPostCompiler in eclipse patching is no longer ↵Reinier Zwitserloot
transplanted. It shouldn't matter (runPostCompiler will call lombok.jar code, so if there is a classloader issue, transplanting won't help), and roel thinks it might help debug an issue with Springsource gradle plugin for eclipse.
2013-05-30Fixes for issue 470: VerifyErrors when using @SneakyThrows.Reinier Zwitserloot
2013-04-23added support for lombok.disablePostCompiler.Reinier Zwitserloot
2013-03-12Fix for issue #436: In eclipse, calling i.e. `list.get(i).extensionMethod()` ↵Reinier Zwitserloot
would fail with VerifyError when that code is executed in eclipse.
2012-10-23Fix for NPEs in the eclipse log forReinier Zwitserloot
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.sourceMethod(MethodBinding.java:1108)
2012-10-08Patches ASTNode.setSourceRange; by default it throws ↵Reinier Zwitserloot
IllegalArgumentExceptions in certain cases, but with no message, thus making it very hard to figure out what went wrong. The patch throws the same exceptions in the same cases, but gives the exception a useful error message.
2012-08-13Fix for issue 401: test(), Object.test(), and super.test() were all allowed ↵Reinier Zwitserloot
in eclipse for @ExtensionMethod, resulting in VerifyErrors in the emitted class files.
2012-07-05fixed stupid memleak in PatchExtensionMethod.. sorry my bad..Philipp Eichhorn
2012-06-24ExtensionMethod didn't work for primitive types in eclipse..Philipp Eichhorn
this has been fixed
2012-06-18Fixed Help Content in Eclipse / ecj support.Robbert Jan Grootjans
- Moved Completion proposal code to the PatchExtensionMethodCompletionProposal class - Moved out error reporting from EclipseAST. - Fixed error reporting of the portals.
2012-06-18Split out the GUI function into a separate portal. ThoughRobbert Jan Grootjans
the portal itself has lost it's function (Eclipse help is currently failing, but this also seems to be caused by val). Major point though is that the Extention methods functionality works both in javac as in Eclipse.
2012-06-12Port of lombok-pg's @ExtensionMethod support for eclipse. Doesn't work yet.Reinier Zwitserloot
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-04-23Fix for bug introduced in 48e73a7180ac459d2949e66f2cacc46e08466fce (2 ↵Reinier Zwitserloot
commits ago). isGenerated was being transplanted twice, resulting in a ClassFormatError. NB: This is my fault - transplanting was the only fix I introduced on top of Philipp's work.
2012-04-19fixed: @val didn't work with rawtypes in enhanced for loopspeichhorn
2012-04-03fix for rename method arguments, from Philipp Eichhorn.Reinier Zwitserloot
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-02-15'val' is no longer legal in basic for loops now. Fixes issue #346Reinier Zwitserloot
2012-02-11whitespace onlyReinier Zwitserloot
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-19Merge branch 'Issue_325' of https://github.com/jvanderhel/lombok into jappeReinier Zwitserloot
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-19Removed unused imports from PatchFixesReinier Zwitserloot
2012-01-19[Issue 275] Allow @Delegate on no-argument methodspeichhorn
2012-01-181) rollback of rollback fixRetrieveRightBraceOrSemiColonPositionJappe van der Hel
2) HandleEqualsAndHashCode now use SetGeneratedByVisitor to ensure "correct" sourcepositions 3) SetGeneratedByVisitor now sets QualifiedNameReference.sourcePositions
2012-01-16Issue 325: revert old behaviour of fixRetrieveRightBrace...Sander Koning
2012-01-16Merge pull request #27 from jvanderhel/Issue_316_Rename_with_multiple_types_IISander Koning
Issue 316 rename with multiple types II
2012-01-16Code reviewSander Koning
2012-01-101) We now honor the "public" and "abstract" modifier settingsJappe van der Hel
2) Annotations are now handled, but @SuppressWarnings is skipped
2012-01-10removeGeneratedMethods was broken, causing the rename to failJappe van der Hel