Rico Neubauer commented on Improvement XSTR-742

For staying source-compatible with Java6 and earlier, you can use this:

    static
    {
        // see http://www.cs.duke.edu/csed/java/jdk1.7/technotes/guides/lang/cl-mt.html
        // TODO as soon as we compile with Java7 as target use this: ClassLoader.registerAsParallelCapable();
        // until then: workaround:
        try
        {
            Method m = ClassLoader.class.getDeclaredMethod("registerAsParallelCapable");
            m.setAccessible(true);
            // Object result =
            m.invoke(null);
            // System.out.println("Result: " + result);
        }
        catch (Throwable t)
        {
            // ignore for older runtime environments
        }
    }
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to