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 - jacoco does not include objectweb-asm in Fedora-generated /etc/ant.d/jacoco
Summary: jacoco does not include objectweb-asm in Fedora-generated /etc/ant.d/jacoco
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: jacoco
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexander Kurtakov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-14 23:34 UTC by Aric LeDell
Modified: 2015-02-25 13:27 UTC (History)
4 users (show)

Fixed In Version: jacoco-0.7.2-3.fc21
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-25 13:27:17 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.