| Summary: | Bogus error when comparing two enumeration values | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Matt Heitz <mheitz> |
| Component: | EDT | Assignee: | Paul Harmon <pharmon> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jqian |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
The error disappeared after a while. I'm sure it'll come back if I wait long enough, so I'm leaving this open. I have made a few more tweeks to: SystemEnvironment DictionaryBinding That will hopefully prevent this from happening. Please reopen if you can get the error to occur again. Verified. |
Last week I started getting a bogus error message on some code that compared two enumeration values. It wasn't there when I first wrote the code, but appeared after a while. I eventually switched to a new workspace, and the error was gone. It just came back. Here's a function where the error appears. function dictionaryOrderingDefault() { @Test } d dictionary; LogResult.assertTrue1( d.getOrdering() == OrderingKind.none ); end IWN.VAL.5089.e 42/26 TestFancyLanguageChanges - d.getOrdering() is not valid for compare to OrderingKind.none. At line 42 in file \unit\EGLSource\x\TestFancyLanguageChanges.egl TestFancyLanguageChanges.egl /unit/EGLSource/x line 42 EDT Problem Jing was getting a similar error so I put her on the CC list. I noticed a stack trace in my error log. It may not be related, since I can't make it happen again even after restarts and cleans, but I'm suspicious. org.eclipse.edt.compiler.internal.core.builder.BuildException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [skip a hundred lines or so...] Caused by: java.lang.ClassCastException: org.eclipse.edt.compiler.binding.NotFoundBinding incompatible with org.eclipse.edt.compiler.binding.EnumerationTypeBinding at org.eclipse.edt.compiler.internal.mof2binding.Mof2BindingBase.createAnnotationSubtypeFor(Mof2BindingBase.java:711) at org.eclipse.edt.compiler.internal.mof2binding.Mof2BindingPart.visit(Mof2BindingPart.java:533) ... 188 more