[JIRA] (JENKINS-55572) Remove JAXB usages in codesonar plugin for Java 11 compatibility

11 views
Skip to first unread message

batmat@batmat.net (JIRA)

unread,
Jan 14, 2019, 7:08:04 AM1/14/19
to jenkinsc...@googlegroups.com
Baptiste Mathus created an issue
 
Jenkins / Task JENKINS-55572
Remove JAXB usages in codesonar plugin for Java 11 compatibility
Issue Type: Task Task
Assignee: Praqma Support
Components: codesonar
Created: 2019-01-14 12:07
Labels: java11-compatibility java11
Priority: Minor Minor
Reporter: Baptiste Mathus

Problem statement

Codesonar plugin uses JAXB in many locations. Given this module has been extracted from the JDK in JDK11 (starting with 9+), this is likely to make it hard for this plugin to run in an environment that doesn't have this module explicitly allowed.

Expected behavior

If possible, the code should not depend on JAXB anymore so it can be easily used in a Jenkins running on Java 11. (Java 11 preview for Jenkins has been announced in last December, and GA is coming, hence also why I am filing this ticket).

If you need any help, please feel free to reach out to us!

Thanks!

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

batmat@batmat.net (JIRA)

unread,
Jan 14, 2019, 9:18:05 AM1/14/19
to jenkinsc...@googlegroups.com
Baptiste Mathus updated an issue
Change By: Baptiste Mathus
Labels: java11 java11-compatibility triaged

o.v.nenashev@gmail.com (JIRA)

unread,
Mar 28, 2019, 10:26:03 AM3/28/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: java11 java11-compatibility triaged

man@praqma.net (JIRA)

unread,
May 27, 2019, 8:31:02 AM5/27/19
to jenkinsc...@googlegroups.com
Mads Nielsen commented on Task JENKINS-55572
 
Re: Remove JAXB usages in codesonar plugin for Java 11 compatibility

Can this be fixed just by following the advice here: https://stackoverflow.com/a/52502208 (adding the library as an explicit dependency) ? I'm not too sure on how to write a migrator that can read the existing XML with a new library.

 

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 27, 2019, 10:25:03 AM5/27/19
to jenkinsc...@googlegroups.com

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 27, 2019, 11:50:02 AM5/27/19
to jenkinsc...@googlegroups.com
Baptiste Mathus commented on Task JENKINS-55572
 
Re: Remove JAXB usages in codesonar plugin for Java 11 compatibility

Please see https://wiki.jenkins.io/display/JENKINS/JAXB+Plugin.

Basically, this JIRA is about recommending moving away from an API that got removed from the JDK itself. But if you don't want/have time to do this, then you should be able to depend indeed on the Jenkins JAXB API plugin to do something similar to https://stackoverflow.com/a/52502208 but in a Jenkins plugins' compatible way.

man@praqma.net (JIRA)

unread,
May 28, 2019, 6:47:01 AM5/28/19
to jenkinsc...@googlegroups.com

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 28, 2019, 8:14:02 AM5/28/19
to jenkinsc...@googlegroups.com

nice.

I think this would be very good to introduce a Jenkinsfile in this repo BTW. Ideally one that builds both on JDK8 and JDK11 as in https://github.com/jenkinsci/branch-api-plugin/pull/148/files#diff-58231b16fdee45a03a4ee3cf94a9f2c3R1 for example.

egutierrez@cloudbees.com (JIRA)

unread,
May 30, 2019, 4:14:02 AM5/30/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages