Buggy code:
public class LogUI extends JFrame implements ChainsawViewer , SettingsListener { private static final String CONFIG_FILE_TO_USE = "config.file" ; static final String USE_CYCLIC_BUFFER_PROP_NAME = "chainsaw.usecyclicbuffer" ; static final String CYCLIC_BUFFER_SIZE_PROP_NAME = "chainsaw.cyclicbuffersize" ; private static final String MAIN_WINDOW_HEIGHT = "main.window.height" ; private static final String MAIN_WINDOW_WIDTH = "main.window.width" ; private static final String MAIN_WINDOW_Y = "main.window.y" ; private static final String MAIN_WINDOW_X = "main.window.x" ; static final String TABLE_COLUMN_ORDER = "table.columns.order" ; static final String TABLE_COLUMN_WIDTHS = "table.columns.widths" ; private static final String LOOK_AND_FEEL = "LookAndFeel" ; private static final String STATUS_BAR = "StatusBar" ; static final String COLUMNS_EXTENSION = ".columns" ; private static ChainsawSplash splash ; private URL configURLToUse ; private boolean noReceiversDefined ; private ReceiversPanel receiversPanel ; private ChainsawTabbedPane tabbedPane ; private JToolBar toolbar ; private ChainsawStatusBar statusBar ; private final Map tableModelMap = new HashMap ( ) ; private final Map tableMap = new HashMap ( ) ; private final List filterableColumns = new ArrayList ( ) ; private final Map panelMap = new HashMap ( ) ; ChainsawAppenderHandler handler ; private ChainsawToolBarAndMenus tbms ; private ChainsawAbout aboutBox ; private final SettingsManager sm = SettingsManager . getInstance ( ) ; private String lookAndFeelClassName ; private final JFrame tutorialFrame = new JFrame ( "Chainsaw<seq2seq4repair_space>Tutorial" ) ; private boolean isGUIFullyInitialized = false ; private Object initializationLock = new Object ( ) ; private Action shutdownAction = new AbstractAction ( ) { public void actionPerformed ( ActionEvent e ) { } } ; private EventListenerList shutdownListenerList = new EventListenerList ( ) ; private WelcomePanel welcomePanel ; public LogUI ( ) { } private static final void showSplash ( ) { } private static final void removeSplash ( ) { } public void addShutdownListener ( ShutdownListener l ) { } public void removeShutdownListener ( ShutdownListener l ) { } public static void main ( String [ ] args ) { } public void activateViewer ( ChainsawAppender appender ) { } private void initGUI ( ) { } public void loadSettings ( LoadSettingsEvent event ) { } public void saveSettings ( SaveSettingsEvent event ) { } public void activateViewer ( ) { } private void showNoReceiversWarningPanel ( ) { } void exit ( ) { } void addWelcomePanel ( ) { } void removeWelcomePanel ( ) { } void toggleReceiversPanel ( ) { } boolean isReceiverPanelVisible ( ) { } public ChainsawStatusBar getStatusBar ( ) { } void showAboutBox ( ) { } Map getPanels ( ) { Map m = new HashMap ( ) ; Set panelSet = getPanelMap ( ) . entrySet ( ) ; Iterator iter = panelSet . iterator ( ) ; while ( iter . hasNext ( ) ) { Map . Entry entry = ( ( Map . Entry ) ( iter . next ( ) ) ) ; <START_BUG> m . put ( entry . getKey ( ) , Boolean . valueOf ( ( ( DockablePanel ) ( entry . getValue ( ) ) ) . isDocked ( ) ) ) ; <END_BUG> } return m ; } void displayPanel ( String panelName , boolean display ) { } private void shutdown ( ) { } private void fireShutdownEvent ( ) { } public final void setShutdownAction ( Action shutdownAction ) { } private void performShutdownAction ( ) { } LogPanel getCurrentLogPanel ( ) { } void removeStatusBar ( ) { } boolean isStatusBarVisible ( ) { } void addStatusBar ( ) { } public String getActiveTabName ( ) { } private Vector formatFields ( Vector v ) { } private DisplayFilter loadDisplayFilter ( String ident ) { } public void setLookAndFeel ( String lookAndFeelClassName ) { } private void applyLookAndFeel ( String lookAndFeelClassName ) { } void showHelp ( URL url ) { } private WelcomePanel getWelcomePanel ( ) { } public boolean isLogTreePanelVisible ( ) { } public String getInterestedIdentifier ( ) { } public Map getPanelMap ( ) { } public SettingsManager getSettingsManager ( ) { } public List getFilterableColumns ( ) { } public void setToolBarAndMenus ( ChainsawToolBarAndMenus tbms ) { } public ChainsawToolBarAndMenus getToolBarAndMenus ( ) { } public Map getTableMap ( ) { } public Map getTableModelMap ( ) { } public void setTabbedPane ( ChainsawTabbedPane tabbedPane ) { } public ChainsawTabbedPane getTabbedPane ( ) { } public void setupTutorial ( ) { } private class NewTabEventBatchReceiver implements EventBatchListener { public void receiveEventBatch ( final String ident , final List eventBatchEntrys ) { } public String getInterestedIdentifier ( ) { } } class TabIconHandler implements EventCountListener { private final String ident ; private int lastCount ; private int currentCount ; private boolean hasNewEvents = true ; ImageIcon NEW_EVENTS = new ImageIcon ( ChainsawIcons . ANIM_RADIO_TOWER ) ; ImageIcon HAS_EVENTS = new ImageIcon ( ChainsawIcons . INFO ) ; public TabIconHandler ( final String ident ) { } public void eventCountChanged ( int currentCount , int totalCount ) { } } }

Fix:
m . put ( entry . getKey ( ) , new Boolean ( ( ( DockablePanel ) ( entry . getValue ( ) ) ) . isDocked ( ) ) ) ;