Bug 82417 Using uninitialized field instead of parameter in MethodStubsSelectionButtonGroup
The constructor of org.eclipse.jdt.internal.junit.wizards. MethodStubsSelectionButtonGroup contains this line: if (fButtonsStyle == SWT.RADIO) { Since fButtonsStyle is not initialized from the parameter buttonsStyle at that moment, what actually was meant is this: if (buttonsStyle == SWT.RADIO) { BTW: I found this bug using the FindBugs plugin. Seems to be really useful.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/wizards/MethodStubsSelectionButtonGroup.java
case 1:
					main.append("swingui"); 
					break;
				case 2 :
					main.append("awtui"); 
					break;
				default :
					main.append("textui"); 
					break;
			}
			 
			if (fUseSuiteInMainForTextRunner && getComboSelection() == 0) {
				main.append(".TestRunner.run(" + typeName + ".suite());"); 				
			} else {
				main.append(".TestRunner.run(" + typeName + ".class);"); 
			}
		}
		main.append("}\n\n"); 
		return main.toString();
	}
	/**
	 * Returns the group widget. When called the first time, the widget will be created.
	 * @param parent composite when called the first time, or <code>null</code>
	 * after.
	 */
	public Composite getSelectionButtonsGroup(Composite parent) {
		if (fButtonComposite == null) {
			assertCompositeNotNull(parent);
			
			GridLayout layout= new GridLayout();