< prev index next >

test/langtools/tools/javac/patterns/NullsInDeconstructionPatterns2.java

Print this page

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 /*
 25  * @test
 26  * @bug 8302202
 27  * @summary Testing record patterns with null components
 28  * @enablePreview
 29  * @compile NullsInDeconstructionPatterns2.java
 30  * @run main NullsInDeconstructionPatterns2

 31  */
 32 
 33 import java.util.Objects;
 34 import java.util.function.Function;
 35 
 36 public class NullsInDeconstructionPatterns2 {
 37 
 38     public static void main(String[] args) {
 39         new NullsInDeconstructionPatterns2().run();
 40     }
 41 
 42     private void run() {
 43         run1(this::test1a);
 44         run1(this::test1b);
 45         run2(this::test2a);
 46         run2(this::test2b);
 47         run3(this::test3a);
 48         run3(this::test3b);
 49         run4();
 50     }

 11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 12  * version 2 for more details (a copy is included in the LICENSE file that
 13  * accompanied this code).
 14  *
 15  * You should have received a copy of the GNU General Public License version
 16  * 2 along with this work; if not, write to the Free Software Foundation,
 17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 18  *
 19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 20  * or visit www.oracle.com if you need additional information or have any
 21  * questions.
 22  */
 23 
 24 /*
 25  * @test
 26  * @bug 8302202
 27  * @summary Testing record patterns with null components
 28  * @enablePreview
 29  * @compile NullsInDeconstructionPatterns2.java
 30  * @run main NullsInDeconstructionPatterns2
 31  * @ignore Verifier error
 32  */
 33 
 34 import java.util.Objects;
 35 import java.util.function.Function;
 36 
 37 public class NullsInDeconstructionPatterns2 {
 38 
 39     public static void main(String[] args) {
 40         new NullsInDeconstructionPatterns2().run();
 41     }
 42 
 43     private void run() {
 44         run1(this::test1a);
 45         run1(this::test1b);
 46         run2(this::test2a);
 47         run2(this::test2b);
 48         run3(this::test3a);
 49         run3(this::test3b);
 50         run4();
 51     }
< prev index next >