Bug 7385 Breakpoint no hit if on variable declaration with no initialization
Build 20011219 It seems that a breakpoint will not be considered if located on a variable declaration with no initialization (in my case, it was the first statement of the method): org.eclipse.jdt.internal.compiler.codegen.CodeStream public void generateSyntheticArgumentValues(BlockScope currentScope, ReferenceBinding targetType, Expression enclosingInstance, AstNode invocationSite) { // perform some emulation work in case there is some and we are inside a local type only * ReferenceBinding[] syntheticArgumentTypes;
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/BreakpointLocationVerifier.java
char[] txt= doc.get(start, length).toCharArray();
				scanner.setSourceBuffer(txt);
				token= scanner.getNextToken();
				while (token != TerminalSymbols.TokenNameEOF) {
					if (token == TerminalSymbols.TokenNamebreak ||
						token == TerminalSymbols.TokenNamecontinue ||
						token == TerminalSymbols.TokenNameIdentifier ||
						token == TerminalSymbols.TokenNamereturn ||
						token == TerminalSymbols.TokenNamethis||
						token == TerminalSymbols.TokenNamesuper) {
						found= true;
						break;
					} else {
						token= scanner.getNextToken();
					}
				}
				if (!found) {
					lineNumber++;
				}
			} catch (BadLocationException ble) {
				return -1;
			} catch (InvalidInputException ie) {
				return -1;
			}
		}
		
		return lineNumber + 1;
	}
}