diff options
author | coffeys <none@none> | 2014-01-16 23:52:44 +0000 |
---|---|---|
committer | coffeys <none@none> | 2014-01-16 23:52:44 +0000 |
commit | 0e177fc42252ad1efc08a754c33c6c717eab6134 (patch) | |
tree | e2eb8232b46083a1c15bac4c888ad76c584a8264 /test | |
parent | 51d34d8a68bc5cab82d2aaf9f084e92af69bea13 (diff) | |
parent | 87f1dc8fe81754f087fe4c40428fbb213a0d7de3 (diff) |
Merge
Diffstat (limited to 'test')
4 files changed, 38 insertions, 2 deletions
diff --git a/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java b/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java index 151549b5..5d8c3334 100644 --- a/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java +++ b/test/com/sun/javadoc/testLambdaFeature/TestLambdaFeature.java @@ -23,7 +23,7 @@ /* * @test - * @bug 8004893 8022738 + * @bug 8004893 8022738 8029143 * @summary Make sure that the lambda feature changes work fine in * javadoc. * @author bpatel @@ -81,6 +81,11 @@ public class TestLambdaFeature extends JavadocTester { "<pre>default default void defaultMethod()</pre>"}, {BUG_ID + FS + "pkg" + FS + "B.html", "<td class=\"colFirst\"><code>default void</code></td>"}, + {BUG_ID + FS + "pkg1" + FS + "NotAFuncInf.html", + "<dl>" + NL + "<dt>Functional Interface:</dt>" + NL + + "<dd>This is a functional interface and can therefore be used as " + + "the assignment target for a lambda expression or method " + + "reference.</dd>" + NL + "</dl>"}, {BUG_ID + FS + "pkg" + FS + "B.html", "<dl>" + NL + "<dt>Functional Interface:</dt>"} }; diff --git a/test/com/sun/javadoc/testLambdaFeature/pkg/A.java b/test/com/sun/javadoc/testLambdaFeature/pkg/A.java index c52f249b..1ef8ac5b 100644 --- a/test/com/sun/javadoc/testLambdaFeature/pkg/A.java +++ b/test/com/sun/javadoc/testLambdaFeature/pkg/A.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -23,6 +23,7 @@ package pkg; +@FunctionalInterface public interface A { public void method1(); diff --git a/test/com/sun/javadoc/testLambdaFeature/pkg1/FuncInf.java b/test/com/sun/javadoc/testLambdaFeature/pkg1/FuncInf.java index 566acf59..bace6ea9 100644 --- a/test/com/sun/javadoc/testLambdaFeature/pkg1/FuncInf.java +++ b/test/com/sun/javadoc/testLambdaFeature/pkg1/FuncInf.java @@ -23,6 +23,7 @@ package pkg1; +@FunctionalInterface public interface FuncInf<V> { V call() throws Exception; diff --git a/test/com/sun/javadoc/testLambdaFeature/pkg1/NotAFuncInf.java b/test/com/sun/javadoc/testLambdaFeature/pkg1/NotAFuncInf.java new file mode 100644 index 00000000..6c366869 --- /dev/null +++ b/test/com/sun/javadoc/testLambdaFeature/pkg1/NotAFuncInf.java @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package pkg1; + +public interface NotAFuncInf<V> { + + V call() throws Exception; +} |