Commit Graph
162 Commits
Author SHA1 Message Date
Roel Spilker e81dd1edbf Changed the generated javadoc to use links to the sun documentation for references to java6 se classes 2009-07-17 16:44:05 +02:00
Roel Spilker 9925c04782 Made background of found Eclipses white 2009-07-17 15:27:18 +02:00
Roel Spilker b1d8d1dfc4 Made the detection of drives more robust on Windows 2009-07-17 15:26:09 +02:00
Reinier Zwitserloot d87a5204cf Layout for the features pages. 2009-07-17 00:03:08 +02:00
Reinier Zwitserloot 846b8d0211 Made the downloadinfo on the index page a bit smaller (it was overflowing its container), and removed the fun but unreliable glow effect. 2009-07-16 23:00:41 +02:00
Reinier Zwitserloot 08a7452f3c Added explanation for the download info text that you may have to run 'java -jar lombok.jar' in case some fucktard archiver tool overwrote the default action for jar files. 2009-07-16 22:41:47 +02:00
Reinier Zwitserloot 6187d50595 Moved this script to copy the recently built lombok.jar to the same location that the installer uses. 2009-07-16 22:29:58 +02:00
Reinier Zwitserloot c4ced5e738 Removed a debug print. 2009-07-16 21:53:18 +02:00
Roel Spilker a423175f9d Added icon to frame, set background color of found eclipses to WHITE, use
platform path separator in installer "What do I do" text.
2009-07-16 21:27:59 +02:00
Roel Spilker 02a8102dd1 replaced line endings. 2009-07-14 23:39:38 +02:00
Roel Spilker 8ada852308 Used reflection to call Apple native look to avoid errors in a non-mac
development environment
2009-07-14 23:37:04 +02:00
Reinier Zwitserloot f99fff3042 Added our test video 2009-07-14 12:27:18 +02:00
Reinier Zwitserloot aa40323ae8 Fixed a problem where @Data with a static constructor and generics params on the class would generate errors regarding IllegalArgumentException in setSourcePosition in ASTNode. 2009-07-14 00:15:36 +02:00
Reinier Zwitserloot ba6f353fd8 Made the help text when you click on the download link properly positioned. 2009-07-13 21:43:19 +02:00
Reinier Zwitserloot 2adf65aeb3 Example for the @Data annotation. 2009-07-12 00:39:18 +02:00
Reinier Zwitserloot 5fef32c1f5 More fixes to avoid erroneous "getter/setter is already there, not generating it" warnings
when the getter/setter already there was in fact generated by lombok, and fixed a bug
in eclipse where a boolean array's getter method would be called isFoo() instead of getFoo().
2009-07-12 00:35:17 +02:00
Reinier Zwitserloot 12d44e59c5 'fixed' data up a bit by including only the final fields for the constructor.
Also fixed a bug in javac's toString() generation for the @Data constructor. It did
not include the transient fields.
2009-07-11 11:39:45 +02:00
Reinier Zwitserloot 98382c6640 Added examples with pre and post lombok conversion for the website. 2009-07-11 11:34:29 +02:00
Reinier Zwitserloot f84f3a1bc8 The setter/getter handlers now mark themselves as not wanted to be called upon anymore when reporting errors.
They were logging 4 or more identical warnings per problem before this change.
2009-07-11 11:12:47 +02:00
Reinier Zwitserloot bc44e76b7d Made 'printContent=true' work for types as well as method bodies/initializers. 2009-07-11 11:11:32 +02:00
Reinier Zwitserloot 21aa78996a Added the github 'fork me' banner. 2009-07-11 00:55:03 +02:00
Reinier Zwitserloot 762bcba007 More work on the website. 2009-07-11 00:43:53 +02:00
Reinier Zwitserloot 08bc31232f I forgot; HandleSetter/HandleGetter already act appropriately with static modifiers. 2009-07-10 17:59:14 +02:00
Reinier Zwitserloot e25fd4fd9f Worked a lot on the 'what's next' documentation. 2009-07-10 16:14:48 +02:00
Reinier Zwitserloot 97c6436fe6 Found ANOTHER javac bug. 2009-07-10 02:47:24 +02:00
Reinier Zwitserloot 6f9a776367 Website. 2009-07-09 05:10:09 +02:00
Reinier Zwitserloot 58d0ada6d7 Made 'Throwable.class' the default for SneakyThrows. 2009-07-08 23:47:43 +02:00
Reinier Zwitserloot f6778b0426 Renamed all true names of 'eclipse' to 'Eclipse' (but not the eclipse package, of course),
and fixed a showstopper bug in the installer that would add -javaagent:lombok.jar to
eclipse.ini, which is wrong of course; it needs to be lombok.eclipse.agent.jar.
2009-07-08 23:44:43 +02:00
Reinier Zwitserloot 8534a8e0a5 Fixed javadoc problems, and added a javadoc target to the build script. 2009-07-06 06:08:05 +02:00
Reinier Zwitserloot 527b992a07 Last massive documentation dump. All basic javadoc is now done, though especially the docs
on the lombok annotations in the lombok package need far more massaging.

