Libraryless. Click here for Pure Java version (1570L/11K/38K).
1 | !7 |
2 | |
3 | sS srcText = [[ |
4 | import java.util.concurrent.*; |
5 | |
6 | class main { |
7 | |
8 | public static void main(final String[] args) throws Exception { |
9 | int value=9+9; |
10 | int value2=10+9; |
11 | Callable<Boolean> attempt = () -> value2 > value; |
12 | while (attempt.call() == true){ |
13 | System.out.println("egal"); |
14 | value2=value2 - 1; |
15 | } |
16 | } |
17 | } |
18 | ]]; |
19 | |
20 | p { |
21 | print("JavaX: " + get(getJavaX(), "version")); |
22 | print("Java: " + System.getProperty("java.version")); |
23 | |
24 | print("Callable: " + _getClass("java.util.concurrent.Callable")); |
25 | File src = getProgramFile("main.java"); |
26 | saveTextFile(src, srcText); |
27 | print(invokeEcj(print("-source 1.8 -d " + f2s(programDir()) + " " + f2s(src)))); |
28 | } |
Began life as a copy of #1008599
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008794 |
Snippet name: | Test invokeEcj with Java 8 source |
Eternal ID of this version: | #1008794/5 |
Text MD5: | c6e803bcaa90a8b8d2f33731253e4efd |
Transpilation MD5: | 8f4117b798109267550cfba5ee17db35 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-24 16:57:47 |
Source code size: | 679 bytes / 28 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 496 / 627 |
Version history: | 4 change(s) |
Referenced in: | [show references] |