Skip to content

Cyclic reference involving class when calling method of Java class on Scala 3.0.1 #13336

Closed
@wiwiwa

Description

@wiwiwa

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions