[
https://issues.apache.org/jira/browse/FLINK-36448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887865#comment-17887865
]
Xintong Song commented on FLINK-36448:
--------------------------------------
[~mallikarjuna],
I'm not entirely sure, but this seems related:
[https://stackoverflow.com/questions/69306905/error-package-sun-rmi-registry-is-declared-in-module-java-rmi-which-does-not]
I think we have added such options in pom files, which might not be recognized
by the IDE. Have you tried "Reload all maven project" in IDE?
cc [~sxnan]
> Compilation fails in IntelliJ
> -----------------------------
>
> Key: FLINK-36448
> URL: https://issues.apache.org/jira/browse/FLINK-36448
> Project: Flink
> Issue Type: Bug
> Components: API / Core
> Reporter: Kumar Mallikarjuna
> Priority: Major
> Labels: build, build-failure, intellij
>
> I'm unable to build master (as of "c9c946f") with IntelliJ. Compilation and
> tests work just fine when using Maven directly. However building the project
> and running unit tests with IntelliJ fail with the below error:
>
> {code:java}
> /Users/kumarmallikarjuna/Workspace/confluent/flink/flink-core/src/main/java/org/apache/flink/management/jmx/JMXServer.java
> package sun.rmi.registry is not visible
> (package sun.rmi.registry is declared in module java.rmi, which does not
> export it to the unnamed module)
> sun.rmi.registry{code}
> I also tried the "Use '–release' option for cross-compilation" setting in
> IntelliJ but that leads to the same error. I am using JDK11 for compilation.
> cc: [~mapohl]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)