jdk/test/javax/script/Test7.js
author neliasso
Thu, 04 Apr 2013 09:18:47 +0200
changeset 16626 b58a6213631c
parent 16038 de84354579d3
permissions -rw-r--r--
8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp Reviewed-by: roland, kvn Contributed-by: niclas.adlertz@oracle.com

//this is the first line of Test7.js
var filename;
try {
    load("nashorn:mozilla_compat.js");
} catch (e) {
    //ignored
}
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);