aboutsummaryrefslogtreecommitdiff
path: root/src/stubs/com/sun/tools/javac/util
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2011-08-15 22:11:25 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2011-08-15 22:11:25 +0200
commitd8d47c687d7ec22e481cf10782f1f889485c39fa (patch)
tree5cb3477583effdd1073d5bb66439dc5549a7e107 /src/stubs/com/sun/tools/javac/util
parent7773bd4e60784b9018e9eed82a5a41e0b51c3024 (diff)
downloadlombok-d8d47c687d7ec22e481cf10782f1f889485c39fa.tar.gz
lombok-d8d47c687d7ec22e481cf10782f1f889485c39fa.tar.bz2
lombok-d8d47c687d7ec22e481cf10782f1f889485c39fa.zip
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.
Diffstat (limited to 'src/stubs/com/sun/tools/javac/util')
-rw-r--r--src/stubs/com/sun/tools/javac/util/Context.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/stubs/com/sun/tools/javac/util/Context.java b/src/stubs/com/sun/tools/javac/util/Context.java
new file mode 100644
index 00000000..06b8ff4d
--- /dev/null
+++ b/src/stubs/com/sun/tools/javac/util/Context.java
@@ -0,0 +1,31 @@
+/*
+ * 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.util;
+
+public class Context {
+ public static class Key<T> {
+ }
+
+ public interface Factory<T> {
+ T make(Context c);
+ T make();
+ }
+
+ public <T> void put(Key<T> key, Factory<T> fac) {
+ }
+
+ public <T> void put(Key<T> key, T data) {
+ }
+
+ public <T> void put(Class<T> clazz, T data) {
+ }
+
+ public <T> T get(Key<T> key) {
+ return null;
+ }
+
+ public <T> T get(Class<T> clazz) {
+ return null;
+ }
+}