Buggy code:
public class ViewPane extends PartPane implements IPropertyListener { private CLabel titleLabel ; private CLabel status ; private boolean fast = false ; private boolean showFocus = false ; private boolean locked = true ; private ToolBar viewToolBar ; private ToolBarManager viewToolBarMgr ; ToolBar isvToolBar ; private ToolBarManager isvToolBarMgr ; private MenuManager isvMenuMgr ; private ToolItem pullDownButton ; boolean hasFocus ; private boolean showMenuButton = false ; private String theme ; private Sash fastViewSash ; class PaneToolBarManager extends ToolBarManager { public PaneToolBarManager ( ToolBar paneToolBar ) { } protected void relayout ( ToolBar toolBar , int oldCount , int newCount ) { } } class PaneMenuManager extends MenuManager { public PaneMenuManager ( ) { } protected void update ( boolean force , boolean recursive ) { } } class SystemContribution extends ContributionItem { public boolean isDynamic ( ) { } public void fill ( ToolBar toolbar , int index ) { } } private ViewPane . SystemContribution systemContribution = new ViewPane . SystemContribution ( ) ; public ViewPane ( IViewReference ref , WorkbenchPage page ) { } public ViewPane ( IViewReference ref , WorkbenchPage page , String theme ) { } public void createControl ( Composite parent ) { } private void setTabList ( ) { } protected void createChildControl ( ) { } private void recreateToolbars ( ) { } protected WorkbenchPart createErrorPart ( WorkbenchPart oldPart ) { } public boolean isDragAllowed ( Point p ) { } private boolean overImage ( int x ) { } protected void createTitleBar ( ) { } private void toolBarResized ( ToolBar toolBar , int newSize ) { } private void createToolBars ( ) { } public void dispose ( ) { } public void doHide ( ) { } void drawGradient ( boolean active ) { } protected void doMakeFast ( ) { } protected void doMinimize ( ) { } protected void doDock ( ) { } public Control getDragHandle ( ) { } public MenuManager getMenuManager ( ) { } public Control [ ] getTabList ( ) { } public ToolBarManager getToolBarManager ( ) { } public IViewReference getViewReference ( ) { } public void propertyChanged ( Object source , int propId ) { } public void setFast ( boolean b ) { } public void setFastViewSash ( Sash s ) { } void shellActivated ( ) { } void shellDeactivated ( ) { } void setActive ( boolean active ) { } private void setToolBarColors ( Color color ) { } public void showFocus ( boolean inFocus ) { } public void showPaneMenu ( ) { } private boolean isFastView ( ) { } boolean isCloseable ( ) { } boolean isMoveable ( ) { } protected Sashes findSashes ( ) { } protected void addFastViewMenuItem ( Menu parent , boolean isFastView ) { } protected void addMoveItems ( Menu moveMenu ) { } public boolean hasViewMenu ( ) { } public void showViewMenu ( ) { } public String toString ( ) { } public void updateActionBars ( ) { } public void updateTitles ( ) { IViewReference ref = getViewReference ( ) ; if ( ( ( status ) != null ) && ( ! ( status . isDisposed ( ) ) ) ) { boolean changed = false ; String text = ref . getTitle ( ) ; if ( text != null ) { int i = text . indexOf ( '(' ) ; int j = text . lastIndexOf ( ')' ) ; if ( ( ( i > 0 ) && ( j > 0 ) ) && ( j > i ) ) <START_BUG> text = text . substring ( ( i + 1 ) , ( j - 1 ) ) . trim ( ) ; <END_BUG> else text = null ; } if ( ! ( Util . equals ( text , status . getText ( ) ) ) ) { status . setText ( text ) ; changed = true ; } String toolTipText = ref . getTitleToolTip ( ) ; if ( ! ( Util . equals ( toolTipText , status . getToolTipText ( ) ) ) ) { status . setToolTipText ( toolTipText ) ; changed = true ; } ( ( ViewForm2 ) ( control ) ) . setTopLeft ( ( text != null ? status : null ) ) ; if ( changed ) { status . update ( ) ; page . updateTitle ( ref ) ; } } } private Color [ ] getNormalGradient ( ) { } private int [ ] getNormalGradientPercents ( ) { } private Color getNormalForeground ( ) { } private Color [ ] getActiveGradient ( ) { } private int [ ] getActiveGradientPercents ( ) { } private Color getActiveForeground ( ) { } private Color [ ] getDeactivatedGradient ( ) { } private int [ ] getDeactivatedGradientPercents ( ) { } private Color getDeactivatedForeground ( ) { } private int getGradientDirection ( ) { } private boolean isGradientVertical ( ) { } private Font getTitleFont ( ) { } int getStyle ( ) { } void setTheme ( String theme ) { } void setImage ( CTabItem item , Image image ) { } protected void addCloseMenuItem ( Menu menu ) { } protected void addMaximizeMenuItem ( Menu menu ) { } protected void addMoveMenuItem ( Menu menu ) { } protected void addPinEditorItem ( Menu parent ) { } protected void addRestoreMenuItem ( Menu menu ) { } protected void addSizeMenuItem ( Menu menu ) { } protected void doZoom ( ) { } public int getType ( ) { } public LayoutPart targetPartFor ( IWorkbenchDragSource dragSource ) { } public void setContainer ( ILayoutContainer container ) { } }

Fix:
text = text . substring ( ( i + 1 ) , j ) . trim ( ) ;