aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/java/lombok
AgeCommit message (Collapse)Author
2009-09-01Removed the various debug assist code in ClassLoaderWorkaround; the feature ↵Reinier Zwitserloot
works now, no longer needed.
2009-09-01Fixed issue #26: Starting eclipse's help feature just shows you a 500 error, ↵Reinier Zwitserloot
ond depending on your eclipse version, a long stack trace. The problem boiled down to the JSP compiler used by the help system also being instrumented with lombok, but that's not exactly the environment lombok was expecting. Fixed by simply disabling lombok when the environments don't match what we expect. In the process, the instrumentation has been made a little more robust; multiple separate OSGi modules can all be instrumented now, instead of the first one winning.
2009-07-05More documentation.Reinier Zwitserloot
2009-06-19Moved ClassLoaderWorkaround from 'java.lombok' to 'java.lombok.eclipse' as ↵Reinier Zwitserloot
its clearly eclipse-specific.
2009-06-12After spending 3 hours chasing down a NullPointerException inside the native ↵Reinier Zwitserloot
method that handles method.invoke... figured out that I accidentally added a second transform() method and that one was being found, and that somehow causes the problem. The locating of the right transform method now also checks params. A 'method not found' is faaaaaaaaaaaaaaar easier to debug than picking the wrong one out of the lineup.
2009-06-12Singularly massive code change, too hard to document. Basically, hooking now ↵Reinier Zwitserloot
occurs in the two most sane places: - After the parser is done building a first rendition of the AST. (Usually lightweight and missing method bodies etc) - After the parser is done taking such a lightweight AST and filling in the gaps. Lombok then builts its own bidirectional and somewhat saner AST out of this, and hands this saner AST off for treatment. Things in the AST can be marked as 'handled'. This seems to work swimmingly and should allow us to easily identify the annotations that are for us, and work our magic, no matter where they appear or on what, including stuff inside method bodies.
2009-06-09Many changes:Reinier Zwitserloot
- Split off the actual agent work into a separate src package in preparation for creating separate jars. Involved a lot of renaming - Renamed TransformCompilationUnitDeclaration to TransformEclipseAST, as this class will also be transforming e.g. MethodDeclaration objects. - Expanded the patching to also patch in transform calls when the parser fills in the Statement array for existing constructors, methods, and initializers. - Redesigned the ClassLoaderWorkaround class quite a bit. - Positioning should not work correctly ('jump to method' should jump to the getter annotation). (Apparently, Clinit objects are always fully parsed in the original run, so no need to patch anything there).