Community
Participate
Working Groups
Build ID: M20080911-1700 Steps To Reproduce: I have a Java class with a constructor calling another constructor via this(parameters...). The called constructor now has an additional argument. When I add that same argument to the end of the parameter list of this constructor and hit ctrl-s, the following Exception occurs (reproducibly, for the current state of the workbench). More information: java.lang.StackOverflowError at org.eclipse.jdt.internal.compiler.lookup.Binding.isValidBinding(Binding.java:91) at org.eclipse.jdt.core.dom.DefaultBindingResolver.getMethodBinding(DefaultBindingResolver.java:230) at org.eclipse.jdt.core.dom.MethodBinding.getMethodDeclaration(MethodBinding.java:423) at org.eclipse.jdt.core.dom.DefaultBindingResolver.findDeclaringNode(DefaultBindingResolver.java:170) at org.eclipse.jdt.core.dom.CompilationUnit.findDeclaringNode(CompilationUnit.java:327) at org.eclipse.jdt.internal.corext.dom.ASTNodes.findDeclaration(ASTNodes.java:235) at org.eclipse.jdt.internal.corext.fix.VariableDeclarationFix$VariableDeclarationFinder.callsWrittingConstructor(VariableDeclarationFix.java:291) at org.eclipse.jdt.internal.corext.fix.VariableDeclarationFix$VariableDeclarationFinder.callsWrittingConstructor(VariableDeclarationFix.java:295) ... (that last line 1017 more times)
Ilja - could pls you provide the testcase as an attachment ?
No, sorry, couldn't reproduce in a reasonably sized testcase. The class this happened with depended on the existence of a 1.5GB workspace. After I changed a *different* class, it also didn't happen again. It might be that I also used features like quick assist or similar in a slightly different way. Sorry, I fear I can't be of much more help. As the problem somehow went away now, I reduced the severity of this bug entry.
There is not much we can do without more information.
Closing as WORKSFORME. No info provided. Reopen if you can provide the requested information.
The problem never happened again to me.
Verified for 3.6M4 using Build id: I20091209-0100
Verified.