openrewrite / openrewrite/rewrite-migrate-java

Include adding javafx dependencies with JDK17 upgrade recipe

Open
#472 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement recipe
Dominant language
Java
Stars
156
Forks
130
Avg merge
20h 57m
Merged PRs (30d)
21

Description

What problem are you trying to solve?

I am running the JDK17 update recipe. But once the recipe is run and I am trying to test it out I am getting the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project topology: Compilation failure: Compilation failure:
[ERROR] package javafx.util does not exist
[ERROR] package javafx.util does not exist
[ERROR] cannot find symbol
[ERROR] symbol: class Pair
[ERROR] location: class 

Describe the solution you'd like

The solution should be incorporated in the JDK17 upgrade recipe only so that the solution automatically gets remdified.

Have you considered any alternatives or workarounds?

Tried using java.util.Map.Entry but also some in that sense i needed to change the user code

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the JDK17 update recipe and inspecting the Maven project after it runs, focusing on the missing javafx.util dependency. Done means the recipe adds the required JavaFX dependencies automatically and the migrated project compiles without requiring user-code changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.