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 46121 - Exeption in RP and infinite loop in JMI
Summary: Exeption in RP and infinite loop in JMI
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-14 10:53 UTC by Petr Hrebejk
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log of the IDE (bzip2 compressed) (11.82 KB, application/octet-stream)
2004-07-14 10:55 UTC, Petr Hrebejk
Details
The nasty source (7.19 KB, text/plain)
2004-07-14 12:58 UTC, Petr Hrebejk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Hrebejk 2004-07-14 10:53:44 UTC
First there is an exception in request processor
thrown. (Saying something about invalid MOFID) and
then after a while the IDE stops working because
of an infinite loop. I even tried to delete the
MDR cachec completely and restart the IDE but it
did not help. (Same behavior). Will attach ziped log.
Comment 1 Petr Hrebejk 2004-07-14 10:55:09 UTC
Created attachment 16239 [details]
Log of the IDE (bzip2 compressed)
Comment 2 Martin Matula 2004-07-14 11:15:10 UTC
Seems the problem is caused by matching of the FieldGroup. There is a
problem probably when one tries to change type of the FieldGroup or
when a field in a field group has a different type than the field
group itself (e.g. int a[], b - in this case field group is of type
int but field a is of type int[]) and the type is changed. Changing of
modifiers or type of the field group should be specially handled in
matching of fields. From looking at the source code I found that we
also need to fix setType method in field and not split the field group
if the new field type is not different from the field group's type or
if it just differs by number of dims.
Comment 3 Petr Hrebejk 2004-07-14 12:58:10 UTC
Created attachment 16243 [details]
The nasty source
Comment 4 Tomas Hurka 2004-07-14 16:21:37 UTC
Fixed in trunk.
Checking in FieldImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/
FieldImpl.java,v  <--  FieldImpl.java
new revision: 1.9; previous revision: 1.8
done
Comment 5 Jiri Prox 2005-07-11 14:13:00 UTC
Petre, please verify this issue, thanks.
Comment 6 Petr Hrebejk 2005-07-18 06:54:54 UTC
v
Comment 7 Quality Engineering 2007-09-20 09:54:52 UTC
Reorganization of java component