| Summary: | ClassCastException when accessing included features | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | DJ Houghton <dj.houghton> | ||||||
| Component: | Update (deprecated - use Eclipse>Equinox>p2) | Assignee: | Branko Tripkovic <btripkov> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | francois, Mike_Wilson, nalinig, pombredanne, wassim.melhem, william_mills | ||||||
| Version: | 3.2 | ||||||||
| Target Milestone: | 3.2 RC4 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 140942 | ||||||||
| Attachments: |
|
||||||||
|
Description
DJ Houghton
Created attachment 27426 [details]
sample plug-in
Here is a sample plug-in. It is based off the HelloWorld sample plug-in project
so just hit the icon to start it.
It will first try to parse the OK feature. Then it will try and parse the ERROR
feature. It will display a message dialog after each. Exception stack traces
are printed to System.err.
I have encountered this bug as well. I need a fix for the ClassCastException that gets thrown while invoking getFeatureIncluded() urgently and was wondering if the priority/severity can be bumped up. we are already under pressure, providing a patch would be more really great. Created attachment 40884 [details]
patch to apply on FeatureModel.java
Wassim, Mike, we need +1 for this problem. In addition to being trivial to fix, it blocks bug 140942. For bug approvers: the current code erroniously adds a feature object to the list of included features. The code later expects to get included feature reference and fails in class cast. The fix is to add a feature reference using the suitable constructor. Thanks for the extra info, since the patch did not provide enough context for me to understand the nature of the problem. +1. +1 Released as part of bug 140942. *** Bug 58367 has been marked as a duplicate of this bug. *** |