jdk/test/javax/script/Test7.js
author twisti
Tue, 21 Apr 2009 11:16:30 -0700
changeset 2571 d602ad6538bd
parent 2 90ce3da70b43
child 16038 de84354579d3
permissions -rw-r--r--
6822110: Add AddressLiteral class on SPARC Summary: The Address class on SPARC currently handles both, addresses and address literals, what makes the Address class more complicated than it has to be. Reviewed-by: never, kvn

//this is the first line of Test7.js
var filename;
importPackage(java.io);
importPackage(java);
var f = new File(filename);
var r = new BufferedReader(new InputStreamReader(new FileInputStream(f)));

var firstLine = r.readLine() + '';
print(firstLine);