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.
[#2005011200, jdk1.4.2, jdbc:oracle:thin:@qa-sol8-s3:1521:test1, scott, tiger, classes12-92.zip] to reproduce: ------------- 1) expand AAA table 2) right click the AAA node and chose Add Column 3) fill Add Column dialog: Name: AA Type: DECIMAL Index: AAA_idx 4) click OK NOTE: AA node appears in the column tree 5) click the AA column node ERROR: IDE freezes in end-less loop, CPU usage is 100% See attached thread dump.
Created attachment 19649 [details] Thread dump
Reproducible on Linux platform too. Deleting of the AA column node has the same effect.
Possibly it is connected to indexes and it is a duplicate of issue 41529.
*** Issue 41529 has been marked as a duplicate of this issue. ***
Jirka is probably right, it is connected to indexes.
There is a problem when computing hashCode value. All *NodeInfo classes extend Hashtable and it again contains Vector. Computation of hashCode comes in some cases to infinite loop. (Hashtable contains machanism to prevent this problem, but Vector does not.) It is relatively difficult to find the whole loop. It is not newly introduced bug, the same problem is reproducible in 3.6 and 4.0 also. I will try to override hashCode() in ColumnNodeInfo, where computation starts. (It will override also hashCode computation for PrimaryColumnNodeInfo and IndexColumnNodeInfo.) As a side effect, it should also help to improve performance. Will use column name hashCode in *ColumnNodeInfo computation.
Fixed. Please try to verify. Thanks. Checking in src/org/netbeans/modules/db/explorer/infos/ColumnNodeInfo.java; /cvs/db/src/org/netbeans/modules/db/explorer/infos/ColumnNodeInfo.java,v <-- ColumnNodeInfo.java new revision: 1.32; previous revision: 1.31 done
v