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

ASM Upgrade 9.7.1 with Java 24 Opcode support #542

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SougandhS
Copy link
Contributor

@SougandhS SougandhS commented Oct 18, 2024

What it does

#540

How to test

Author checklist

Copy link
Contributor

@jukzi jukzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is javaagent-shaded.jar created?

import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.ClassWriter;
import org.objectweb.asm.Opcodes;
import org.eclipse.jdt.launching.internal.org.objectweb.asm.ClassReader;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do these Classes come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was throwing some errors with existing imports, so did quick fix for that. should I revert that then ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i wonder why it compiles on CI but not for me locally:
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible could you try the same ? generating a new javaagent-shaded file, maybe I did some mistake while doing it..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably... that jar is wrong:
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i create the jar it looks the same. Also Readme.md describes that
Note that ASM classes are _relocated_ to org.eclipse.jdt.launching.internal.org.objectweb.asm package to avoid possible conflicts with applicates being debugged.
however it should not change the source and i still don't get why the CI does not complain about it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i guess org.eclipse.jdt.launching.javaagent is missing in pom.xml so that it is not compiled by CI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when i create the jar it looks the same. Also Readme.md describes that Note that ASM classes are _relocated_ to org.eclipse.jdt.launching.internal.org.objectweb.asm package to avoid possible conflicts with applicates being debugged. however it should not change the source and i still don't get why the CI does not complain about it.

so is it some issue with the jar ?

Copy link
Contributor Author

@SougandhS SougandhS Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @jukzi, I have changed the imports to defaults now

@SougandhS
Copy link
Contributor Author

how is javaagent-shaded.jar created?

Created by running "mvn clean package" command from debug's jdt.launching.javaagent
and replaced the generated jar to the lib folder

@SougandhS SougandhS requested a review from jukzi October 21, 2024 04:49
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.

2 participants