From d8d47c687d7ec22e481cf10782f1f889485c39fa Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 15 Aug 2011 22:11:25 +0200 Subject: Integrated Philipp's proof-of-concept delombok in javac7 fix, and used some creative stubbing to ensure both the javac7 and the javac6 source file can be loaded in the same project in eclipse without dependency warnings. --- src/stubs/com/sun/tools/javac/file/BaseFileObject.java | 10 ++++++++++ src/stubs/com/sun/tools/javac/file/JavacFileManager.java | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 src/stubs/com/sun/tools/javac/file/BaseFileObject.java create mode 100644 src/stubs/com/sun/tools/javac/file/JavacFileManager.java (limited to 'src/stubs/com/sun/tools/javac/file') diff --git a/src/stubs/com/sun/tools/javac/file/BaseFileObject.java b/src/stubs/com/sun/tools/javac/file/BaseFileObject.java new file mode 100644 index 00000000..d072fc33 --- /dev/null +++ b/src/stubs/com/sun/tools/javac/file/BaseFileObject.java @@ -0,0 +1,10 @@ +/* + * These are stub versions of various bits of javac-internal API (for various different versions of javac). Lombok is compiled against these. + */ +package com.sun.tools.javac.file; + +import javax.tools.JavaFileObject; + +public abstract class BaseFileObject implements JavaFileObject { + protected BaseFileObject(JavacFileManager fileManager) {} +} diff --git a/src/stubs/com/sun/tools/javac/file/JavacFileManager.java b/src/stubs/com/sun/tools/javac/file/JavacFileManager.java new file mode 100644 index 00000000..ba5f428a --- /dev/null +++ b/src/stubs/com/sun/tools/javac/file/JavacFileManager.java @@ -0,0 +1,6 @@ +/* + * These are stub versions of various bits of javac-internal API (for various different versions of javac). Lombok is compiled against these. + */ +package com.sun.tools.javac.file; + +public class JavacFileManager {} -- cgit