-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ExtensionMethod failed to compile in Eclipse #1695
Comments
I have the same/simliar problem in Eclipse. It does compile successfully using javac however.
Errors occurred during the build. |
The same for me, using Lombok 1.18.6. and Eclipse I could simplify the code to
The problem disappears when I remove the |
Duplicate of #1441 |
using lombok 18 in exlipse oxygen 4.7.3.a, im trying to use this extensions class:
public class ReflectionUtils {
public static String getAnnotationValue(Class<?> clazz, Class<? extends Annotation> anno) {
if (!clazz.isAnnotationPresent(anno)) {
return null;
}
}
in another class like this:
@ExtensionMethod({ReflectionUtils.class})
and call it like this:
public String getField(Class<?> clazz, String field) {
return FieldsMap.get(clazz.getAnnotationValue(Entity.class)).get(field);
}
my eclipse cant compile the entire class claiming:
Internal compiler error: java.lang.ArrayIndexOutOfBoundsException
maven compiles fine.
also, when i use an extension method with only 1 parameter (the object i extend) it compiles fine.
what can be done to make it work?
im attatching the error log of eclipse
lombok error.log
The text was updated successfully, but these errors were encountered: