GNU bug report logs - #26803
Java things

Previous Next

Package: guix-patches;

Reported by: Ricardo Wurmus <rekado <at> elephly.net>

Date: Sat, 6 May 2017 14:02:02 UTC

Severity: normal

Done: Ricardo Wurmus <rekado <at> elephly.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Roel Janssen <roel <at> gnu.org>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: Hartmut Goebel <h.goebel <at> crazy-compilers.com>, 26803 <at> debbugs.gnu.org
Subject: bug#26803: [PATCH 16/36] gnu: Add java-commons-lang.
Date: Wed, 10 May 2017 16:23:14 +0200
Ricardo Wurmus writes:

> Roel Janssen <roel <at> gnu.org> writes:
>
>> Ricardo Wurmus writes:
>>
>>> From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
>>>
>>> * gnu/packages/java.scm (java-commons-lang): New variable.
>>>
>>> Co-authored-by: Ricardo Wurmus <rekado <at> elephly.net>
>>> ---
> […]
>>> +    (arguments
>>> +     `(#:test-target "test"
>>> +       #:phases
>>> +       (modify-phases %standard-phases
>>> +         (add-after 'build 'build-javadoc ant-build-javadoc)
>>> +         (add-before 'check 'disable-failing-test
>>> +           (lambda _
>>> +             ;; Disable a failing test
>>> +             (substitute* "src/test/java/org/apache/commons/lang/\
>>> +time/FastDateFormatTest.java"
>>> +               (("public void testFormat\\(\\)")
>>> +                "public void disabled_testFormat()"))
>>> +             #t))
>>
>> Since you're renaming the function, I suppose removing the function
>> would also work, which would not create any "dead code".  But that
>> probably requires a separate patch file, which will break more easily
>> on an update.
>>
>> So long story short:  This is OK to me, even though I don't like
>> producing code that won't be run anyway.
>
> I agree in principle, but this is the Java way of disabling a test.
> Tests are considered tests only when the procedures start with the
> string “test”, so renaming the test causes it not to be executed.
> Removing requires much more effort because it requires an actual patch.
> Since it’s just a test (and not library code) I think it’s acceptable
> not to delete it.

I agree. So, LGTM!

Kind regards,
Roel Janssen




This bug report was last modified 8 years and 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.