Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 
 
 public class EXS_Sample extends Super
 {
	public void constrainedNone()
	{
		try
		{
			InputStream is = new FileInputStream("c:\\test.txt");
		}
		catch (IOException ioe)
		{
			throw new RuntimeException("Ooops");
		}
	}
	public void constrainedNon() throws SQLException
	{
		try
		{
			InputStream is = new FileInputStream("c:\\test.txt");
		}
		catch (IOException ioe)
		{
			throw new RuntimeException("Ooops");
		}
	}
	public void notConstrained()
	{
		try
		{
			InputStream is = new FileInputStream("c:\\test.txt");
		}
		catch (IOException ioe)
		{
			throw new RuntimeException("Ooops");
		}
	}
	public void constrainedByRuntime()
	{
		try
		{
			InputStream is = new FileInputStream("c:\\test.txt");
		}
		catch (IOException ioe)
		{
			throw new RuntimeException("Ooops");
		}
	}
	public static void testFPBug2646424(String[] args)
	{
		if (args.length == 0)
		{
			try
			{
				Class.forName("java.lang.Integer");
			}
			{
				return;
			}
		}
		else
		{
			throw new IllegalArgumentException("cannot take arguments");
			//EXS
		}
	}
class Super
	public void constrainedNone()
	{}
	public void constrainedNon() throws SQLException
	{}
	public void constrainedByRuntime() throws RuntimeException
	{}
New to GrepCode? Check out our FAQ X