Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

28
LINES

< > BotCompany Repo | #1008794 // Test invokeEcj with Java 8 source

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1570L/11K/38K).

!7

sS srcText = [[
import java.util.concurrent.*;

class main {

public static void main(final String[] args) throws Exception {
  int value=9+9;
	int value2=10+9;
  Callable<Boolean> attempt = () -> value2 > value;	
	while (attempt.call() == true){
		System.out.println("egal");
		value2=value2 - 1;
	}
}
}
]];

p {
  print("JavaX: " + get(getJavaX(), "version"));
  print("Java: " + System.getProperty("java.version"));
    
  print("Callable: " + _getClass("java.util.concurrent.Callable"));
  File src = getProgramFile("main.java");
  saveTextFile(src, srcText);
  print(invokeEcj(print("-source 1.8 -d " + f2s(programDir()) + " " + f2s(src))));
}

Author comment

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: 494 / 624
Version history: 4 change(s)
Referenced in: [show references]