Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370408

Summary: OnTheFlyJavaCompiler should use different temp directory for each VM
Product: [Modeling] TMF Reporter: Dennis Huebner <dennis.huebner>
Component: XtextAssignee: Dennis Huebner <dennis.huebner>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: tmf.xtext-inbox
Version: 2.3.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Dennis Huebner CLA 2012-02-02 04:34:28 EST
Running the same tests in parallel on the same machine leads to unexpected test failure.
OnTheFlyJavaCompiler should work in the separate temp folders in each VM. Something like:
  new File(javaTmpDir, "otfjc" + OnTheFlyJavaCompiler.class.hashCode())
would do the trick.
Comment 1 Dennis Huebner CLA 2012-02-03 07:46:51 EST
Fixed and verified. See: https://hudson.eclipse.org/hudson/job/xtend-head-test/