1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Bug 573786: Handle UnsatisfiedLinkError turn off ConPTY

When starting on older versions of Windows ensure that WinPTY continues
to be used by catching all the types of exceptions that may indicate
that ConPTY is not available. This change catches all Throwables as
we want to know about all RuntimeExceptions and Errors

Change-Id: I7524d9286efe9296f1bb44311c4a3be1e5195c14
This commit is contained in:
Jonah Graham 2021-05-26 10:01:02 -04:00
parent 01cc2ac4d2
commit 37fef0749c

View file

@ -146,12 +146,12 @@ public class PTY {
slaveInit = "conpty"; //$NON-NLS-1$
inInit = new ConPTYInputStream(conPTY);
outInit = new ConPTYOutputStream(conPTY);
} catch (RuntimeException e) {
isConPTY = IS_CONPTY.CONPTY_NO;
CNativePlugin.log(Messages.PTY_FailedToStartConPTY, e);
} catch (NoClassDefFoundError e) {
isConPTY = IS_CONPTY.CONPTY_NO;
CNativePlugin.log(Messages.PTY_NoClassDefFoundError, e);
} catch (Throwable e) {
isConPTY = IS_CONPTY.CONPTY_NO;
CNativePlugin.log(Messages.PTY_FailedToStartConPTY, e);
}
}