JDK-

Martijn Verburg martijnverburg at gmail.com
Sun Sep 6 21:00:57 UTC 2015


Hi Sebastian,

Thanks for tracking this down.  The quality-discuss list is a good place to
start as they can guide you to the right lists for each bug you are
investigating.

In time if you get to a certain status as a contributor you will be able to
comment directly on the issue itself.

Cheers,
Martijn

On Sunday, 6 September 2015, Sebastian Sickelmann <
sebastian.sickelmann at gmx.de> wrote:

> Hi,
>
> i am looking through same bug-reports for some low hanging fruits and I
> found JDK-7198513[1] ,
> which seems to be a reporting failure. The Formatter works as excepted.
> The reported made a
> small mistake and used the empty ObjectArray without any case, so it is
> used as the var-arg
> parameter (with zero elements).
>
> I think this bug can be closed.
>
> I tested the following on 1.6.0_35, 1.7.0_79 and 1.8.0_45 and it always
> produces the same
> expected result.
>
>
> public class FormatterTest {
>
>     public static void main(String[] args) {
>         System.out.println(String.format("%d,%b", 42, new Object[] {}));
>         System.out.println(String.format("%b", (Object) new Object[] {}));
>         try {
>             System.out.println(String.format("%b", new Object[] {}));
>             System.out.println("There is something rotten in state of
> Denmark");
>         } catch (MissingFormatArgumentException e) {
>             System.out.println("Works as expected");
>         }
>     }
> }
>
> Result:
> 42,true
> true
> Works as expected
>
> What is the preferred workflow for such a bug-database cleanup? Is it
> through the mailing list?
>
> -- Sebastian
>
> [1] https://bugs.openjdk.java.net/browse/JDK-7198513
>


-- 
Cheers, Martijn (Sent from Gmail Mobile)


More information about the jdk9-dev mailing list