Buggy code:
public class Framework implements FrameworkMBean { private StartLevel startLevel ; private PackageAdmin packageAdmin ; private BundleContext context ; public Framework ( BundleContext context , StartLevel startLevel , PackageAdmin packageAdmin ) { } public int getFrameworkStartLevel ( ) throws IOException { } public int getInitialBundleStartLevel ( ) throws IOException { } public long installBundle ( String location ) throws IOException { } public long installBundle ( String location , String url ) throws IOException { } public InputStream createStream ( String url ) throws IOException { } public CompositeData installBundles ( String [ ] locations ) throws IOException { } public CompositeData installBundles ( String [ ] locations , String [ ] urls ) throws IOException { if ( ( locations == null ) || ( urls == null ) ) { return new BatchInstallResult ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>install<seq2seq4repair_space>bundles<seq2seq4repair_space>arguments<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>null" ) . toCompositeData ( ) ; } <START_BUG> if ( ( ( locations != null ) && ( locations != null ) ) && ( ( locations . length ) != ( urls . length ) ) ) { <END_BUG> return new BatchInstallResult ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>install<seq2seq4repair_space>bundles<seq2seq4repair_space>size<seq2seq4repair_space>of<seq2seq4repair_space>arguments<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>same" ) . toCompositeData ( ) ; } long [ ] ids = new long [ locations . length ] ; for ( int i = 0 ; i < ( locations . length ) ; i ++ ) { try { long id = installBundle ( locations [ i ] , urls [ i ] ) ; ids [ i ] = id ; } catch ( Throwable t ) { long [ ] completed = new long [ i ] ; System . arraycopy ( ids , 0 , completed , 0 , i ) ; String [ ] remaining = new String [ ( ( locations . length ) - i ) - 1 ] ; System . arraycopy ( locations , ( i + 1 ) , remaining , 0 , remaining . length ) ; return new BatchInstallResult ( completed , t . toString ( ) , remaining , locations [ i ] ) . toCompositeData ( ) ; } } return new BatchInstallResult ( ids ) . toCompositeData ( ) ; } public void refreshPackages ( long bundleIdentifier ) throws IOException { } public CompositeData refreshPackages ( long [ ] bundleIdentifiers ) throws IOException { } public boolean resolveBundle ( long bundleIdentifier ) throws IOException { } public boolean resolveBundles ( long [ ] bundleIdentifiers ) throws IOException { } public void restartFramework ( ) throws IOException { } public void setBundleStartLevel ( long bundleIdentifier , int newlevel ) throws IOException { } public CompositeData setBundleStartLevels ( long [ ] bundleIdentifiers , int [ ] newlevels ) throws IOException { } public void setFrameworkStartLevel ( int newlevel ) throws IOException { } public void setInitialBundleStartLevel ( int newlevel ) throws IOException { } public void shutdownFramework ( ) throws IOException { } public void startBundle ( long bundleIdentifier ) throws IOException { } public CompositeData startBundles ( long [ ] bundleIdentifiers ) throws IOException { } public void stopBundle ( long bundleIdentifier ) throws IOException { } public CompositeData stopBundles ( long [ ] bundleIdentifiers ) throws IOException { } public void uninstallBundle ( long bundleIdentifier ) throws IOException { } public CompositeData uninstallBundles ( long [ ] bundleIdentifiers ) throws IOException { } public void updateBundle ( long bundleIdentifier ) throws IOException { } public void updateBundle ( long bundleIdentifier , String url ) throws IOException { } public CompositeData updateBundles ( long [ ] bundleIdentifiers ) throws IOException { } public CompositeData updateBundles ( long [ ] bundleIdentifiers , String [ ] urls ) throws IOException { } public void updateFramework ( ) throws IOException { } private CompositeData createFailedBatchActionResult ( long [ ] bundleIdentifiers , int i , Throwable t ) { } }

Fix:
if ( ( locations != null ) && ( ( locations . length ) != ( urls . length ) ) ) {