Community
Participate
Working Groups
Build Identifier: Version: 3.6.2, Build id: M20110210-1200 This happens only if the identifier is single letter. This happens only if the identifier is typed in the first column. I understand this is a rare scenario. But, text editors inherited from AbstractTextEditor will have the same behavior as well. That's why I raise this as a Minor bug. I guess, the problem might be in org.eclipse.jdt.internal.ui.text.JavaHeuristicScanner.scanBackward() method. Reproducible: Always Steps to Reproduce: 1. Open a Java editor. 2. Type "int x = 10;" in the class body. 3. Then try typing "x <" in the first column. 4. Even with the identifier context (i.e. x), angular brace is auto completed as "x <>".
Problem was in CompilationUnitEditor.BracketInserter.verifyKey(VerifyEvent), incorrect bound was passed to the scanner. Fixed in HEAD. (commit c6d77669612d953955efd5f92f5cdb83717c8abb)
Verified in I20111021-0800.