Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331399

Summary: [Advisory Team] StackOverflow while working on ZF2
Product: z_Archived Reporter: Zhongwei Zhao <zhaozhongwei>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
patch none

Description Zhongwei Zhao CLA 2010-11-30 03:34:37 EST
from ZF developer

I get these errors while doing general refactoring work on ZF2, specifically in Zend/GData.  They occur whenever I'm editing, including during comment editing.  Of note: I have egit installed in my instance of ZendStudio. I have also set the interpreter to 5.3, my github branch (so you can see the exact code I'm working on) is https://github.com/mfacenet/zf2/tree/milestones/exceptions
 
!ENTRY org.eclipse.core.jobs 4 2 2010-11-27 18:51:43.909
!MESSAGE An internal error occurred during: "Processing Dirty Regions".
!STACK 0
java.lang.StackOverflowError
        at org.eclipse.php.internal.core.ast.nodes.TypeBinding.getDeclaredMethods(TypeBinding.java:225)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInType(Bindings.java:278)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:303)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.innerFindOverriddenMethodInHierarchy(Bindings.java:308)
        at org.eclipse.php.internal.core.ast.nodes.Bindings.findOverriddenMethodInHierarchy(Bindings.java:295)
Comment 1 Zhongwei Zhao CLA 2010-11-30 03:40:28 EST
Created attachment 184096 [details]
patch

fixed in head and branch
Comment 2 Zhongwei Zhao CLA 2010-11-30 03:42:03 EST
fixed
Comment 3 xu jiaxi CLA 2010-12-01 00:10:30 EST
Created attachment 184222 [details]
patch

Hi zhao,
I find StackOverflowError will also happen in DLTK.
Here is the patch.
Comment 4 Zhongwei Zhao CLA 2010-12-01 01:11:12 EST
(In reply to comment #3)
> Created an attachment (id=184222) [details]
> patch
> 
> Hi zhao,
> I find StackOverflowError will also happen in DLTK.
> Here is the patch.

Hi Xu

It is better to open another bug for DLTK Core,and paste the log,attach the sample code and the patch.

Thanks!
Comment 5 xu jiaxi CLA 2010-12-01 02:59:56 EST
OK, I have opened it. bug 331505
Comment 6 Ilina Stefanova CLA 2011-07-28 09:16:56 EDT
Verified.