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

Update ASM to 7.0 for full Java 11 support #785

Merged
merged 4 commits into from Oct 30, 2018

Conversation

ijuma
Copy link
Contributor

@ijuma ijuma commented Oct 30, 2018

  • Removed dependency on org.ow2.asm:asm-xml which has been removed.
  • Set ASM version to ASM7 unconditionally.

Make sure these boxes are checked before submitting your PR -- thank you!

  • Added an entry into CHANGELOG.md if you have changed SpotBugs code

It includes full support for Java 11.
@wreulicke
Copy link
Member

wreulicke commented Oct 30, 2018

asm-xml is deleted since 7.0-beta.
https://asm.ow2.io/versions.html

In asm 6.1, asm-xml is deprecated.

@ijuma ijuma changed the title Update ASM to 7.0 Update ASM to 7.0 for full Java 11 support Oct 30, 2018
@ijuma
Copy link
Contributor Author

ijuma commented Oct 30, 2018

Thanks @wreulicke, fixed it.

@KengoTODA
Copy link
Member

I remember that we use asm-xml to keep backward compatibility in Eclipse manifest, see #400 and
e7c8920 for detail.

@iloveeclipse could you review this PR? I'm not sure we can remove asm-xml safely or not.

Copy link
Member

@iloveeclipse iloveeclipse left a comment

Choose a reason for hiding this comment

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

Please change spotbugs/spotbugs/META-INF/MANIFEST-TEMPLATE.MF and remove xml package, diff:

git diff
diff --git a/spotbugs/META-INF/MANIFEST-TEMPLATE.MF b/spotbugs/META-INF/MANIFEST-TEMPLATE.MF
index 42c88a988..7863fbef1 100644
--- a/spotbugs/META-INF/MANIFEST-TEMPLATE.MF
+++ b/spotbugs/META-INF/MANIFEST-TEMPLATE.MF
@@ -64,8 +64,7 @@ Export-Package: edu.umd.cs.findbugs,
  org.objectweb.asm.signature,
  org.objectweb.asm.tree,
  org.objectweb.asm.tree.analysis,
- org.objectweb.asm.util,
- org.objectweb.asm.xml
+ org.objectweb.asm.util
 Bundle-RequiredExecutionEnvironment: JavaSE-1.8
 Bundle-ManifestVersion: 2
 Bundle-Name: spotbugs

@iloveeclipse
Copy link
Member

We can remove xml package, we have not re-exported it, but we should remove it completely :-)

@ijuma
Copy link
Contributor Author

ijuma commented Oct 30, 2018

Thanks, updated the PR.

Copy link
Member

@iloveeclipse iloveeclipse left a comment

Choose a reason for hiding this comment

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

There was a reason why I've attached the diff :-)

spotbugs/META-INF/MANIFEST-TEMPLATE.MF Outdated Show resolved Hide resolved
Co-Authored-By: ijuma <ismael@juma.me.uk>
@iloveeclipse iloveeclipse merged commit 2f11263 into spotbugs:release-3.1 Oct 30, 2018
@KengoTODA KengoTODA added this to the SpotBugs 3.1.9 milestone Nov 5, 2018
@KengoTODA KengoTODA mentioned this pull request Nov 20, 2018
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

4 participants