Bug 40205 automatically insert closing brace: does not handle '//' in strings
200307150800 1. Try this snippet { String s= "//"; void m() <CURSOR> } 2. Insert an opening brace 3. Press <ENTER> The expected closing brace does not get inserted
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/java/JavaAutoIndentStrategy.java
/**
		 * Internal line interator working on <code>IDocument</code>.
		 */
		private static final class LineIterator implements Iterator {
			
			
			private final IDocument fDocument;
			
			private int fLineIndex;
	
			/**
			 * Creates a line iterator.
			 */
			public LineIterator(String string) {
				fDocument= new Document(string);
			}
	
			/*
			 * @see java.util.Iterator#hasNext()
			 */
			public boolean hasNext() {
				return fLineIndex != fDocument.getNumberOfLines();
			}
	
			/*
			 * @see java.util.Iterator#next()