Skip to content

refactor: replace deprecated EXTEND_CLASS_NAMES with SUPER_CLASSES#70

Open
lukaszlenart wants to merge 1 commit intomainfrom
refactor/replace-deprecated-extend-class-names
Open

refactor: replace deprecated EXTEND_CLASS_NAMES with SUPER_CLASSES#70
lukaszlenart wants to merge 1 commit intomainfrom
refactor/replace-deprecated-extend-class-names

Conversation

@lukaszlenart
Copy link
Copy Markdown
Member

Summary

  • Replace the deprecated JavaClassReferenceProvider.EXTEND_CLASS_NAMES option with the supported SUPER_CLASSES option in ConstantValueClassConverter
  • Guard the SUPER_CLASSES assignment so it is only set when baseClass is non-empty, preserving the existing "any concrete non-interface class" semantics for constants that intentionally pass "" (e.g. struts.configuration, struts.mapper.class)
  • Remove the obsolete //noinspection deprecation suppression and TODO comment

Test plan

  • Verified StrutsConstantManagerWithStrutsPluginXmlTest passes (exercises restricted base-class path via struts.objectFactory)
  • Verified all *StrutsConstant* tests pass
  • Confirmed no remaining references to EXTEND_CLASS_NAMES in source tree
  • Confirmed no new linter warnings introduced

Made with Cursor

Replace JavaClassReferenceProvider.EXTEND_CLASS_NAMES (deprecated, scheduled
for removal) with the supported SUPER_CLASSES option in ConstantValueClassConverter.

Guard the option so it is only set when baseClass is non-empty, preserving
the existing "any concrete non-interface class" semantics for constants like
struts.configuration and struts.mapper.class that intentionally pass "".

🤖 Generated by AI Assistant

Made-with: Cursor
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

🔌 Plugin artifact ready for testing!

Download from Actions artifacts

Artifact: struts2-261.18970.1

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.

1 participant