Commit Graph
783 Commits
Author SHA1 Message Date
Reinier Zwitserloot 161bcbaf88 After 2 weeks of debugging, finally figured out val in eclipse using 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-12-22 09:28:28 +01:00
Reinier Zwitserloot e15de71fd4 @Delegate in eclipse works when delegating parameterized types now, and will use the parameter names if the delegated element is a source (vs. class) dependency. 2010-12-22 09:27:55 +01:00
grootjans 953b6c1140 Moved all the Compile time constants from the Javac handlers and supporting classes 2010-12-18 18:02:20 +01:00
Reinier Zwitserloot bac11b43dd Parameter names are now 'arg0', 'arg1', etc, unless the delegated type is 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 20:00:44 +01:00
Reinier Zwitserloot ed1ea0dca2 @Deprecated is now copied across for eclipse's @Delegate 2010-12-01 20:00:44 +01:00
Reinier Zwitserloot e308909def @Delegate in eclipse now uses more of the standard infrastructure to inject methods. 2010-12-01 20:00:43 +01:00
Roel Spilker b0072a17eb lombok.val import now gets removed. Only adding lombok.val flags the compilation unit as changed. 2010-11-29 22:43:44 +01:00
Reinier Zwitserloot dd0fded2bf some more work on why delombok isn't tracking changes due to val alone. 2010-11-29 20:44:16 +01:00
Jesse Glick a8e92af7b7 Use includeantruntime="false" for safety and to avoid warnings under Ant 1.8.0+. 2010-11-29 18:03:18 +01:00
Jesse Glick 9523364898 Make compilable under JDK 7's javac (thus also removing an error mark in NetBeans' editor).
src/core/lombok/core/LombokNode.java:260: gatherAndRemoveChildren(Map<N,L>) has private access in LombokNode
		for (L child : children) child.gatherAndRemoveChildren(map);
		                              ^
  where N,L,A are type-variables:
    N extends Object declared in class LombokNode
    L extends LombokNode<A,L,N> declared in class LombokNode
    A extends AST<A,L,N> declared in class LombokNode
2010-11-29 17:54:19 +01:00
Reinier Zwitserloot 84a74bf638 @ToString usage example had a typo in it (used 'excludes' instead of the correct 'exclude'). Thanks to Francois Marot for spotting this problem.
Fixes issue #168.
2010-11-29 17:02:58 +01:00
Reinier Zwitserloot 6ac23f853a 'val' now only works if its a reference to lombok.val on javac. 2010-11-29 17:01:48 +01:00
Reinier Zwitserloot 7dba9c850c Added 'val' as a type which the 'val' fake keyword must resolve to before val works,
as a gesture to make val less 'magical'. It even works, in eclipse. Next up: javac.
2010-11-29 16:43:36 +01:00
Reinier Zwitserloot 5e9b99bec8 The somewhat rare conflict in typevar names problem has now been solved in javac. 2010-11-29 16:14:10 +01:00
Reinier Zwitserloot 63664a310f bugfixes for typeToJCTree. HandleDelegate (javac) is working better. 2010-11-28 16:52:24 +01:00
Reinier Zwitserloot 07cfed749e Want to code lombok in intellij? Run 'ant intellij', possible from this patch on, to do so. This involved switching to ivyplusplus 1.4 and includes a hack to make sure 1.3 users get upgraded. 2010-11-27 10:50:22 +01:00
Reinier Zwitserloot a6971710ac Fixed @PrintAST, which wouldn't do anything at all in javac mode since resolution support was added. 2010-11-26 10:50:32 +01:00
Reinier Zwitserloot 3c092da93a Documented @Delegate with javadoc. 2010-11-25 12:55:13 +01:00
Reinier Zwitserloot c340c9c24f @Delegate, at least without value=, seems to work great in javac now! 2010-11-25 12:47:07 +01:00
Reinier Zwitserloot 4ded143def Updated version name - should have done that after pushing 0.10.0-BETA2. 2010-11-22 23:52:35 +01:00
Roel Spilker d76c50e9d5 Merge branch 'master' of git@github.com:rzwitserloot/lombok 2010-11-22 23:53:08 +01:00
Roel Spilker f258229b88 - Renamed the diverse @Log annotations to give them distinct names
- Removed the option to specify a different class to log on
- Updated tests and documentation
2010-11-22 23:52:34 +01:00
Reinier Zwitserloot 4ba4a371b5 Cleaned up the patch fixes in eclipse for finding end of identifier and start of catch block. Maaartin-1 reported issues that sound like these were at fault they we were not able to reproduce them. 2010-11-22 23:46:12 +01:00
Reinier Zwitserloot e151d49138 Clarified the need to run ant eclipse in README. 2010-11-22 23:06:04 +01:00
Roel Spilker 8eb05b357d Merge branch 'master' of git@github.com:rzwitserloot/lombok 2010-11-22 23:02:08 +01:00
Reinier Zwitserloot 7dede9a664 Added storing instanceof JavacTypes in JavacAST, and renamed JavacResolution's methods. 2010-11-22 23:00:02 +01:00
Roel Spilker 3a89cbe7e7 Ivy cache is now local to prevent cache conflict with other ivy using projects. 2010-11-22 22:27:58 +01:00
Reinier Zwitserloot 16a24525bf Fix for reported NPEs by Stephen Haberman. 2010-11-19 10:26:29 +01:00
Reinier Zwitserloot ffedb71cb5 Merge branch 'master' of github.com:rzwitserloot/lombok 2010-11-18 20:49:23 +01:00
Reinier Zwitserloot 49b9d073ba Pre-beta-release 2010-11-18 20:48:54 +01:00
Reinier Zwitserloot ca24a4c3ec Fixed @AllArgsConstructor screwing up with final fields that have been initialized. 2010-11-18 20:47:58 +01:00
Reinier Zwitserloot c86d0fcc37 Added link to SpoonVennersOdersky paper about equality. 2010-11-18 14:04:32 +01:00
Reinier Zwitserloot 5595943f06 Merge remote branch 'origin/master' 2010-11-18 13:05:30 +01:00
Reinier Zwitserloot 3c47eb1299 Added documentation for val and @Getter(lazy=true) and updated docs for Log and EqualsAndHashCode to reflect new lombok 0.10 features. 2010-11-18 13:04:09 +01:00
Reinier Zwitserloot 36f9a5aabc Fixed reference to java6 core javadoc package list, which we accidentally removed a long long time ago in commit e693672cd4 2010-11-18 13:04:08 +01:00
Roel Spilker 423a9610a8 In javac, use ListBuffer to append 2010-11-18 13:04:08 +01:00
Roel Spilker 67668f8e98 Added extra javadoc links 2010-11-16 00:27:26 +01:00
Reinier Zwitserloot b3a9eeeffb Fixed reference to java6 core javadoc package list, which we accidentally removed a long long time ago in commit e693672cd4 2010-11-15 21:27:59 +01:00
Reinier Zwitserloot 415bc490dc Merge branch 'master' of github.com:rzwitserloot/lombok 2010-11-15 20:05:04 +01:00
Reinier Zwitserloot 80982cc9d6 Added copyright notices to PatchVal and PatchDelegate [trivial] 2010-11-15 19:16:42 +01:00
Reinier Zwitserloot ee560cc7fa eclipse @Delegate: Whoops; earlier fixes meant methods that existed explicitly in multiple supertypes got added that many times, resulting in duplicate method errors. Fixed. 2010-11-15 00:10:26 +00:00
Roel Spilker 1c2556b1f7 In javac, use ListBuffer to append 2010-11-15 00:44:16 +01:00
Reinier Zwitserloot d44421dada eclipse: @Delegate now no longer generates methods that you already wrote. 2010-11-14 13:43:17 +00:00
Reinier Zwitserloot fa0a027853 Removed the brainfart where final methods aren't delegated. 2010-11-14 12:17:38 +00:00
Reinier Zwitserloot 9921778f97 Merge branch 'master' of github.com:rzwitserloot/lombok 2010-11-14 12:07:51 +00:00
Reinier Zwitserloot a3765dd30a eclipse: methods with their own type variables can now be delegated.
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-14 12:06:42 +00:00
Roel Spilker 339efa00c6 Added meta-annotations 2010-11-14 12:37:15 +01:00
Roel Spilker 936a3e9edb Make @AnyAnnotation illegal to use 2010-11-14 12:37:03 +01:00
Reinier Zwitserloot d11e6e3115 Moved patch code specific to val and delegate to their own class.
@Delegate in eclipse works pretty much exactly as designed at this point!
2010-11-14 03:42:33 +00:00
Reinier Zwitserloot 2ae0341a3f Jiggered the hook point a bit for eclipse 'delegate' support and it looks like this might just work. 2010-11-13 20:21:25 +00:00