File: silentdeath.bsh

package info (click to toggle)
bsh 1.0-beta-2
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 1,804 kB
  • ctags: 1,857
  • sloc: java: 14,653; makefile: 53; sh: 14
file content (25 lines) | stat: -rw-r--r-- 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/java bsh.Interpreter

source("../TestHarness.bsh");
/*
	callbacks from awt don't have an interpreter reference...
	can't report failures... ?
*/

actionPerformed( e ) {
	print("Hello!");
	// undefined method
	goober();
	// undefined class
	Booga.foo();
}

//  This works (causes it to complain and die)
//actionPerformed( null );

b=new Button("Press Me!");
b.addActionListener(this);
frame(b);

complete();