-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
bugSomething isn't workingSomething isn't workingcompilerEclipse Java Compiler (ecj) related issuesEclipse Java Compiler (ecj) related issues
Milestone
Description
In both Eclipse 4.37 and 4.38 M2 nightly (I haven't tested on previous versions) I have the following error:
The type HttpSecurity from the descriptor computed for the target context is not visible here. ProfileSecurityConfiguration.java /test/src/main/java/test line 14 Java Problem
From :
public class ProfileSecurityConfiguration {
FrontEndSecurityCustomizer profileFrontEndSecurityCustomizer() {
return auth -> auth.requestMatchers("test").permitAll();
}
}
However, the full form works fine:
public class ProfileSecurityConfiguration {
FrontEndSecurityCustomizer profileFrontEndSecurityCustomizer() {
return new FrontEndSecurityCustomizer() {
@Override
public void customize(AuthorizeHttpRequestsConfigurer<HttpSecurity>.AuthorizationManagerRequestMatcherRegistry auth) {
auth
.requestMatchers("test")
.permitAll();
}
};
}
}
Minimal reproduction code:
https://github.com/Tiller/jdt-annot-issue/tree/lambda-issue
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcompilerEclipse Java Compiler (ecj) related issuesEclipse Java Compiler (ecj) related issues