Closed
Description
When calling a method of Java class in Spring Security library, Scala code failed to compile.
I saw similar errors when searching error message in this project, but it seems all problem got fixed in earlier version.
Compiler version
3.0.1
Minimized code
import org.springframework.security.config.annotation.web.builders.HttpSecurity
object TestCyclicReference:
def securityFilter(http: HttpSecurity) = http.authorizeRequests
The above code need dependency org.springframework.security:spring-security-config:5.5.2 to compile.
Output
TestCyclicReference.scala:4:44 Cyclic reference involving class AbstractInterceptUrlRegistry [4:44]
The code at error position: http.authorizeRequests
Expectation
The code should be compiled successful