Bug 706066

Summary: OpenJDK fails to compile commons-discovery 0.5
Product: [Fedora] Fedora Reporter: Stanislav Ochotnicky <sochotni>
Component: java-1.6.0-openjdkAssignee: Denis Lila <dlila>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ahughes, dbhole, jvanek, lkundrak, mjw, mmatejov, omajid, SpikeFedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-01 20:52:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 701253    
Attachments:
Description Flags
build log from commons-discovery compilation none

Description Stanislav Ochotnicky 2011-05-19 11:43:12 UTC
Created attachment 499817 [details]
build log from commons-discovery compilation

Description of problem:
Trying to use OpenJDK to compile commons-discovery fails with compilation failures due to generics. Oracle SDK works OK.  Build log attached

Can reproduce in rawhide too.

Version-Release number of selected component (if applicable):
java-1.6.0-openjdk-1.6.0.0-52.1.9.7.fc14.x86_64

How reproducible:
always

Steps to Reproduce:
1. download comons-discovery source[1], unpack
2. install "maven" package
3. run "mvn3 compile"

[1] http://archive.apache.org/dist/commons/discovery/source/commons-discovery-0.5-src.tar.gz
  
Actual results:
compilation failure, see build log

Expected results:
build success

Comment 1 Denis Lila 2011-06-01 18:41:21 UTC
Hi Stanislav.

I've proposed this fix for the bug:
http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2011-June/014574.html

I tested it, and it does fix the compilation problem, but as Andrew Haley rightly pointed out, such compiler changes are very dangerous. I also submitted a patch to the discovery project that works around the compiler bug, and hopefully they will include it in their project.

Comment 2 Denis Lila 2011-06-01 20:52:01 UTC
Hi again.

commons-discovery has accepted my patch, so I am closing this as wont-fix for now. If this compilation problem comes up with some other project, we can reconsider the backport.