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

Added Java 7 instrumentation manifest attributes #311

Closed
wants to merge 1 commit into from
Closed

Added Java 7 instrumentation manifest attributes #311

wants to merge 1 commit into from

Conversation

sfussenegger
Copy link

After upgrading to OpenJDK 7 I can't retransform classes using
InstrumentationSavingAgent.getInstrumentation().addTransformer(t, true);

After some research I feel that spring-instrument is missing the required manifest attributes for Java 7 (see http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html)

I'm neither an expert for instrumentation nor Gradle but I thought I'd give it a shot to at least start a discussion.

After upgrading to OpenJDK 7 I can't retransform classes using
    InstrumentationSavingAgent.getInstrumentation().addTransformer(t, true);

After some research I feel that spring-instrument is missing the required manifest attributes for Java 7 (see http://docs.oracle.com/javase/7/docs/api/java/lang/instrument/package-summary.html)

I'm neither an expert for instrumentation nor Gradle but I thought I'd give it a shot to at least start a discussion.
@philwebb
Copy link
Member

Thanks for the pull request. Could you please also raise a JIRA for this issue as that is generally our preferred system for tracking bugs.

@sfussenegger
Copy link
Author

@philwebb SPR-10731

btw, there is also an unneeded dependency on spring-core. I've created molindo-instrument as a temporary workaround for this issue where you can easily verify this. Do I have to create another pull request and JIRA issue for that?

@philwebb
Copy link
Member

Thanks. Yes please to the second JIRA.

@sfussenegger
Copy link
Author

see #313

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

Successfully merging this pull request may close these issues.

None yet

2 participants