Skip to content

Commit

Permalink
Print correct profiles in native image
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a6c902)
  • Loading branch information
radcortez authored and gsmet committed Dec 4, 2023
1 parent 0719a47 commit 0469ec8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,6 @@ void build(List<StaticBytecodeRecorderBuildItem> staticInitTasks,
startupContext, mv.getMethodParam(0));

mv.invokeStaticMethod(CONFIGURE_STEP_TIME_ENABLED);
ResultHandle profiles = mv
.invokeStaticMethod(ofMethod(ConfigUtils.class, "getProfiles", List.class));

tryBlock = mv.tryBlock();
tryBlock.invokeStaticMethod(CONFIGURE_STEP_TIME_START);
Expand Down Expand Up @@ -298,7 +296,7 @@ void build(List<StaticBytecodeRecorderBuildItem> staticInitTasks,
tryBlock.load(applicationInfo.getVersion()),
tryBlock.load(Version.getVersion()),
featuresHandle,
profiles,
tryBlock.invokeStaticMethod(ofMethod(ConfigUtils.class, "getProfiles", List.class)),
tryBlock.load(LaunchMode.DEVELOPMENT.equals(launchMode.getLaunchMode())),
tryBlock.load(launchMode.isAuxiliaryApplication()));

Expand Down

0 comments on commit 0469ec8

Please sign in to comment.