/* * Ident: @(#)lmbd13101m0022.java generated from: %W% %E% * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package javasoft.sqe.tests.lang.lmbd131.lmbd13101m0022; import java.io.PrintStream; class MyTest extends Test { MyTest(int a, boolean b) { n = 5;} } class Test { static int n = 0; Test(int a, boolean b) { n = 5;} Test() {} } interface SAM { MyTest m(int a, boolean b); } interface Tester { int ifoo(); } interface MyTester extends Tester { SAM s = MyTest::new; } public class lmbd13101m0022 { public static void main(String argv[]) { System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/); } public static int run(String argv[], PrintStream out) { MyTest test = MyTester.s.m(5, true); if (test.n == 5) { return 0/*STATUS_PASSED*/; } else { return 2/*STATUS_FAILED*/; } } }