Hi All,

1.    I have discovered a few file handle leaks in core plugins  - which leads 
to random build failures with large multi-module projects.

Before I go and make & submit some changes I wanted to ask what's likely to be 
accepted (in the case where this is classloader related[1]).


1)    Use JDK7 only and call URLClassLoader.close()

2)    Use reflection to do the same (would only fix the issue when run on JDK7+)

3)    Use reflection to access Oracle private methods in JDK<7 and generic in 
JDK7+ (would not work when run on non oracle JVMs <7)

4)    Write a custom Classloader (may not get all the securityManager aspects 
correct)

5)    Use someone elses ClassLoader (e.g eclipse - what licences are available 
to use for deps in core plugins?)
/James

[1] http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4950148

Reply via email to