This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26322 - bug in XmiContext.findProxy(ModelElement)
Summary: bug in XmiContext.findProxy(ModelElement)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-06 21:00 UTC by _ hkrug
Modified: 2002-08-19 16:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ hkrug 2002-08-06 21:00:05 UTC
The following piece of code in
XmiContext.findProxy(ModelElement) is buggy:

  MofPackage mofPackage = (MofPackage)
path.removeLast ();
  ....
       MofPackage meta = (MofPackage)
ref.refMetaObject ();
       if (meta instanceof MofPackage) {

Actually it must be checked if mofPackage is a
parent of meta. IMHO the last line must be
replaced in the following way:

       if (
meta.allSupertypes().contains(mofPackage) ) {
Comment 1 Daniel Prusa 2002-08-19 16:06:55 UTC
Fixed.