Buggy code:
messageBoxError . setText ( PROJECT_ProjectOverwriteTitle ) ; messageBoxError . setMessage ( PROJECT_ProjectOverwrite ) ; int result2 = messageBoxError . open ( ) ; if ( result2 == ( SWT . NO ) ) { result = new NewProjectDialog ( true ) . open ( ) ; } else if ( result2 == ( SWT . YES ) ) { break ; } else { cancelIt = true ; break ; } } if ( ! cancelIt ) { Project . setProjectName ( Project . getTempProjectName ( ) ) ; Project . setProjectPath ( Project . getTempProjectPath ( ) ) ; NLogger . debug ( getClass ( ) , "Saving<seq2seq4repair_space>new<seq2seq4repair_space>project..." ) ; if ( ! ( Project . save ( ) ) ) { MessageBox messageBoxError = new MessageBox ( getShell ( ) , ( ( SWT . ICON_ERROR ) | ( SWT . OK ) ) ) ; messageBoxError . setText ( DIALOG_Error ) ; messageBoxError . setMessage ( DIALOG_CantSaveProject ) ; } } break ; } else { secondRun = true ; MessageBox messageBox = new MessageBox ( getShell ( ) , ( ( ( ( SWT . ICON_QUESTION ) | ( SWT . YES ) ) | ( SWT . CANCEL ) ) | ( SWT . NO ) ) ) ; messageBox . setText ( DIALOG_UnsavedChangesTitle ) ; Object [ ] messageArguments = new Object [ ] { I18n . DIALOG_TheNewProject } ; MessageFormat formatter = new MessageFormat ( "" ) ; formatter . setLocale ( LOCALE ) ; formatter . applyPattern ( DIALOG_UnsavedChanges ) ; messageBox . setMessage ( formatter . format ( messageArguments ) ) ; int result2 = messageBox . open ( ) ; if ( result2 == ( SWT . CANCEL ) ) { cancelIt = true ; break ; } else if ( result2 == ( SWT . NO ) ) { break ; } } } if ( cancelIt ) { cleanupClosedData ( ) ; updateTree_unsavedEntries ( ) ; return ; } } final int s = Editor3DWindow . renders . size ( ) ; for ( int i = 0 ; i < s ; i ++ ) { try { GLCanvas canvas = Editor3DWindow . canvasList . get ( i ) ; OpenGLRenderer renderer = Editor3DWindow . renders . get ( i ) ; if ( ! ( canvas . isCurrent ( ) ) ) { canvas . setCurrent ( ) ; try { GLContext . useContext ( canvas ) ; } catch ( LWJGLException e ) { NLogger . error ( Editor3DWindow . class , e ) ; } } renderer . dispose ( ) ; } catch ( SWTException swtEx ) { NLogger . error ( Editor3DWindow . class , swtEx ) ; } } Editor3DWindow . alive . set ( false ) ; final Editor3DWindowState winState = WorkbenchManager . getEditor3DWindowState ( ) ; final ArrayList < Composite3DState > c3dStates = new ArrayList < Composite3DState > ( ) ; Control c = Editor3DDesign . getSashForm ( ) . getChildren ( ) [ 1 ] ; if ( c != null ) { if ( ( c instanceof SashForm ) || ( c instanceof CompositeContainer ) ) { saveComposite3DStates ( c , c3dStates , "" , "|" ) ; } else { } } else { } winState . setThreeDwindowConfig ( c3dStates ) ; winState . setLeftSashWeights ( ( ( SashForm ) ( Editor3DDesign . getSashForm ( ) . getChildren ( ) [ 0 ] ) ) . getWeights ( ) ) ; winState . setLeftSashWidth ( Editor3DDesign . getSashForm ( ) . getWeights ( ) ) ; winState . setPrimitiveZoom ( cmp_Primitives [ 0 ] . getZoom ( ) ) ; winState . setPrimitiveZoomExponent ( cmp_Primitives [ 0 ] . getZoom_exponent ( ) ) ; winState . setPrimitiveViewport ( cmp_Primitives [ 0 ] . getViewport2 ( ) ) ; WorkbenchManager . getUserSettingState ( ) . setRecentItems ( getRecentItems ( ) ) ; WorkbenchManager . saveWorkbench ( ) ; try { <START_BUG> ZipWriter writer = new ZipWriter ( "mesh_reduce.txt" ) ; <END_BUG> for ( ReduceRule rule : CSG . REDUCE_RULES ) { writer . println ( rule . toStringShort ( ) ) ; } writer . flush ( ) ; writer . close ( ) ; } catch ( FileNotFoundException e ) { } catch ( UnsupportedEncodingException e ) { } catch ( Exception e ) { } setReturnCode ( CANCEL ) ; close ( ) ; } private void saveComposite3DStates ( Control c , ArrayList < Composite3DState > c3dStates , String parentPath , String path ) { } public Editor3DWindowState getEditor3DWindowState ( ) { } public void setEditor3DWindowState ( Editor3DWindowState editor3DWindowState ) { } public static Editor3DWindow getWindow ( ) { } public void updateTree_unsavedEntries ( ) { } @ SuppressWarnings ( "unchecked" ) public void updateTree_renamedEntries ( ) { } private class Comp implements Comparator < String > { @ Override public int compare ( String o1 , String o2 ) { } } public void updateTree_removeEntry ( DatFile e ) { } private void clickBtnTest ( Button btn ) { } private void clickSingleBtn ( Button btn ) { } public boolean isAddingSomething ( ) { } public void setAddingSomething ( boolean addingSomething ) { } public boolean isAddingVertices ( ) { } public void setAddingVertices ( boolean addingVertices ) { } public boolean isAddingLines ( ) { } public void setAddingLines ( boolean addingLines ) { } public boolean isAddingTriangles ( ) { } public void setAddingTriangles ( boolean addingTriangles ) { } public boolean isAddingQuads ( ) { } public void setAddingQuads ( boolean addingQuads ) { } public boolean isAddingCondlines ( ) { } public void setAddingCondlines ( boolean addingCondlines ) { } public boolean isAddingSubfiles ( ) { } public void setAddingSubfiles ( boolean addingSubfiles ) { } public void disableAddAction ( ) { } public TreeItem getProjectParts ( ) { }

Fix:
ZipWriter writer = new ZipWriter ( "mesh_reduce.gz" ) ;