[
https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugi...
]
Marián Labuda updated JBIDE-21857:
----------------------------------
Steps to Reproduce:
ASSERT: Have a running OpenShift java application on OpenShift with a server adapter. For
example the one instantiated by eap64-basic-template.
EXEC: Create a new OpenShift 3 server adapter for the application.
EXEC: Restart server adapter in debug mode.
EXEC: Rename method or add a field to class.
ASSERT: Dialog warning about failed HCR is shown.
EXEC: Reload the module.
EXEC: Make change HCR compatible (e.g. method body).
RESULT: HCR compatible change hasn't take effect.
EXPECTED RESULT: Upon module restart and HCR compatible change this change will be
visible, debugger get back to sync.
was:
ASSERT: Have a running OpenShift java application on OpenShift with a server adapter. For
example the one instantiated by eap64-basic-template.
EXEC: Create a new OpenShift 3 server adapter for the application.
EXEC: Restart server adapter in debug mode.
EXEC: Rename method or add a field to class.
ASSERT: Dialog warning about failed HCR is shown.
EXEC: Reload the module.
EXEC: Make change HCR compatible (e.g. method body).
RESULT: HCR compatible change hasn't take effect.
EXPECTED RESULT: Upon module restart and HCR compatible change this change will be
visible.
Rename a private method in a class
Observe: you get a dialog saying the HCR has failed and offering to reload the module
Reload the module
Now make a further change that is HCR-compatible (add a printf)
Observe: the HCR works.
Hot code replacement doesn't work on OpenShift
----------------------------------------------
Key: JBIDE-21857
URL:
https://issues.jboss.org/browse/JBIDE-21857
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.3.1.Beta2
Reporter: Fred Bricon
Assignee: Rob Stryker
Fix For: 4.4.2.Final, 4.4.3.AM1, 4.5.0.AM1
Attachments: HCRFailure.zip
When enabling debug mode on an EAP server deployed on OpenShift, locally changing a class
file will :
- work sometimes when only the content of the method changed, but could fail in some
other occasions with the Debugger saying the JDK is out of sync
- will always fail if a method signature changed, the debugger saying JDK is out of sync
Restarting the deployed module (with the .dodeploy flag) doesn't fixes the issue (as
opposed to the same tweak ahen running on a local EAP server)
This may be caused by running OpenJDK? Does it support the same level of debugging as
Oracle JDK?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)