JavaTXCompilerInJavaTX/src/test/resources/bytecode/javFiles/OL.jav

32 lines
533 B
Plaintext
Raw Normal View History

import java.lang.String;
2018-04-11 11:55:32 +00:00
import java.lang.Integer;
import java.lang.Double;
2019-06-13 12:01:32 +00:00
import java.lang.Boolean;
import java.util.Vector;
2018-04-11 11:55:32 +00:00
public class OL {
m(x) { return x + x; }
2019-06-13 12:01:32 +00:00
m(Boolean x) { return x; }
2019-06-13 12:01:32 +00:00
// if the class contains just this method, then correct BC will be generated.
// But if another methods are contained then the generated BC is not correct
/* m(x) {
//x.add(1);
x.addAll(x);
return x;
}
2019-06-13 12:01:32 +00:00
*/
}
public class OLMain {
main(x) {
var ol;
ol = new OL();
return ol.m(x);
}
}