Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2019-06-20 14:33:20 -0400
committerEugene Tarassov2019-06-20 14:33:20 -0400
commita9813ab44d41abfdb8fb3d90d5b76785bedc4380 (patch)
treee57cc456340502814a680ac6b7ebdd6586c71b69
parent01ce4ab58a3a62dfc5682b151ff3eb9dc01c7347 (diff)
downloadorg.eclipse.tcf-a9813ab44d41abfdb8fb3d90d5b76785bedc4380.tar.gz
org.eclipse.tcf-a9813ab44d41abfdb8fb3d90d5b76785bedc4380.tar.xz
org.eclipse.tcf-a9813ab44d41abfdb8fb3d90d5b76785bedc4380.zip
TCF Core: better reporting of invalid escape sequence in TCF channel
-rw-r--r--plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java
index c527b0163..15f52edf1 100644
--- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java
+++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/StreamChannel.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2015 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007-2019 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -114,8 +114,7 @@ public abstract class StreamChannel extends AbstractChannel {
}
break;
default:
- if (n < 0) return EOS;
- assert false;
+ throw new IOException("Invalid escape sequence: " + ESC + " " + n);
}
}
}

Back to the top