alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (T7086601a.java)

This example Java source code file (T7086601a.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

iterable, safevarargs, t7086601

The T7086601a.java Java example source code

/**
 * @test /nodynamiccopyright/
 * @bug 7086601
 * @summary Error message bug: cause for method mismatch is 'null'
 * @compile/fail/ref=T7086601a.out -XDrawDiagnostics T7086601a.java
 */

class T7086601 {
    static <S> void m1(Iterable s1, Iterable s2) { }
    static void m1(Object o) {}

    static <S> void m2(Iterable s1, Iterable s2, Iterable s3) { }
    static void m2(Object o) {}

    @SafeVarargs
    static <S> void m3(Iterable... ss) { }
    static void m3(Object o) {}

    static void test1(Iterable<String> is, Iterable ii) {
        m1(is, ii);
    }

    static void test2(Iterable<String> is, Iterable ii, Iterable id) {
        m2(is, ii, id);
    }

    static void test3(Iterable<String> is, Iterable ii) {
        m3(is, ii);
    }

    static void test4(Iterable<String> is, Iterable ii, Iterable id) {
        m3(is, ii, id);
    }
}

Other Java examples (source code examples)

Here is a short list of links related to this Java T7086601a.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.