jmh-core bug: fails to build with anything newer than jopt-4.6

Austin English wizardedit at gentoo.org
Mon Oct 17 16:43:56 UTC 2016


On 10/17/2016 06:00 AM, Aleksey Shipilev wrote:
> Hi Austin,
> 
> On 10/15/2016 05:29 AM, Austin English wrote:
>> I'm attempting to package jmh for gentoo, but it's failing:
>>
>> [ERROR]
>> /home/austin/src/jmh/jmh-core/src/main/java/org/openjdk/jmh/runner/options/IntegerValueConverter.java:[70,42]
>> incompatible types: java.lang.Class<capture#1 of ? extends
>> java.lang.Integer> cannot be converted to java.lang.Class<java.lang.Integer>
>>
>> I tracked this down to jopt. Gentoo has 4.8/4.9, forcing 4.6 worked.
>> This behavior is broken in newer jopt, including the current 5.0.3.
> 
> Yes, JMH build is using 4.6. There is no guarantee it will work with the
> updated dependency, and I don't see the value in trying to do so.
> 
> As much as I appreciate Gentoo way, trying to force the dependency
> version outside of what the actual project mentions in its build files
> is setting up Gentoo users for trouble.

I'm not, as it won't build. Gentoo no longer has 4.6 in the tree, I
would have to bring back an older version for this to work (and it
sounds like that is what I'll have to do..

My goal was to file a bug to request that jmh support newer jopt, as
depending on an older version of source code is generally considered a
poor practice, but the OpenJDK tracker seems to only be open to OpenJDK
developers. Is there some other place bugs can be filed?



More information about the jmh-dev mailing list