[
https://issues.jboss.org/browse/JBIDE-21857?page=com.atlassian.jira.plugi...
]
Andre Dietisheim edited comment on JBIDE-21857 at 11/29/16 11:52 AM:
---------------------------------------------------------------------
[~mlabuda] basic, non-structural changes to a method work for me without any problems.
There's no dialog popping up, the change is being deployed and the changed code is
being run:
# EXEC: Open OpenShift application wizard
# EXEC select eap64-basic-s2i template and proceed to next wizard page
# EXEC: change CONTEXT_DIR param to helloworld,
# EXEC: click Finish and let import application to your workspace once you are prompted.
# EXEC: Create a new OpenShift 3 server adapter for the application.
# EXEC: Restart server adapter in debug mode.
# EXEC: pick "Show In > Web Browser" in the context menu of your Server
adapter
# ASSERT: Browser opens up showing a page with "Hello World"
# EXEC: Open HelloService.java in Java editor, change #createHelloMessage method to return
"Oh hey, hello " + name + "!". Save editor
{code:title= HelloService#createHelloMessage}
return "Oh hey, hello " + name + "!". Save editor;
{code}
# ASSERT: console shows up and you see rsync transferring the change
# EXEC: refresh your browser
Result:
The web browser page now shows the changed text: "Oh hey, hello World!"
was (Author: adietish):
[~mlabuda] basic, non-structural changes to a method work for me without any problems.
There's no dialog popping up, the change is being deployed and the changed code is
being run:
# EXEC: Open OpenShift application wizard
# EXEC select eap64-basic-s2i template and proceed to next wizard page
# EXEC: change CONTEXT_DIR param to helloworld,
# EXEC: click Finish and let import application to your workspace once you are prompted.
# EXEC: Create a new OpenShift 3 server adapter for the application.
# EXEC: Restart server adapter in debug mode.
# EXEC: pick "Show In > Web Browser" in the context menu of your Server
adapter
# ASSERT: Browser opens up showing a page with "Hello World"
# EXEC: Open HelloService.java in Java editor, change #createHelloMessage method to return
"Oh hey, hello " + name + "!". Save editor
# ASSERT: console shows up and you see rsync transferring the change
# EXEC: refresh your browser
Result:
The web browser page now shows the changed text: "Oh hey, hello World!"
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)