Java 11 Support

193 views
Skip to first unread message

Thomas Heigl

unread,
Oct 12, 2018, 2:44:29 PM10/12/18
to HotswapAgent
Hi,

I'm currently using HotswapAgent with JDK8 in my project. I switched to it from jRebel earlier this year and it works great for my application (Spring, Hibernate, Wicket).

We skipped JDK9 and 10, but would like to move to JDK11 as soon as possible since it is first LTS release since JDK8.

Are you planning to support JDK11? If so, do you have any timeframe for it?

Best regards,

Thomas

vladimir dvorak

unread,
Oct 16, 2018, 4:29:00 AM10/16/18
to HotswapAgent
I'm planning to do it, hopefully I'll have some free time in November/December for   it.

Thomas Heigl

unread,
Oct 16, 2018, 4:35:57 AM10/16/18
to HotswapAgent
Fantastic!

If you need any help with testing (on MacOS), please let me know.

Thomas

vladimir dvorak

unread,
Oct 20, 2018, 3:23:54 AM10/20/18
to HotswapAgent
  Hi,

dcevm for java11 is just available at:


(branch dcevm forked from openjdk)

  It is still an experimental branch, but nearly all dcevm tests have passed. We must do port of HotswapAgent  for j11, there are issues

with javassist at least. I didn't publish any binaries up to now,  so you should build it yourself. Since we don't have Macs, any help

will be appreciated!

thanks, Vladimir

Thomas Heigl

unread,
Oct 20, 2018, 6:59:19 AM10/20/18
to hotswa...@googlegroups.com
Hi Vladimir,

That's great news!

I already built DCEVM for JDK10 recently, so this shouldn't be a problem.

However, with JDK10 I ran into some issues with HotswapAgent as documented here: https://github.com/HotswapProjects/HotswapAgent/issues/218

I couldn't really continue my tests because of NPEs when specifying extraClasspath.

Are there any news with respect to HotswapAgent? Does it make sense to build JDK11 and try it with the current version of HotswapAgent or should I wait?

Thanks,

Thomas

--
You received this message because you are subscribed to the Google Groups "HotswapAgent" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hotswapagent...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vladimir dvorak

unread,
Oct 20, 2018, 1:56:31 PM10/20/18
to HotswapAgent

I'm pretty sure HA doesn't work with j11 now, since HA uses old javassist version internally. There is active javassist repo:


We must carefully upgrade javassis to 3.24.0-RC and check if it backward compatible...

As far as your problem with j9+HA - I didn't do a lot of tests with HA + j9/j10 since I don't use it. I'm still using j8, but we're planning

to improve it on j11. If you need a help with openjdk  build or wicket plugin , which could be interesting,  please contact me by e-mail.

regards Vladimir


Thomas Heigl

unread,
Nov 13, 2018, 3:41:44 AM11/13/18
to HotswapAgent
Hi Vladimir,

I saw you did a lot of work on the JDK11 branch. Thanks a lot!

I just tried to build the current branch on MacOS. The build works, but in the end it fails with:

Creating jdk image
HotswapAgent not found on path:'/dcvem/openjdk-jdk11/build/macosx-x86_64-normal-server-release/jdk/lib/hotswap/hotswap-agent.jar'
Stopping sjavac server
Finished building target 'images' in configuration 'macosx-x86_64-normal-server-release'

What do I have to do to include the bundle the hotswap agent with the build?

Best,

Thomas 

vladimir dvorak

unread,
Nov 25, 2018, 8:45:14 AM11/25/18
to HotswapAgent
   Hi,

you can fix it, manually copy the HotswapAgent-1.3.1-SNAPSHOT.jar (as hotswap-agent.jar) to lib/hotswap folder. Btw we have now

automated builds at this repository: https://github.com/TravaOpenJDK/trava-jdk-11-dcevm

actually for OSX + linux, OSX looks ok, still needs copy of HA at the end of the script, Linux build has some unknown

gcc problem with dcevm patch, windows build sill missing...

regards vladimir
Reply all
Reply to author
Forward
0 new messages