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.
Build: NetBeans IDE 7.0 Beta 2 (Build 201102140001) VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07 OS: Linux User Comments: GUEST: Trying to go to the class declaration helkav: opened instance of NetBeans with previously loaded java project tveimo: editing some java code while having pasted in some php code to have onscreen as reference public static int iptoint(String ip) { String [] parts = ip.split("\."); //$parts=split("\.",$ip); int r = 0; for (int i = 0; i < 4; i++) { r = 256 * r + parts[i]; } return r; // was editing at this point. for ($i=0; $i<4; $i++) $r=256*$r+$parts[$i]; return $r; } function checkoverlap($fromip,$toip,$userid) { if ($toip<$fromip) return -1; $res=mysql_query("SELECT fromIP, toIP, userid FROM access WHERE toIP>=$fromip AND userid<>$userid ORDER BY toIP LIMIT 1"); $row=mysql_fetch_row($res); if ($row[0] && $row[0]<=$toip) return $row[2]; $res=mysql_query("SELECT fromIP, toIP, userid FROM access WHERE fromIP<=$toip AND userid<>$userid ORDER BY fromIP DESC LIMIT 1"); $row=mysql_fetch_row($res); if ($row[1] && $row[1]>=$fromip) return $row[2]; return 0; } function inttoip($inte) { $r=array(); for ($i=0; $i<4; $i++) GUEST: selecting text tveimo: editing java code while having pasted in old php code for reference. The syntax highlighter doesn't seem to like that.. Stacktrace: java.lang.StackOverflowError at org.netbeans.modules.java.hints.introduce.CopyFinder.scan(CopyFinder.java:343) at org.netbeans.modules.java.hints.introduce.CopyFinder.scan(CopyFinder.java:380) at org.netbeans.modules.java.hints.introduce.CopyFinder.scan(CopyFinder.java:380) at org.netbeans.modules.java.hints.introduce.CopyFinder.scan(CopyFinder.java:380) at org.netbeans.modules.java.hints.introduce.CopyFinder.scan(CopyFinder.java:380) at org.netbeans.modules.java.hints.introduce.CopyFinder.scan(CopyFinder.java:380)
Created attachment 107016 [details] stacktrace
This should fix it: http://hg.netbeans.org/jet-main/rev/71ea93b57367
Integrated into 'main-golden', will be available in build *201103280400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/71ea93b57367 User: Jan Lahoda <jlahoda@netbeans.org> Log: #196720: disable variable matching unless the variable matching is required.
I am not sure how to verify this issue. Is there anybody who is able to verify in the trunk? Thanks.
Sorry, I do not have exact steps to reproduce (I guessed the root cause from the stack trace).
Since there are no known regressions related to this issue I am marking as Verified to assure that the fix will be in patch1. Honzo, please integrate the fix.
Applied to release70_fixes: http://hg.netbeans.org/releases/rev/00e6ec7c6cef Spec. versions and long descriptions updated: http://hg.netbeans.org/releases/rev/ab821ef74098
Verified in patch1 the same way as in trunk.