Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1192749

Summary: jacoco does not include objectweb-asm in Fedora-generated /etc/ant.d/jacoco
Product: [Fedora] Fedora Reporter: Aric LeDell <aledell>
Component: jacocoAssignee: Alexander Kurtakov <akurtako>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akurtako, aledell, jvanek, krzysztof.daniel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: jacoco-0.7.2-3.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-25 13:27:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aric LeDell 2015-02-14 23:34:42 UTC
Description of problem:

jacoco-0.7.2-2 in Fedora 21 correctly pulls in jacoco's dependency on objectweb-asm, but fails to include objectweb-asm's JARs in /etc/ant.d/jacoco

Many other Fedora packages (e.g., findbugs) include objectweb-asm JARs via /etc/ant.d/findbugs, so this miss is easily overlooked.

Version-Release number of selected component (if applicable): 0.7.2-2


How reproducible: Always


Steps to Reproduce:
1. Remove any references to objectweb-asm from /etc/ant.d/*
2. Use ant and jacoco to collect coverage statistics for a java project

Actual results:

java.lang.NoClassDefFoundError: org/objectweb/asm/commons/JSRInlinerAdapter

Expected results:

code coverage statistics from <jacoco:coverage> and/or code coverage reports via <jacoco:report>

Additional info:

This diff against origin/f21 cloned from http://pkgs.fedoraproject.org/cgit/jacoco.git 015910210b856e9c2a41d85433107c826d158f20 builds correctly via "rpmbuild -bb" and "fedpkg mockbuild":

--- a/jacoco.spec
+++ b/jacoco.spec
@@ -84,7 +84,7 @@ done;
 
 # ant config
 mkdir -p %{buildroot}%{_sysconfdir}/ant.d
-echo %{name} %{name}/org.jacoco.ant > %{buildroot}%{_sysconfdir}/ant.d/%{name}
+echo %{name} %{name}/org.jacoco.ant objectweb-asm/asm-all > %{buildroot}%{_sysconfdir}/ant.d/%{name}
 
 %files -f .mfiles
 %dir %{_javadir}/%{name}

Comment 1 Fedora Update System 2015-02-16 12:24:36 UTC
jacoco-0.7.2-3.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/jacoco-0.7.2-3.fc21

Comment 2 Fedora Update System 2015-02-17 08:03:08 UTC
Package jacoco-0.7.2-3.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing jacoco-0.7.2-3.fc21'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-2135/jacoco-0.7.2-3.fc21
then log in and leave karma (feedback).

Comment 3 Aric LeDell 2015-02-18 05:28:15 UTC
Confirmed.  jacoco-0.7.2-3.f21 hit the mirrors sometime today.  I had to rm /etc/ant.d/jacoco and reinstall because /etc/ant.d/jacoco is marked %config(noreplace) in jacoco.spec.

Regardless, including objectweb-asm/asm-debug-all in /etc/ant.d/jacoco resolves my issue.

Thank you.  I believe I left karma properly (long time RedHat/Fedora user, first time karma leaver :)

Comment 4 Fedora Update System 2015-02-25 13:27:17 UTC
jacoco-0.7.2-3.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.