/******************************************************************************
 * Copyright (c) 2002 - 2008 IBM Corporation.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *****************************************************************************/
public class Finally1 {
    public static void main(String[] args) throws BadLanguageExceptionF1 {
	Finally1 f1= new Finally1();
	try {
	    FooF1 f = new FooF1();

	    f.bar();
	} finally {
	    System.out.println("blah");
	}
	System.out.println("feep");
    }
}
class FooF1 {
    public void bar() throws BadLanguageExceptionF1 {
	if (true)
	    throw new BadLanguageExceptionF1();
	System.out.println("feh");
    }
}
class BadLanguageExceptionF1 extends Exception {
    public BadLanguageExceptionF1() {
	super("Try using a real language, like Perl");
    }
}
