Skip to content

Migrate from deprecated GhidraProject.importProgram to ProgramLoader#110

Closed
sei-eschwartz wants to merge 1 commit into
CERTCC:mainfrom
sei-eschwartz:fix-importprogram-deprecation
Closed

Migrate from deprecated GhidraProject.importProgram to ProgramLoader#110
sei-eschwartz wants to merge 1 commit into
CERTCC:mainfrom
sei-eschwartz:fix-importprogram-deprecation

Conversation

@sei-eschwartz

Copy link
Copy Markdown

Summary

  • GhidraProject.importProgram(File) is @Deprecated(since = "12.0", forRemoval = true) with the Javadoc directing callers to use ProgramLoader directly
  • Replace both test call sites (GhiHornTestEnv.importTestProgram and OOAnalyzerTest.doTest) with ProgramLoader.builder().source(...).project(...).monitor(DUMMY).load()

Test plan

  • compileTestJava — no deprecation warnings

GhidraProject.importProgram(File) is deprecated since 12.0 with
forRemoval=true. Replace with ProgramLoader.builder() directly in
the two test call sites.
@sei-eschwartz sei-eschwartz self-assigned this Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants