apache / apache/pekko-connectors
DirectoryChangesSource.java does not compile with Java 21
- Dominant language
- Scala
- Stars
- 82
- Forks
- 50
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 78
Description
The CI build applies -Werror when CI build happens (see project/Common.scala)
DirectoryChangesSource.java uses a com.sun class that has been deprecated.
I tried adding `@SuppressWarnings("deprecation")` in various places but the Werror check still fails.
[warn] /home/runner/work/pekko-connectors/pekko-connectors/file/src/main/java/org/apache/pekko/stream/connectors/file/impl/DirectoryChangesSource.java:103:1: com.sun.nio.file.SensitivityWatchEventModifier in com.sun.nio.file has been deprecated and marked for removal
Contributor guide
Research direction
Start with project/Common.scala to understand the CI -Werror configuration, then inspect DirectoryChangesSource.java around line 103 and the com.sun.nio.file.SensitivityWatchEventModifier warning. Run the CI build on Java 21; done means the file compiles without the deprecation warning under -Werror.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, scala
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100