mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
fix for lombok not compiling if JDK8’s javac is used as default compiler.
This commit is contained in:
1 parent
f5819f11f4
commit
932dc55b1a
4 files changed
+8
-11
No files matched your search
@@ -155,16 +155,14 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
</ivy:compile>
|
||||
|
||||
<ivy:compile destdir="build/lombok-utils" source="1.5" target="1.5" includeantruntime="false">
|
||||
<compilerarg value="-Xbootclasspath/p:lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs${path.separator}lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<src path="src/utils" />
|
||||
<exclude name="lombok/javac/**" />
|
||||
<classpath refid="build.path" />
|
||||
</ivy:compile>
|
||||
|
||||
<ivy:compile destdir="build/lombok-utils" source="1.6" target="1.6" includeantruntime="false">
|
||||
<compilerarg value="-Xbootclasspath/p:lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs${path.separator}lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<src path="src/utils" />
|
||||
<include name="lombok/javac/**" />
|
||||
<classpath location="build/lombok-utils" />
|
||||
@@ -176,8 +174,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
</copy>
|
||||
|
||||
<ivy:compile destdir="build/lombok" source="1.5" target="1.5" includeantruntime="false">
|
||||
<compilerarg value="-Xbootclasspath/p:lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs${path.separator}lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<src path="src/launch" />
|
||||
<src path="src/core" />
|
||||
<src path="src/installer" />
|
||||
@@ -188,8 +185,7 @@ the common tasks and can be called on to run the main aspects of all the sub-scr
|
||||
</ivy:compile>
|
||||
|
||||
<ivy:compile destdir="build/lombok" source="1.6" target="1.6" includeantruntime="false">
|
||||
<compilerarg value="-Xbootclasspath/p:lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs" />
|
||||
<compilerarg value="-Xbootclasspath/p:build/stubs${path.separator}lib/openJDK6Environment/rt-openjdk6.jar" />
|
||||
<src path="src/core" />
|
||||
<src path="src/delombok" />
|
||||
<include name="lombok/javac/**" />
|
||||
|
||||
@@ -59,7 +59,7 @@ public class HandlePrintAST extends EclipseAnnotationHandler<PrintAST> {
|
||||
try {
|
||||
stream.close();
|
||||
} catch (Exception e) {
|
||||
Lombok.sneakyThrow(e);
|
||||
throw Lombok.sneakyThrow(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class HandlePrintAST extends JavacAnnotationHandler<PrintAST> {
|
||||
try {
|
||||
stream.close();
|
||||
} catch (Exception e) {
|
||||
Lombok.sneakyThrow(e);
|
||||
throw Lombok.sneakyThrow(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -224,7 +224,8 @@ public class PatchExtensionMethod {
|
||||
if (methodCall.arguments != null) arguments.addAll(Arrays.asList(methodCall.arguments));
|
||||
List<TypeBinding> argumentTypes = new ArrayList<TypeBinding>();
|
||||
for (Expression argument : arguments) {
|
||||
argumentTypes.add(argument.resolvedType);
|
||||
if (argument.resolvedType != null) argumentTypes.add(argument.resolvedType);
|
||||
// TODO: Instead of just skipping nulls entirely, there is probably a 'unresolved type' placeholder. THAT is what we ought to be adding here!
|
||||
}
|
||||
MethodBinding fixedBinding = scope.getMethod(extensionMethod.declaringClass, methodCall.selector, argumentTypes.toArray(new TypeBinding[0]), methodCall);
|
||||
if (fixedBinding instanceof ProblemMethodBinding) {
|
||||
|
||||
Reference in new issue
Block a user