Also added a feature to HandleSynchronized to not auto-generate the locker fields if
a specific name is provided (because, imagine you typoed those. You'd never find it!)
2009-07-06 05:48:42 +02:00
Reinier Zwitserloot 8d4c5369ee More documentation. 2009-07-05 22:23:01 +02:00
Reinier Zwitserloot 7dd061c263 More documentation. 2009-07-05 22:01:51 +02:00
Reinier Zwitserloot a9fe617303 Final touches on the installer:
- some bug fixes for linux
 - renamed InstallerWindow to Installer
 - Apple-specific prettification added (dock icon, app name)
 - more documentation.

Also, I started added an open source licence to all files.
2009-07-05 21:48:24 +02:00
Reinier Zwitserloot 1f8a907187 [TRIVIAL] 2009-07-05 00:50:44 +02:00
Reinier Zwitserloot e7492d444c W00t - written an installer that should work on linux (sort of), windows, and Mac OS X. Bumped the version number to celebrate, and changed build to roll the agent.jar into the main jar, and
change the executable class from the minimal help that was there to the installer. That minimal help thing (ShowUserHelp.java) is now gone.
2009-07-05 00:49:54 +02:00
Reinier Zwitserloot 938d4bb9f2 These are nice, but kinda NSFW. 2009-07-05 00:48:59 +02:00
Reinier Zwitserloot 4bf64a0346 A start on the installer. 2009-07-03 16:02:37 +02:00
Reinier Zwitserloot cf594564be Fine-tuning eclipse's error reporting found some minor issues and even 1 bug that would show up rarely or not at all. 2009-07-03 16:01:14 +02:00
Reinier Zwitserloot c3e4ed5d78 [DOC] 2009-07-02 00:27:22 +02:00
Reinier Zwitserloot 17d81608db Added @SneakyThrows support for javac. W00t. 2009-07-01 22:36:50 +02:00
Reinier Zwitserloot d174201c7f [TRIVIAL] 2009-07-01 22:36:35 +02:00
Reinier Zwitserloot 99d9728ede Support for @SneakyThrows in eclipse. 2009-07-01 22:09:40 +02:00
Reinier Zwitserloot efe3931cf3 Added ability to @Synchronized to explicitly name the lock object.
Spruced up @Cleanup's position settings and also forced initialization, because the error appears in a screwed up place if you don't, and we can't seem to move it.
2009-07-01 20:16:26 +02:00
Reinier Zwitserloot 194c990f64 Added @Synchronized support to javac. Seems to work well. 2009-07-01 17:21:53 +02:00
Reinier Zwitserloot 34780e3ab5 Added a bonus feature to @Cleanup: Assigning a @Cleanup marked variable to anything else generates a warning. 2009-07-01 15:58:24 +02:00
Reinier Zwitserloot db4819183f @Synchronization support for eclipse! Seems to work fine, just need to write the same thing for javac. 2009-07-01 03:38:03 +02:00
Reinier Zwitserloot 43992ff596 Pretty big fix for reparse() - now uses rebuild(), which also received a pretty big fix in making the loop detection algorithm far more robust. Still not sure what was the problem, but the robustificationization helped. 2009-07-01 03:36:52 +02:00
Reinier Zwitserloot 23ba6c2628 Added HandleCleanup support for javac, and fixed a bug in AST.java which caused nested @Cleanup annotations to simply be ignored (rebuild was broken).
HandleCleanup seems to work swimmingly now on both targets. yay!
2009-07-01 00:26:19 +02:00
Reinier Zwitserloot 008bca2045 Saved the previous extensive commit message for posterity in TODO.txt 2009-06-30 18:37:50 +02:00
Reinier Zwitserloot 37006cb295 After a great many iterations, Cleanup has now been reduced in functionality (exceptions from the cleanup call WILL mask exceptions from the body - this isn't intended, but it's just not possible to fix this without java 7 features or requiring a rewrite of the class file data.
Tried tactics, and why they won't work:

 - Replace every 'return', 'break', and 'continue' statement (for the latter 2, only if they break/continue out of the try block) with a block that first sets a uniquely named flag before doing the operation.
   Then, check that flag in the finally block to see if the cleanup call should be guarded by a try/catchThrowable. This doesn't work, because its not possible to instrument the 4th way out of a try block without throwing an exception: Just letting it run its course. Tossing a "#flag = true;" at the end may cause a compile time error if the code is not reachable, but figuring that out requires resolution and quite a bit of analysis.

 - Put catch blocks in for all relevant exceptions (RuntimeException, Error, all exceptions declared as thrown by the method, and all types of exceptions of the catch blocks of encapsulating try blocks.
   This doesn't work, partly because it'll fail for sneakily thrown exceptions, but mostly because you can't just catch an exception listed in the 'throws' clause of the method body; catching an exception
   that no statement in the try block can throw is a compile time error, but it is perfectly allright to declare these as 'thrown'.

 - Put in a blanket catch Throwable to set the flag. Two problems with this:
   First, sneaky throw can't be done. Thread.stop invokes a security manager and triggers a warning, Calling a sneakyThrow method creates a runtime dependency on lombok, constructing a sneakyThrow in-class creates visible methods or at least visible class files, and creating a new class via Class.loadClass would be very slow without caching - which gets you the same issues.
   Secondly, this would mean that any statements in the try body that throw an exception aren't flagged to the user as needing to be handled.

The Cleanup annotation now also calls the cleanup method for you, and will call it at the END of the current scope. The following plans have been tried and abandoned:

 - Cleanup right after the final mention. This doesn't work, because the final mention may not be the final use-place. Example:
   @Cleanup InputStream in = new FileInputStream(someFile);
   InputStreamReader reader = new InputStreamReader(in);
   reader.read(); //oops - in is already closed by now.

 - Require an explicit var.cleanup() call and consider that the cue to close off the try block.
   This doesn't work either, because now variables set in between the @Cleanup declaration and the var.cleanup() call become invisible to following statements. Example:
   @Cleanup InputStream in = new FileInputStream(someFile);
   int i = in.read();
   in.close();
   System.out.println(i); //fail - i is inside the generated try block but this isn't, so 'i' is not visible from here.

By running to the end of visible scope, all these problems are avoided. This does remove the flexibility of declaring where you want a close call to be executed, but there are two mitigating factors available:

 1) Create an explicit scope block. You can just stick { code } in any place where you can legally write a statement, in java. This is relatively unknown, so I expect most users will go for:

 2) Just call close explicitly. I've yet to see a cleanup method which isn't idempotent anyway (calling it multiple times is no different than calling it once).

During the course of investigating these options, the AST code has been extended to support live replacement of any child node, including updating the actual underlying system AST as well as our own.
Unfortunately, this code has NOT been tested. It was rather a lot of work so I'm leaving it in, and at least for eclipse it even seemed to work.
2009-06-30 18:22:38 +02:00