You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's make sure issue is not already fixed in latest builds first.
[NO ] I verified I can reproduce this issue against latest Integration Build of Eclipse SDK
Steps to reproduce
From a fresh installation and clean workspace:
with eclipse-jee-2024-12-R-win32-x86_64.zip
and plugin: Lombok v1.18.36
1
1
which means both 2 methods have annotation object
But got: <what is the actual undesired behavior?>
1
0
I encountered this issue when compiling Test.java with Eclipse: 'The method object with return type ClassInf has no annotation object.'
However, this issue does not occur when I compile Test.java using IntelliJ IDEA or javac.
Tested under this environment:
OS & version:
Win10
Eclipse IDE/Platform version (as shown in Help > About):
Version: 2024-12 (4.34.0)
Build id: 20241128-0757
*JDK:
jdk-21.0.5
The text was updated successfully, but these errors were encountered:
Let's make sure issue is not already fixed in latest builds first.
[NO ] I verified I can reproduce this issue against latest Integration Build of Eclipse SDK
Steps to reproduce
From a fresh installation and clean workspace:
with eclipse-jee-2024-12-R-win32-x86_64.zip
and plugin: Lombok v1.18.36
I tried Test.java:
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.reflect.Method;
public class Test {
public static void main(String[] args) {
Method[] methods = ChildInterface.class.getMethods();
for(Method method: methods) {
if(method.getName().contains("select")) {
System.out.println(method.getAnnotations().length);
}
}
}
}
interface ParentInterface{
V selectById();
}
interface ChildInterface extends ParentInterface{
@anno
default ImplClass selectById() {
return null;
}
}
interface ClassInf{}
class ImplClass implements ClassInf{}
@retention(RetentionPolicy.RUNTIME)
@target(ElementType.METHOD)
@interface anno{
}
Run Test.java
I expected: <what was the expected outcome?>
1
1
which means both 2 methods have annotation object
But got: <what is the actual undesired behavior?>
1
0
I encountered this issue when compiling Test.java with Eclipse: 'The method object with return type ClassInf has no annotation object.'
However, this issue does not occur when I compile Test.java using IntelliJ IDEA or javac.
Tested under this environment:
OS & version:
Win10
Eclipse IDE/Platform version (as shown in Help > About):
Version: 2024-12 (4.34.0)
Build id: 20241128-0757
*JDK:
jdk-21.0.5
The text was updated successfully, but these errors were encountered: