Skip to content

The type ... from the descriptor computed for the target context is not visible here #4632

@tiller

Description

@tiller

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

Labels

bugSomething isn't workingcompilerEclipse Java Compiler (ecj) related issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions