Skip to content
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

[BTRACE-93] BTrace should support cross-JDK operation mode #19

Closed
jbachorik opened this issue Aug 28, 2014 · 2 comments
Closed

[BTRACE-93] BTrace should support cross-JDK operation mode #19

jbachorik opened this issue Aug 28, 2014 · 2 comments

Comments

@jbachorik
Copy link
Collaborator

[reporter="j.bachorik", created="Mon, 8 Jul 2013 12:46:57 +0200", resolved="Fri, 13 Sep 2013 08:28:01 +0200"]

Currently, BTrace will not work when the client is run on a newer JDK (eg. JDK7) while the traced application runs an older JDK (eg. JDK6).

The reason for this is that BTrace uses the client's compiler to compile the trace file and this results in a class file of a version that the traced JVM can not understand. The BTrace compiler should compile to the lowest supported class file version to make sure the cross-version cooperation.

@jbachorik jbachorik added this to the release-1.2.4 milestone Aug 28, 2014
@jbachorik
Copy link
Collaborator Author

[author="j.bachorik", created="Mon, 8 Jul 2013 13:31:49 +0200"]

It seems that it is sufficient to set the -source and -target options for the trace script compiler to 1.6
This way the resulting class files will be readable by any JVM of version 1.6 or newer.

@jbachorik
Copy link
Collaborator Author

[author="j.bachorik", created="Fri, 13 Sep 2013 08:28:01 +0200"]

https://kenai.com/projects/btrace/sources/hg/revision/451

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant