rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
variants.put("extwin", "com.jgoodies.plaf.windows.ExtWindowsLookAndFeel ");
variants.put("extwin", "com.jgoodies.plaf.windows.ExtWindowsLookAndFeel");
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String sysos = System.getProperty("os.name"); String syskey = "unix"; if (sysos.regionMatches(true, 0, "windows", 0, 7)) { syskey = "windows"; } else if (sysos.regionMatches(true, 0, "mac", 0, 3))...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d2cee8f5165671d318a97cc2eed7768c8b3c691c/GUIInstaller.java/buggy/src/lib/com/izforge/izpack/installer/GUIInstaller.java
centerPanel.add(LabelFactory.create(parent.langpack.getString("FinishPanel.fail"),
add(LabelFactory.create(parent.langpack.getString("FinishPanel.fail"),
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); parent.setQuitButtonText(parent.langpack.getString("FinishPanel.done")); parent.setQuitButtonIcon("done"); if (idata.installSuccess) { // We set the information ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/70962d5e45783a05271609095130a61620295d86/SimpleFinishPanel.java/clean/src/lib/com/izforge/izpack/panels/SimpleFinishPanel.java
public int executeFiles()
public int executeFiles(int currentStage)
public int executeFiles() { int exitStatus = 0; String[] output = new String[2]; String pathSep = System.getProperty("path.separator"); String osName = System.getProperty("os.name").toLowerCase(); String permissions = (System.getProperty("user.name").equals("root")) ? "a+x" : "u+x"; // loop through...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/FileExecutor.java/buggy/src/lib/com/izforge/izpack/util/FileExecutor.java
if (pathSep.equals(":") && (!osName.startsWith("mac") || osName.endsWith("x")))
if(currentStage!=ExecutableFile.UNINSTALL)
public int executeFiles() { int exitStatus = 0; String[] output = new String[2]; String pathSep = System.getProperty("path.separator"); String osName = System.getProperty("os.name").toLowerCase(); String permissions = (System.getProperty("user.name").equals("root")) ? "a+x" : "u+x"; // loop through...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/FileExecutor.java/buggy/src/lib/com/izforge/izpack/util/FileExecutor.java
Debug.trace("making file executable (setting executable flag)"); String[] params = {"/bin/chmod", permissions, file.toString()}; exitStatus = executeCommand(params, output);
if (pathSep.equals(":") && (!osName.startsWith("mac") || osName.endsWith("x"))) { Debug.trace("making file executable (setting executable flag)"); String[] params = {"/bin/chmod", permissions, file.toString()}; exitStatus = executeCommand(params, output); }
public int executeFiles() { int exitStatus = 0; String[] output = new String[2]; String pathSep = System.getProperty("path.separator"); String osName = System.getProperty("os.name").toLowerCase(); String permissions = (System.getProperty("user.name").equals("root")) ? "a+x" : "u+x"; // loop through...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/FileExecutor.java/buggy/src/lib/com/izforge/izpack/util/FileExecutor.java
if ((exitStatus == 0) && (efile.executionStage == ExecutableFile.POSTINSTALL))
if ((exitStatus == 0) && ((currentStage == ExecutableFile.POSTINSTALL && efile.executionStage == ExecutableFile.POSTINSTALL) || (currentStage==ExecutableFile.UNINSTALL && efile.executionStage == ExecutableFile.UNINSTALL)))
public int executeFiles() { int exitStatus = 0; String[] output = new String[2]; String pathSep = System.getProperty("path.separator"); String osName = System.getProperty("os.name").toLowerCase(); String permissions = (System.getProperty("user.name").equals("root")) ? "a+x" : "u+x"; // loop through...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/FileExecutor.java/buggy/src/lib/com/izforge/izpack/util/FileExecutor.java
public int executeFiles() { int exitStatus = 0; String[] output = new String[2]; String pathSep = System.getProperty("path.separator"); String osName = System.getProperty("os.name").toLowerCase(); String permissions = (System.getProperty("user.name").equals("root")) ? "a+x" : "u+x"; // loop through...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/FileExecutor.java/buggy/src/lib/com/izforge/izpack/util/FileExecutor.java
public Pack(String name, String description, List osConstraints, boolean required, boolean preselected)
public Pack( String name, String description, List osConstraints, boolean required, boolean preselected)
public Pack(String name, String description, List osConstraints, boolean required, boolean preselected) { this.name = name; this.description = description; this.osConstraints = osConstraints; this.required = required; this.preselected = preselected; nbytes = 0; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Pack.java/clean/src/lib/com/izforge/izpack/Pack.java
} else if (bytes < (GIGABYTES))
} else if (bytes < (GIGABYTES))
public static String toByteUnitsString(int bytes) { if (bytes < KILOBYTES) return String.valueOf(bytes) + " bytes"; else if (bytes < (MEGABYTES)) { double value = bytes / KILOBYTES; return formatter.format(value) + " KB"; } else if (bytes < (GIGABYTES)) { double value = bytes / ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Pack.java/clean/src/lib/com/izforge/izpack/Pack.java
} else
} else
public static String toByteUnitsString(int bytes) { if (bytes < KILOBYTES) return String.valueOf(bytes) + " bytes"; else if (bytes < (MEGABYTES)) { double value = bytes / KILOBYTES; return formatter.format(value) + " KB"; } else if (bytes < (GIGABYTES)) { double value = bytes / ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Pack.java/clean/src/lib/com/izforge/izpack/Pack.java
if(System.currentTimeMillis() - pair.tstamp > _minEvictableIdleTimeMillis) { try { cursor.remove(); _factory.destroyObject(pair.value); } catch(Exception e) { ; }
if(_minEvictableIdleTimeMillis > 0 && System.currentTimeMillis() - pair.tstamp > _minEvictableIdleTimeMillis) { try { cursor.remove(); _factory.destroyObject(pair.value); } catch(Exception e) { ; }
public void run() { CursorableLinkedList.Cursor cursor = null; while(!_cancelled) { long sleeptime = 0L; synchronized(GenericObjectPool.this) { sleeptime = _timeBetweenEvictionRunsMillis; } try { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/efc6cc449e39844e28ad04b1b4d5b8ed261445fa/GenericObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
pixelsID);
pixs.getPixelsDimensions().getId().longValue());
PixelsDimensions getPixelsDimensions(long pixelsID) throws DSOutOfServiceException, DSAccessException { try { IQuery query = getIQueryService(); Pixels pixs = (Pixels) query.get(Pixels.class, pixelsID); return (PixelsDimensions) query.get(PixelsDimensions.class, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0af61836ca32086c893ee2b504beaa9d90e1627b/OMEROGateway.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java
entry = new ServiceFactory();
entry = new ServiceFactory(new Login(userName, "ome"));
ExperimenterData login(String userName, String password) throws DSOutOfServiceException { System.getProperties().setProperty("omero.user", userName); //TODO: Remove it asap System.getProperties().setProperty("omero.pass", "ome"); //System.getProperties().setProperty("omero.pass...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0af61836ca32086c893ee2b504beaa9d90e1627b/OMEROGateway.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java
} catch (Exception err)
} catch (Exception err)
public void actionPerformed(ActionEvent e) { // Prepares the file chooser JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new File(idata.getInstallPath())); fc.setMultiSelectionEnabled(false); fc.addChoosableFileFilter(fc.getAcceptAllFileFilter()); //fc.setCurrentDirectory(new File("."...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
JOptionPane.showMessageDialog(this, err.toString(),
JOptionPane.showMessageDialog( this, err.toString(),
public void actionPerformed(ActionEvent e) { // Prepares the file chooser JFileChooser fc = new JFileChooser(); fc.setCurrentDirectory(new File(idata.getInstallPath())); fc.setMultiSelectionEnabled(false); fc.addChoosableFileFilter(fc.getAcceptAllFileFilter()); //fc.setCurrentDirectory(new File("."...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING));
centerPanel.add( new JLabel( parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING));
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); if (idata.installSuccess) { // We set the information centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); if (idata.installSuccess) { // We set the information centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
String path = translatePath("$INSTALL_PATH") + File.separator + "Uninstaller";
String path = translatePath("$INSTALL_PATH") + File.separator + "Uninstaller";
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); if (idata.installSuccess) { // We set the information centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.uninst.info"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel.add(new JLabel(path, parent.icons.getImageIcon("empty"), JLabel.TRAILING));
centerPanel.add( new JLabel( parent.langpack.getString("FinishPanel.uninst.info"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel.add( new JLabel( path, parent.icons.getImageIcon("empty"), JLabel.TRAILING));
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); if (idata.installSuccess) { // We set the information centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
autoButton = ButtonFactory.createButton(parent.langpack.getString("FinishPanel.auto"), parent.icons.getImageIcon("edit"), idata.buttonsHColor); autoButton.setToolTipText(parent.langpack.getString("FinishPanel.auto.tip"));
autoButton = ButtonFactory.createButton( parent.langpack.getString("FinishPanel.auto"), parent.icons.getImageIcon("edit"), idata.buttonsHColor); autoButton.setToolTipText( parent.langpack.getString("FinishPanel.auto.tip"));
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); if (idata.installSuccess) { // We set the information centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
} else centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.fail"), parent.icons.getImageIcon("information"), JLabel.TRAILING));
} else centerPanel.add( new JLabel( parent.langpack.getString("FinishPanel.fail"), parent.icons.getImageIcon("information"), JLabel.TRAILING));
public void panelActivate() { parent.lockNextButton(); parent.lockPrevButton(); if (idata.installSuccess) { // We set the information centerPanel.add(new JLabel(parent.langpack.getString("FinishPanel.success"), parent.icons.getImageIcon("information"), JLabel.TRAILING)); centerPanel...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/FinishPanel.java/clean/src/lib/com/izforge/izpack/panels/FinishPanel.java
filter = new UpdateFilter( sec, (LocalQuery) sf.getQueryService() );
filter = new UpdateFilter( );
protected void setUp() throws Exception { super.setUp(); sf = new MockServiceFactory(); ec = new ThreadLocalEventContext(); sec = new BasicSecuritySystem (sf,ec ); sf.mockAdmin = mock(IAdmin.class); sf.mockQuery = mock(LocalQuery.class); sf.mockTyp...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1fa4aa1df076354d9e858cfea9c54d59ae47d22a/AbstractLoginMockTest.java/buggy/components/server/test/ome/server/utests/AbstractLoginMockTest.java
public abstract void addLangPack(String iso3, InputStream input) throws Exception;
public abstract void addLangPack(String iso3, InputStream input) throws Exception;
public abstract void addLangPack(String iso3, InputStream input) throws Exception;
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public abstract void addNativeLibrary(String name, InputStream input) throws Exception;
public abstract void addNativeLibrary(String name, InputStream input) throws Exception;
public abstract void addNativeLibrary(String name, InputStream input) throws Exception;
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public abstract ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception;
public abstract ZipOutputStream addPack( int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception;
public abstract ZipOutputStream addPack(int packNumber, String name, List osConstraints, boolean required, String description, boolean preselected) throws Exception;
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
throws Exception;
throws Exception;
public abstract void addPanelClass(String classFilename, InputStream input) throws Exception;
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public abstract void addResource(String resId, InputStream input) throws Exception;
public abstract void addResource(String resId, InputStream input) throws Exception;
public abstract void addResource(String resId, InputStream input) throws Exception;
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
throws IOException
throws IOException
protected long copyStream(InputStream in, OutputStream out) throws IOException { byte[] buffer = new byte[5120]; long bytesCopied = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { out.write(buffer, 0, bytesInBuffer); bytesCopied += bytesInBuffer; } return by...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public void writeSkeletonInstaller (JarOutputStream out) throws Exception
public void writeSkeletonInstaller(JarOutputStream out) throws Exception
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("/lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
skeleton_is = new ZipInputStream (is);
skeleton_is = new ZipInputStream(is);
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("/lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
skeleton_is = new ZipInputStream (new FileInputStream ( Compiler.IZPACK_HOME + "lib" + File.separator + "installer.jar"));
skeleton_is = new ZipInputStream( new FileInputStream( Compiler.IZPACK_HOME + "lib" + File.separator + "installer.jar"));
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("/lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("/lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("/lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
public void writeSkeletonInstaller (JarOutputStream out) throws Exception { InputStream is = getClass().getResourceAsStream("/lib/installer.jar"); ZipInputStream skeleton_is = null; if (is != null) { skeleton_is = new ZipInputStream (is); } if (skeleton_is == null) { skeleton_is = n...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Packager.java/clean/src/lib/com/izforge/izpack/compiler/Packager.java
if (pack.id == null || pack.id.equals("")){
if (langpack == null || pack.id == null || pack.id.equals("")){
public Object getValueAt(int rowIndex, int columnIndex) { Pack pack = (Pack) packs.get(rowIndex); switch (columnIndex) { case 0 : int val = 0; if (pack.required) { val = -1; } else { val = (packsToInstall.contains(pack) ? 1 ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/PacksPanel.java/clean/src/lib/com/izforge/izpack/panels/PacksPanel.java
if (pack.id != null && !pack.id.equals(""))
if (langpack != null && pack.id != null && !pack.id.equals(""))
public void valueChanged(ListSelectionEvent e) { int i = packsTable.getSelectedRow(); if (i >= 0) { Pack pack = (Pack) idata.availablePacks.get(i); String desc = ""; if (pack.id != null && !pack.id.equals("")) { desc = langpack.getString(pack.id+".description"); } if (de...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/PacksPanel.java/clean/src/lib/com/izforge/izpack/panels/PacksPanel.java
infoLabel = new JLabel(parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING);
infoLabel = new JLabel( parent.langpack.getString("LicencePanel.info"), parent.icons.getImageIcon("history"), JLabel.TRAILING);
public HTMLLicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JL...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
} catch (Exception err)
} catch (Exception err)
public HTMLLicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JL...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
agreeLabel = new JLabel(parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING);
agreeLabel = new JLabel( parent.langpack.getString("LicencePanel.agree"), parent.icons.getImageIcon("help"), JLabel.TRAILING);
public HTMLLicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JL...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false);
yesRadio = new JRadioButton(parent.langpack.getString("LicencePanel.yes"), false);
public HTMLLicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JL...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false);
noRadio = new JRadioButton(parent.langpack.getString("LicencePanel.no"), false);
public HTMLLicencePanel(InstallerFrame parent, InstallData idata) { super(parent, idata); // We initialize our layout layout = new GridBagLayout(); gbConstraints = new GridBagConstraints(); setLayout(layout); // We load the licence loadLicence(); // We put our components infoLabel = new JL...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
catch (Exception err) {}
public void hyperlinkUpdate(HyperlinkEvent e) { try { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) textArea.setPage(e.getURL()); } catch (Exception err) {} }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
} else
} else
public boolean isValidated() { if (noRadio.isSelected()) { parent.exit(); return false; } else return (yesRadio.isSelected()); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
} catch (Exception ex)
} catch (Exception ex)
private URL loadLicence() { String resNamePrifix = "HTMLLicencePanel.licence"; try { return ResourceManager.getInstance().getURL(resNamePrifix); } catch (Exception ex) { ex.printStackTrace(); } return null; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/HTMLLicencePanel.java/buggy/src/lib/com/izforge/izpack/panels/HTMLLicencePanel.java
} catch (ResourceNotFoundException rnfe) {} }
public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata) { // Load only once ... if (getDefaultInstallDir() != null) return; BufferedReader br = null; try { InputStream in = null; if (OsVersion.IS_WINDOWS) in =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/eb7a5df4d2709fd7dfd80506427f4d31c17dfe27/PathInputPanel.java/clean/src/lib/com/izforge/izpack/panels/PathInputPanel.java
e.printStackTrace();
public static void loadDefaultInstallDir(InstallerFrame parentFrame, InstallData idata) { // Load only once ... if (getDefaultInstallDir() != null) return; BufferedReader br = null; try { InputStream in = null; if (OsVersion.IS_WINDOWS) in =...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/eb7a5df4d2709fd7dfd80506427f4d31c17dfe27/PathInputPanel.java/clean/src/lib/com/izforge/izpack/panels/PathInputPanel.java
_factory.activateObject(pair.value); if(_testOnBorrow && !_factory.validateObject(pair.value)) { _factory.destroyObject(pair.value);
try { _factory.activateObject(pair.value); if(_testOnBorrow && !_factory.validateObject(pair.value)) { throw new Exception("validateObject failed"); } _numActive++; return pair.value; } catch (Exception e) { try { _factory.destroyObject(pair.value); } catch (Exception e2) { }
public synchronized Object borrowObject() throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/9edfa6440c9902186229544c41e8449da42b6b9a/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
} } else { _numActive++; return pair.value;
} else { continue; }
public synchronized Object borrowObject() throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { ObjectTimestampPair pair = null; // if there are any sleeping, just grab one of those try { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/9edfa6440c9902186229544c41e8449da42b6b9a/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSaveImage() { image = control.getDisplayImage(); lensImage = null; saveMessage = MAIN_MSG; preview.setImage(image); UIUtilities.centerAndShow(preview); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSaveImageAndROI() { image = control.getImageAndROIs(); lensImage = null; saveMessage = MAIN_MSG; preview.setImage(image); UIUtilities.centerAndShow(preview); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null || lensImage == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinAndImage() { JCheckBox box = view.selection.paintingOnOff; if (box.isSelected()) { int i = view.selection.colors.getSelectedIndex(); image = control.getDisplayImageWithPinArea(true, colorSelection[i]); } else image = control.getDisplayImage(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinBottomLeft() { JCheckBox box = view.selection.paintingOnOff; Color c = null; if (box.isSelected()) { int i = view.selection.colors.getSelectedIndex(); c = colorSelection[i]; } image = control.getPinOnSideBottomLeft(box.isSelected...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinBottomRight() { JCheckBox box = view.selection.paintingOnOff; Color c = null; if (box.isSelected()) { int i = view.selection.colors.getSelectedIndex(); c = colorSelection[i]; } image = control.getPinOnSideBottomRight(box.isSelect...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinImage() { image = control.getPinImage(); lensImage = null; saveMessage = PIN_MSG; preview.setImage(image); UIUtilities.centerAndShow(preview); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinOnImage() { image = control.getPinOnImage(); saveMessage = BOTH_MSG; lensImage = null; preview.setImage(image); UIUtilities.centerAndShow(preview); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinTopLeft() { JCheckBox box = view.selection.paintingOnOff; Color c = null; if (box.isSelected()) { int i = view.selection.colors.getSelectedIndex(); c = colorSelection[i]; } image = control.getPinOnSideTopLeft(box.isSelected(), c)...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (image == null) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Save image", saveMessage); cancelPreviewSaveImage(); return; }
private void handleSavePinTopRight() { JCheckBox box = view.selection.paintingOnOff; Color c = null; if (box.isSelected()) { int i = view.selection.colors.getSelectedIndex(); c = colorSelection[i]; } image = control.getPinOnSideTopRight(box.isSelected(), ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/ImageSaverMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/ImageSaverMng.java
if (img == null) return;
void setImage(BufferedImage img) { int w = img.getWidth()+3*ViewerUIF.START; int h = img.getHeight()+2*ViewerUIF.START; setContainerSize(new Dimension(w, h)); w += 2*ViewerUIF.START; h += 2*ViewerUIF.START; setWindowSize(w, h); canvas.paintImage(img); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/Preview.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/Preview.java
if (img == null || lensImage == null) return;
void setImages(BufferedImage img, BufferedImage lensImage) { int w = img.getWidth()+lensImage.getWidth()+3*ViewerUIF.START; int h = img.getHeight()+lensImage.getHeight()+2*ViewerUIF.START; setContainerSize(new Dimension(w, h)); w += 2*ViewerUIF.START; h += 2*ViewerUIF.START; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3be8a75dd7408b3e6496ef60f81dc46c2c18b171/Preview.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/util/Preview.java
if (!override.equalsIgnoreCase("true"))
if (!"true".equalsIgnoreCase(override))
private void performValueSetting(XMLElement regEntry, VariableSubstitutor substitutor) throws Exception { SpecHelper specHelper = getSpecHelper(); String name = specHelper.getRequiredAttribute(regEntry, REG_BASENAME); name = substitutor.substitute(name, null); String keypat...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryInstallerListener.java/buggy/src/lib/com/izforge/izpack/event/RegistryInstallerListener.java
root = substitutor.substitute(root, null); Integer tmp = (Integer) RegistryHandler.ROOT_KEY_MAP.get(root);
String root1 = substitutor.substitute(root, null); Integer tmp = (Integer) RegistryHandler.ROOT_KEY_MAP.get(root1);
private int resolveRoot(XMLElement regEntry, String root, VariableSubstitutor substitutor) throws Exception { root = substitutor.substitute(root, null); Integer tmp = (Integer) RegistryHandler.ROOT_KEY_MAP.get(root); if (tmp != null) return (tmp.intValue()); getSpecHelper()...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryInstallerListener.java/buggy/src/lib/com/izforge/izpack/event/RegistryInstallerListener.java
getSpecHelper().parseError(regEntry, "Unknown value (" + root + ")for registry root.");
getSpecHelper().parseError(regEntry, "Unknown value (" + root1 + ")for registry root.");
private int resolveRoot(XMLElement regEntry, String root, VariableSubstitutor substitutor) throws Exception { root = substitutor.substitute(root, null); Integer tmp = (Integer) RegistryHandler.ROOT_KEY_MAP.get(root); if (tmp != null) return (tmp.intValue()); getSpecHelper()...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/RegistryInstallerListener.java/buggy/src/lib/com/izforge/izpack/event/RegistryInstallerListener.java
while(!_cancelled) { try { Thread.sleep(_delay); } catch(Exception e) { } try { evict(); } catch(Exception e) { } try { ensureMinIdle(); } catch(Exception e) { }
try { evict(); } catch(Exception e) { } try { ensureMinIdle(); } catch(Exception e) {
public void run() { while(!_cancelled) { try { Thread.sleep(_delay); } catch(Exception e) { // ignored } try { evict(); } catch(Exception e) { // igno...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/040416e9a1f3dc7bd49171b76ed6a766164e6fed/GenericObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericObjectPool.java
Method target = clazz.getMethod("uninstall", new Class[] {String[].class});
Method target = clazz.getMethod("uninstall", new Class[] { String[].class });
public static void main(String[] args) { try { Class clazz = Uninstaller.class; Method target = clazz.getMethod("uninstall", new Class[] {String[].class}); new SelfModifier(target).invoke(args); } catch (Exception ioeOrTypo) { System.err.println...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Uninstaller.java/clean/src/lib/com/izforge/izpack/uninstaller/Uninstaller.java
} catch (Exception ioeOrTypo)
} catch (Exception ioeOrTypo)
public static void main(String[] args) { try { Class clazz = Uninstaller.class; Method target = clazz.getMethod("uninstall", new Class[] {String[].class}); new SelfModifier(target).invoke(args); } catch (Exception ioeOrTypo) { System.err.println...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Uninstaller.java/clean/src/lib/com/izforge/izpack/uninstaller/Uninstaller.java
} catch (Exception err)
} catch (Exception err)
public static void uninstall(String[] args) { try { MetalLookAndFeel.setCurrentTheme(new IzPackMetalTheme()); new UninstallerFrame(); } catch (Exception err) { System.err.println("- Error -"); err.printStackTrace(); System.exit(0); } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Uninstaller.java/clean/src/lib/com/izforge/izpack/uninstaller/Uninstaller.java
public SelfModifier(Method method) throws IOException
private SelfModifier() throws IOException
public SelfModifier(Method method) throws IOException { phase = 1; initJavaExec(); initMethod(method); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/SelfModifier.java/buggy/src/lib/com/izforge/izpack/uninstaller/SelfModifier.java
phase = 1; initJavaExec(); initMethod(method);
phase = Integer.parseInt(System.getProperty(PHASE_KEY)); String cName = System.getProperty(CLASS_KEY); String tName = System.getProperty(METHOD_KEY); jarFile = new File(System.getProperty(JAR_KEY)); logFile = new File(System.getProperty(BASE_KEY) + ".log"); sandbox = new File(System.getProperty(BASE_KEY) + ".d"); t...
public SelfModifier(Method method) throws IOException { phase = 1; initJavaExec(); initMethod(method); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/SelfModifier.java/buggy/src/lib/com/izforge/izpack/uninstaller/SelfModifier.java
for (int i = 0; i < this.pathComboBox.getItemCount(); ++i) { String path = (String)this.pathComboBox.getItemAt (i);
for (int i = 0; i < this.pathComboBox.getItemCount(); ++i) { String path = (String) this.pathComboBox.getItemAt(i);
public boolean autodetect () { //Checks whether a placeholder item is in the combobox //and resolve the pathes automatically: ///usr/lib/* searches all folders in usr/lib to find /usr/lib/*/lib/tools.jar for (int i = 0; i < this.pathComboBox.getItemCount(); ++i) { String path = (String)this.pathComboBox.getItemAt (...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de1cbb1d267cd3c3d263ea7223133711bab5b186/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
if (path.endsWith("*")) { path = path.substring(0,path.length()-1); File dir = new File(path);
if (path.endsWith("*")) { path = path.substring(0, path.length() - 1); File dir = new File(path);
public boolean autodetect () { //Checks whether a placeholder item is in the combobox //and resolve the pathes automatically: ///usr/lib/* searches all folders in usr/lib to find /usr/lib/*/lib/tools.jar for (int i = 0; i < this.pathComboBox.getItemCount(); ++i) { String path = (String)this.pathComboBox.getItemAt (...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de1cbb1d267cd3c3d263ea7223133711bab5b186/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
if (dir.isDirectory()) { File[] subdirs = dir.listFiles(); for (int x=0;x<subdirs.length;x++) { String search = subdirs[x].getAbsolutePath(); if (this.pathMatches (search)) { items.add(search); } } } } else { items.add(path); } } this.pathComboBox.removeAllItems(); VariableSubstitutor vs = new VariableSubstitutor(id...
if (dir.isDirectory()) { File[] subdirs = dir.listFiles(); for (int x = 0; x < subdirs.length; x++) { String search = subdirs[x].getAbsolutePath(); if (this.pathMatches(search)) { items.add(search); } } } } else { items.add(path); }
public boolean autodetect () { //Checks whether a placeholder item is in the combobox //and resolve the pathes automatically: ///usr/lib/* searches all folders in usr/lib to find /usr/lib/*/lib/tools.jar for (int i = 0; i < this.pathComboBox.getItemCount(); ++i) { String path = (String)this.pathComboBox.getItemAt (...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de1cbb1d267cd3c3d263ea7223133711bab5b186/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
if (this.pathMatches ((String)this.pathComboBox.getSelectedItem())) { return true; } return false; }
public boolean autodetect () { //Checks whether a placeholder item is in the combobox //and resolve the pathes automatically: ///usr/lib/* searches all folders in usr/lib to find /usr/lib/*/lib/tools.jar for (int i = 0; i < this.pathComboBox.getItemCount(); ++i) { String path = (String)this.pathComboBox.getItemAt (...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/de1cbb1d267cd3c3d263ea7223133711bab5b186/UserInputPanel.java/buggy/src/lib/com/izforge/izpack/panels/UserInputPanel.java
public abstract ZipOutputStream addPack(int packNumber, String name,
public abstract ZipOutputStream addPack(int packNumber, String name, String targetOs,
public abstract ZipOutputStream addPack(int packNumber, String name, boolean required, String description) throws Exception;
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Packager.java/buggy/src/lib/com/izforge/izpack/compiler/Packager.java
PackInfo pack = new PackInfo(name, id, description, required);
PackInfo pack = new PackInfo(name, id, description, required, loose);
protected void addPacks(XMLElement data) throws CompilerException { notifyCompilerListener("addPacks", CompilerListener.BEGIN, data); // Initialisation XMLElement root = requireChildNamed(data, "packs"); // at least one pack is required Vector packElements = root.getChildrenNamed("pack"); if (packE...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/670d2dce35e3033459b7343ab34ed921bd2331ed/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
ann.add(Restrictions.in("details.id", annotatorIds ));
ann.add(Restrictions.in("details.owner.id", annotatorIds ));
protected void buildQuery(Session session) throws HibernateException, SQLException { PojoOptions po = new PojoOptions((Map) value(OPTIONS)); Class k = (Class) value(CLASS); if ( ! typeToAnnotationType.containsKey( k )) { throw new IllegalArgumentException( ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d92a88d0d79640fb07d5559aa2c0f5d0f1dd4752/PojosFindAnnotationsQueryDefinition.java/buggy/components/server/src/ome/services/query/PojosFindAnnotationsQueryDefinition.java
if (name.length() == pos + className.length() + 6)
if (pos != -1 && name.length() == pos + className.length() + 6)
private String getFullClassName(URL url, String className) throws Exception { JarInputStream jis = new JarInputStream(url.openStream()); ZipEntry zentry = null; while ((zentry = jis.getNextEntry()) != null) { String name = zentry.getName(); int lastPos = name.las...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/458df5388598b1463abaab7f3fba01a728e5d095/CompilerConfig.java/buggy/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
double k = qDef.curveCoefficient;
double k = getCurveCoefficient();
private void buildLUT() { if (LUT == null) init(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = qDef.curveCoefficient; //double ys = valueMapper.transform(dStart, k); //double ye = valueMapper.transform(dEnd, k); //double a0 = qDef.bitResolut...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Quantization_8_16_bit.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/Quantization_8_16_bit.java
QuantumMap normalize = new PolynomialMap(); int extra = 10; double S1 = dStart; double ysNorm = valueMapper.transform(0, k); double yeNorm = valueMapper.transform(255, k); double aNorm = qDef.bitResolution/(yeNorm-ysNorm); double v = extra; double c0; /* if (dStart >= Q1 && dEnd > Q9) { nom = (Q9-dStart); S1 = dSt...
for(; x < dStart; ++x) LUT[x-min] = (byte) cdStart;
private void buildLUT() { if (LUT == null) init(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = qDef.curveCoefficient; //double ys = valueMapper.transform(dStart, k); //double ye = valueMapper.transform(dEnd, k); //double a0 = qDef.bitResolut...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Quantization_8_16_bit.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/Quantization_8_16_bit.java
v = c0*(normalize.transform(x, 1)-S1)+extra; v = Approximation.nearestInteger( aNorm*(valueMapper.transform(v, k)-ysNorm)); v = Approximation.nearestInteger(a1*v+qDef.cdStart); LUT[x-min] = (byte) v;
if (x > Q1) { if (x <= Q9) v = c0*(normalize.transform(x, 1)-S1)+extra; else v = cdEnd; } else v = cdStart; v = Approximation.nearestInteger( aNorm*(valueMapper.transform(v, k)-ysNorm)); v = Approximation.nearestInteger(a1*v+qDef.cdStart); LUT[x-min] = (byte) v;
private void buildLUT() { if (LUT == null) init(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = qDef.curveCoefficient; //double ys = valueMapper.transform(dStart, k); //double ye = valueMapper.transform(dEnd, k); //double a0 = qDef.bitResolut...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Quantization_8_16_bit.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/Quantization_8_16_bit.java
for(; x <= max; ++x) LUT[x-min] = (byte) qDef.cdEnd;
for(; x <= max; ++x) LUT[x-min] = (byte) cdEnd;
private void buildLUT() { if (LUT == null) init(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = qDef.curveCoefficient; //double ys = valueMapper.transform(dStart, k); //double ye = valueMapper.transform(dEnd, k); //double a0 = qDef.bitResolut...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5b83ecccd54946c2125525e83cea40c4c4dd36/Quantization_8_16_bit.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/Quantization_8_16_bit.java
if (!data.getName().equalsIgnoreCase("langpack"))
if (!"langpack".equalsIgnoreCase(data.getName()))
public void add(InputStream in) throws Exception { // Initialises the parser StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setReader(new StdXMLReader(in)); parser.setValidator(new NonValidator()); // We get the data XMLEl...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/LocaleDatabase.java/clean/src/lib/com/izforge/izpack/LocaleDatabase.java
if (text != null && !text.equals(""))
if (text != null && !"".equals(text))
public void add(InputStream in) throws Exception { // Initialises the parser StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setReader(new StdXMLReader(in)); parser.setValidator(new NonValidator()); // We get the data XMLEl...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/LocaleDatabase.java/clean/src/lib/com/izforge/izpack/LocaleDatabase.java
public SoftLenderReference(Object referent) {
SoftLenderReference(final Object referent) {
public SoftLenderReference(Object referent) { super(referent); }
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/c533b17f67a27066967191311fa5512bef24cbc8/SoftLender.java/clean/src/java/org/apache/commons/pool/composite/SoftLender.java
LinkedList pool = (LinkedList) (_poolMap.get(key));
ObjectQueue pool = (ObjectQueue) (_poolMap.get(key));
public synchronized void addObject(Object key) throws Exception { assertOpen(); if (_factory == null) { throw new IllegalStateException("Cannot add objects without a factory."); } Object obj = _factory.makeObject(key); // if we need to validate this object, do so ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
pool = new LinkedList();
pool = new ObjectQueue();
public synchronized void addObject(Object key) throws Exception { assertOpen(); if (_factory == null) { throw new IllegalStateException("Cannot add objects without a factory."); } Object obj = _factory.makeObject(key); // if we need to validate this object, do so ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
if(_maxIdle >= 0 && (pool.size() >= _maxIdle)) {
if(_maxIdle >= 0 && (pool.queue.size() >= _maxIdle)) {
public synchronized void addObject(Object key) throws Exception { assertOpen(); if (_factory == null) { throw new IllegalStateException("Cannot add objects without a factory."); } Object obj = _factory.makeObject(key); // if we need to validate this object, do so ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
pool.addLast(new ObjectTimestampPair(obj));
pool.queue.addLast(new ObjectTimestampPair(obj));
public synchronized void addObject(Object key) throws Exception { assertOpen(); if (_factory == null) { throw new IllegalStateException("Cannot add objects without a factory."); } Object obj = _factory.makeObject(key); // if we need to validate this object, do so ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
LinkedList pool = (LinkedList)(_poolMap.get(key));
ObjectQueue pool = (ObjectQueue)(_poolMap.get(key));
public synchronized Object borrowObject(Object key) throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
pool = new LinkedList();
pool = new ObjectQueue();
public synchronized Object borrowObject(Object key) throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
pair = (ObjectTimestampPair)(pool.removeFirst());
pair = (ObjectTimestampPair)(pool.queue.removeFirst());
public synchronized Object borrowObject(Object key) throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
int active = getActiveCount(key); if ((_maxActive < 0 || active < _maxActive) &&
if ((_maxActive < 0 || pool.activeCount < _maxActive) &&
public synchronized Object borrowObject(Object key) throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
incrementActiveCount(key);
pool.incrementActiveCount();
public synchronized Object borrowObject(Object key) throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
incrementActiveCount(key);
pool.incrementActiveCount();
public synchronized Object borrowObject(Object key) throws Exception { assertOpen(); long starttime = System.currentTimeMillis(); boolean newlyCreated = false; for(;;) { LinkedList pool = (LinkedList)(_poolMap.get(key)); if(null == pool) { pool = new ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
for(Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext(); ) { Object key = keyiter.next(); final LinkedList list = (LinkedList)(_poolMap.get(key));
for(Iterator entries = _poolMap.entrySet().iterator(); entries.hasNext(); ) { final Map.Entry entry = (Map.Entry)entries.next(); final Object key = entry.getKey(); final LinkedList list = ((ObjectQueue)(entry.getValue())).queue;
public synchronized void clear() { for(Iterator keyiter = _poolMap.keySet().iterator(); keyiter.hasNext(); ) { Object key = keyiter.next(); final LinkedList list = (LinkedList)(_poolMap.get(key)); for(Iterator it = list.iterator(); it.hasNext(); ) { try { ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/dca25ff99b1206e30015dfa1823600ce9b50b958/GenericKeyedObjectPool.java/buggy/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java