Skip to content

Ignore -Xjcl options #22066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

keithc-ca
Copy link
Contributor

@keithc-ca keithc-ca commented Jun 9, 2025

Completely ignore -Xjcl options.

Remove:

  • J9JavaVM.jclDLLName
  • addXjcl()
  • checkJCL()
  • J9SYSPROP_ERROR_INVALID_JCL
  • J9VMInternals.j9Config
  • J9VMInternals.j9Version

Remove NLS messages that were only used in support of -Xjcl:

  • J9NLS_JCL_INCOMPATIBLE_CL
  • J9NLS_JCL_INCOMPATIBLE_CL_VERSION
  • J9NLS_JCL_INCOMPATIBLE_CL_VERSION_JCL
  • J9NLS_JCL_INCOMPATIBLE_CL_VERSION_VM
  • J9NLS_JCL_NOTJ9
  • J9NLS_JCL_TRY_JCL

Eliminates issues discovered while investigating #22056.

@pshipton
Copy link
Member

pshipton commented Jun 9, 2025

I think we should just delete all this code. I can't remember the original purpose, I suspect it was related to J2ME. The values are never updated so even if there was some incompatibility between the VM and JCL it wouldn't be detected, and I don't think anybody would try to mismatch the VM and JCL code anyway.

@keithc-ca
Copy link
Contributor Author

I think we should just delete all this code

Do you mean to say we should delete everything in support of the -jcl option?

@pshipton
Copy link
Member

Deleting -Xjcl: is a bigger scope than I was thinking, which was to delete doJCLCheck() and checkJCL(). Not sure we could stop accepting -Xjcl: without breaking somebody, but we could accept and ignore it.

Remove:
* J9JavaVM.jclDLLName
* addXjcl()
* checkJCL()
* J9SYSPROP_ERROR_INVALID_JCL
* J9VMInternals.j9Config
* J9VMInternals.j9Version

Signed-off-by: Keith W. Campbell <[email protected]>
These NLS messages were only used in support of -Xjcl:
* J9NLS_JCL_INCOMPATIBLE_CL
* J9NLS_JCL_INCOMPATIBLE_CL_VERSION
* J9NLS_JCL_INCOMPATIBLE_CL_VERSION_JCL
* J9NLS_JCL_INCOMPATIBLE_CL_VERSION_VM
* J9NLS_JCL_NOTJ9
* J9NLS_JCL_TRY_JCL

Signed-off-by: Keith W. Campbell <[email protected]>
@keithc-ca keithc-ca changed the title Fix inconsistencies related to checkJCL() Ignore -Xjcl options Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants