Reinier Zwitserloot
aa96fcbc77
Whoops, ecj was broken due to half work on a previous commit to take ecj annotation processing offline.
2011-05-30 23:49:44 +02:00
peichhorn
b512546508
The EclipseAST was incomplete when it came to ConstructorCalls. This lead to a severe error in PatchDelegate(issue #211 ) where classes that didn't use lombok at all could not be build due to a NullPointerException.
2011-05-30 23:44:30 +02:00
Reinier Zwitserloot
88f4e2d2e3
Some small typofixes for the website feature docs.
2011-05-30 22:36:05 +02:00
Reinier Zwitserloot
339b4a6ab1
Whoops, we broke @Delegate with the last update. Now the CAS check on handled is only done if we are -actually- going to call a handler.
2011-05-30 22:30:16 +02:00
Reinier Zwitserloot
aa8a627349
tracking if an annotation has been handled or not is now no longer done
...
via the LombokAST object. Instead its tracked more directly in an attempt
to avoid having to write all handlers as idempotent, and just in case
issue #164 is a race condition (the handled-or-not is a synchronized CAS check).
This does break API for other plugins, but the fix is trivial: Just make your
'handle' method return void. That 'we won't call you again' business in the decks
never quite worked right anyway.
Also, you might want to call Javac.(recursive)setHandledBy when you generate nodes, now.
2011-05-30 22:08:12 +02:00
peichhorn
daf84dd00e
HandleDelegate did not remove the annotation @Delegate from javac's AST, so HandleDelegate was called multiple times for the same field resulting in an error saying the delegate method was already defined.
...
Also added a test for @Delegate that uncovered this issue.
2011-05-30 21:26:45 +02:00
Reinier Zwitserloot
1e7c6b98ca
Updating website with a shiny new download page listing all the various frameworks and tools lombok now works under.
2011-05-30 11:09:24 +02:00
Reinier Zwitserloot
2d9195a229
Removed the ability of lombok to run as ecj annotation processor, because
...
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-30 10:50:47 +02:00
Philipp Eichhorn
21cfb45696
delombok would put copyright headers in between the 'package' keyword and the actual package.
...
See discussion at https://groups.google.com/d/topic/project-lombok/64zuUlLnVMc/discussion
2011-05-28 19:34:34 +02:00
grootjans
489f506ba1
Added a layer of indirection between the patched calls for delegate to guard 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-17 01:42:02 +02:00
Reinier Zwitserloot
85f7122ab5
Whoops - previous commit has a grievous error in it. My bad. Fixed now.
2011-05-16 22:54:01 +02:00
Reinier Zwitserloot
9360936435
Robbert Jan excluded com/sun from the pack a while ago, but this by accident also excluded jna which broke ecj apt support.
2011-05-16 22:32:58 +02:00
Reinier Zwitserloot
75e81604f3
Split up PatchVal into the ecj and eclipse bits; in ecj you'd just get NoSuchClassErrors.
2011-05-16 22:32:27 +02:00
grootjans
8b2ee73cc4
EclipseLocationProvider now checks the current directory if it matches the eclipse-like executable patterns. Probably fixes issue #196
2011-05-16 21:09:41 +02:00
Philipp Eichhorn
12b0753336
Fixes issue 205: NullPointerException in javac's Check$Validator with val
2011-05-16 20:35:22 +02:00
grootjans
52e7100060
updated changelog for issue #210
2011-05-16 20:17:06 +02:00
grootjans
05d3e9c984
Generalized fix for Issue #210 , now the installer looks recursively for all platforms
2011-05-16 20:12:29 +02:00
Reinier Zwitserloot
c2fe4f169f
Updated copyright on javac HandleDelegate
2011-05-13 20:22:54 +02:00
Reinier Zwitserloot
8830e883fc
@Delegate in javac on the new types/excludes model without autoexclusion now works.
2011-05-13 20:18:29 +02:00
Reinier Zwitserloot
045bc9a60d
Updated Delegate docs now that we've changed how it works (it no longer detects that you've implemented a few to-be delegated methods yourself).
2011-05-09 22:05:43 +02:00
Roel Spilker
66f8ec612f
Added Issue 210 the the changelog.
2011-05-09 21:25:35 +02:00
Roel Spilker
99b4fac271
Recurse directories while eclipse or sts is part of the directory name. Solves issue 210.
2011-05-09 21:21:33 +02:00
Reinier Zwitserloot
201d921692
Updated buildscript to new server
2011-05-03 03:15:32 +02:00
Reinier Zwitserloot
8c61bb0990
Changed how @Delegate works in ecj - methods already present do NOT
...
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-05-03 02:54:41 +02:00
Roel Spilker
b93a582985
Merge branch 'master' of git@github.com:rzwitserloot/lombok
2011-05-03 02:26:15 +02:00
Roel Spilker
e5e3521378
Eclipse 3.7 updated some internal AST classes, causing:
...
NoSuchMethodError: CastExpression.<init>
This commit fixes this (now lombok works both <3.7 and 3.7).
fixes issue #206
2011-05-03 02:25:14 +02:00
Reinier Zwitserloot
12e4f36a2f
Yet another eclipse mirror went down or deleted an older version. We're now hosting this dependency ourselves; it was the last one we weren't already hosting. Also upped version from 3.6.0 to 3.6.2.
2011-04-01 19:55:50 +02:00
Reinier Zwitserloot
1a589ca221
Now logging a warning with diagnostic info so that the next time
...
a user runs into issue #164 , we can get a more useful stracktrace from them.
2011-04-01 18:07:46 +02:00
Reinier Zwitserloot
7ebf05aaec
Added ability to log warnings in eclipse error log.
2011-04-01 18:07:17 +02:00
Reinier Zwitserloot
ab1d938ca8
Now delegating classes defined in the same project works.
...
At this revision, you can easily and reliably reproduce issue #164 by
creating a loop (A delegates B and B delegates A).
2011-03-28 21:36:08 +02:00
Reinier Zwitserloot
816c0b99e7
Updated documentation of XArgsConstructor to highlight that we won't/can't remove
...
suppressConstructorProperties until GWT and Android get the CP annotation.
See issue #202
2011-03-23 07:39:13 +01:00
Reinier Zwitserloot
ead7ff428c
jarjar now used to make sure asm is no longer on the bootclasspath when using lombok.
2011-03-22 21:02:04 +01:00
Reinier Zwitserloot
04e9397971
Rewritten @Cleanup's new null analysis prevention to not use
...
Lombok.preventNullAnalysis but go with Collections.singletonList(expr).get(0)
instead; while this does create a pointless object, it doesn't cause a clash
when eclipse has lombok 0.10 installed but the project uses 0.9, which doesn't
have preventNullAnalysis. Eventually, once 0.9 is long forgotten, this can be reverted.
2011-03-18 19:30:02 +01:00
Reinier Zwitserloot
38b4128f89
previous attempt to use more maven central repos failed, so reverted most of it.
...
see commit 1a28ccb347 .
2011-03-18 18:25:59 +01:00
Reinier Zwitserloot
d0131d9c9b
Updated instructions for publishing a new version
2011-03-16 07:56:29 +01:00
Reinier Zwitserloot
4afc7e5c23
Added printing oss.sonatype.org usernamepass to build script when publishing maven
2011-03-16 07:43:55 +01:00
Reinier Zwitserloot
6ab599d01c
Updated maven pom and deploy process; now lombok is linked in mavencentral so we no longer need our own repository. Also updated publish process to new server (escudo is in, libertad is out).
2011-03-13 17:57:46 +01:00
Reinier Zwitserloot
8d433449f8
Maven insists on having javadoc jars, so buh, I guess we'll comply with that.
2011-03-06 03:08:37 +01:00
Reinier Zwitserloot
2f60ceabc6
Added our issue tracker to our pom
2011-03-06 03:07:56 +01:00
Reinier Zwitserloot
1a28ccb347
Replaced a bunch of deps to entries in maven central instead of self-written URLs.
2011-03-06 02:27:58 +01:00
Reinier Zwitserloot
1c3ed9ac5d
added developers and contributors to maven pom.
2011-03-06 01:21:54 +01:00
grootjans
0fa03d3132
Updates examples to use Guice and hibernate validators.
2011-02-28 16:44:06 +01:00
grootjans
e0cfacd3b3
Issue 192: Add documentation for onMethod=, onParam, onConstructor
...
still have to make a minor edit in the pre/post files
2011-02-28 16:44:06 +01:00
Roel Spilker
35e18b9332
Issue 194: Javac gives and error when lombok.jar is on the classpath
2011-02-21 21:53:47 +01:00
Reinier Zwitserloot
a79ca059e9
Delomboking multiple files still wasn't working right and would result in an IllegalStateException. Fixed.
2011-02-15 03:50:55 +01:00
Roel Spilker
2c3b34704a
Updated changelog to represent fix for issue #177 .
2011-02-15 00:13:06 +01:00
Roel Spilker
a56e7d7db8
Added .markdown.html to gitignore. I wrote a tool that produces these from .markdown files.
2011-02-15 00:07:36 +01:00
Roel Spilker
2bacfa62a3
Should be a fix for issue #177 : NoClassDefFoundErrors for JavacProcessingEnvironment would occur when using the m2eclipse plugin, for example when removing an entry from the build path.
...
The actual change is small but this took quite some searching. m2eclipse uses plexus, and plexus uses a custom classloader, which means lombok can't find the JavacProcessingEnvironment loaded by that classloader.
We fix it here by adding lombok to that custom classloader. Perhaps more die-hard m2eclipse users find a problem with this approach, but assuming these plexus compile runs are stand-alone, this should work great.
fixed by Roel and Reinier.
2011-02-15 00:07:34 +01:00
grootjans
ed4068d842
Added a number of test for AllArgsConstuctor, RequiredArgsConstructor, NoArgsConstructor annotations and added a test for issue: 172
2011-02-14 22:53:08 +01:00
grootjans
3a6615234d
Added annotation for handleconstructor: issue 172
2011-02-14 22:51:53 +01:00