Skip to content

AbstractContextSource cannot be instantiated on JDK16+ #570

@dreis2211

Description

@dreis2211

Hi,

I'm currently working on JDK 16 support for Spring Boot (see spring-projects/spring-boot#24402) and noticed that AbstractContextSource cannot be instantiated as of JDK16+ anymore.

I guess this is related to the new strong encapsulation being enabled by default (see https://openjdk.java.net/jeps/396).

I can currently workaround this by passing --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED but users would have the same problem again.

Cheers,
Christoph

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions