[jbosstools-issues] [JBoss JIRA] (JBIDE-20316) Port Forwarding Wizard : OpenshiftPreferencePage uses Java 8 API

Fred Bricon (JIRA) issues at jboss.org
Mon Jul 20 19:06:01 EDT 2015


Fred Bricon created JBIDE-20316:
-----------------------------------

             Summary: Port Forwarding Wizard : OpenshiftPreferencePage uses Java 8 API
                 Key: JBIDE-20316
                 URL: https://issues.jboss.org/browse/JBIDE-20316
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: openshift
    Affects Versions: 4.3.0.Beta2
            Reporter: Fred Bricon


https://github.com/jbosstools/jbosstools-openshift/blob/35496b287c1849f7a2075384498ba572f45d1b96/plugins/org.jboss.tools.openshift.ui/src/org/jboss/tools/openshift/internal/ui/preferences/OpenShiftPreferencePage.java#L137 uses 
{code}
process.waitFor(500, TimeUnit.MILLISECONDS)
{code}

which is only available in Java 8, whereas the plugin is meant to compile/run with Java 7.

I found this ugly workaround to implement a process timeout in Java 7 : http://stackoverflow.com/questions/808276/how-to-add-a-timeout-value-when-using-javas-runtime-exec



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list