Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370408 - OnTheFlyJavaCompiler should use different temp directory for each VM
Summary: OnTheFlyJavaCompiler should use different temp directory for each VM
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dennis Huebner CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 04:34 EST by Dennis Huebner CLA
Modified: 2012-02-03 07:46 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/