Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2008-07-21 20:27:57 +0000
committerChris Recoskie2008-07-21 20:27:57 +0000
commitabeec8d288ac74f3338f30ab64c7a8f517c73bfa (patch)
tree9bcce45daab400e94704e01ca359674b42502679 /xlc/org.eclipse.cdt.errorparsers.xlc/src/org
parent252e01a8368092cf26794bb5f2a68fd7e0f4d211 (diff)
downloadorg.eclipse.cdt-abeec8d288ac74f3338f30ab64c7a8f517c73bfa.tar.gz
org.eclipse.cdt-abeec8d288ac74f3338f30ab64c7a8f517c73bfa.tar.xz
org.eclipse.cdt-abeec8d288ac74f3338f30ab64c7a8f517c73bfa.zip
RESOLVED - bug 237956: xlC parser throws an exception parsing output with word "line"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237956
Diffstat (limited to 'xlc/org.eclipse.cdt.errorparsers.xlc/src/org')
-rw-r--r--xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java b/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java
index 49eaa0f2731..9b836d89818 100644
--- a/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java
+++ b/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java
@@ -110,7 +110,7 @@ public class XlcErrorParser implements IErrorParser
/* look for '.' character after the first occurance
of comma. */
tok = new StringTokenizer(secondPart,"."); //$NON-NLS-1$
- if(tok.hasMoreTokens())
+ if(tok.countTokens()>1)
{
String token = tok.nextToken();
/* look for the string "line " before the
@@ -219,7 +219,7 @@ public class XlcErrorParser implements IErrorParser
}
catch(NumberFormatException e )
{
- throw e;
+ return false;
}
}
} \ No newline at end of file

Back to the top