rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
} if (!(obj instanceof DSAPrivateKey)) {
if (! (obj instanceof DSAPrivateKey))
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSPrivateKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java
}
public boolean equals(Object obj) { if (obj == null) { return false; } if (!(obj instanceof DSAPrivateKey)) { return false; } DSAPrivateKey that = (DSAPrivateKey) obj; return super.equals(that) && x.equals(that.getX()); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSPrivateKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java
String ls = SystemProperties.getProperty("line.separator");
String ls = (String) AccessController.doPrivileged (new GetPropertyAction("line.separator"));
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSPrivateKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java
.append("x=0x").append(DEBUG ? x.toString(16) : "**...*").append(ls) .append(")").toString();
.append("x=0x").append(Configuration.DEBUG ? x.toString(16) : "**...*").append(ls) .append(")") .toString();
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSPrivateKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java
public String toString() { if (str == null) { String ls = SystemProperties.getProperty("line.separator"); str = new StringBuilder(this.getClass().getName()).append("(") .append(super.toString()).append(",").append(ls) .append("x=0x").append(DEBUG ? x.toString(16) : "**...*").appen...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSPrivateKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java
public static DSSPrivateKey valueOf(byte[] k) { // try RAW codec if (k[0] == Registry.MAGIC_RAW_DSS_PRIVATE_KEY[0]) try { return (DSSPrivateKey) new DSSKeyPairRawCodec().decodePrivateKey(k); } catch (IllegalArgumentException ignored) { } // try PKCS#8 codec return (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/DSSPrivateKey.java/buggy/core/src/classpath/gnu/gnu/java/security/key/dss/DSSPrivateKey.java
if (documentFilter != null)
if (text == null || text.length() == 0) return; if (documentFilter == null) insertStringImpl(offset, text, attributes); else
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
else insertStringImpl(offset, text, attributes);
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.insertString(getBypass(), offset, text, attributes); else insertStringImpl(offset, text, attributes); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (documentFilter != null)
if (documentFilter == null) removeImpl(offset, length); else
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
else removeImpl(offset, length);
public void remove(int offset, int length) throws BadLocationException { if (documentFilter != null) documentFilter.remove(getBypass(), offset, length); else removeImpl(offset, length); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (length <= 0) return;
void removeImpl(int offset, int length) throws BadLocationException { DefaultDocumentEvent event = new DefaultDocumentEvent(offset, length, DocumentEvent.EventType.REMOVE); try { writeLock(); // The order of the operations below is critical! removeUpdate(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (documentFilter != null)
if (length == 0 && (text == null || text.length() == 0)) return; if (documentFilter == null) { remove(offset, length); insertString(offset, text, attributes); } else
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
else replaceImpl(offset, length, text, attributes);
public void replace(int offset, int length, String text, AttributeSet attributes) throws BadLocationException { if (documentFilter != null) documentFilter.replace(getBypass(), offset, length, text, attributes); else replaceImpl(offset, length, text, attributes); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6c6378820ef3d5291895049f82f29d237a8e885a/AbstractDocument.java/clean/core/src/classpath/javax/javax/swing/text/AbstractDocument.java
if (instance == null) instance = new MetalLabelUI(); return instance;
if (metalLabelUI == null) metalLabelUI = new MetalLabelUI(); return metalLabelUI;
public static ComponentUI createUI(JComponent component) { if (instance == null) instance = new MetalLabelUI(); return instance; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/MetalLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalLabelUI.java
throws NotImplementedException
public String getSystemDisplayName(File f) { // FIXME: Implement; return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/UnixFileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/UnixFileSystemView.java
throws NotImplementedException
public Icon getSystemIcon(File f) { // FIXME: Implement; return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/UnixFileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/UnixFileSystemView.java
throws NotImplementedException
public String getSystemTypeDescription(File f) { // FIXME: Implement. return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/UnixFileSystemView.java/buggy/core/src/classpath/javax/javax/swing/filechooser/UnixFileSystemView.java
public Signature(String signature, AbstractVmClassLoader loader)
public Signature(String signature, VmClassLoader loader)
public Signature(String signature, AbstractVmClassLoader loader) throws ClassNotFoundException { this.signature = signature; this.parts = split(signature.toCharArray(), loader); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/Signature.java/clean/core/src/core/org/jnode/vm/classmgr/Signature.java
private VmType[] split(char[] signature, AbstractVmClassLoader loader)
private VmType[] split(char[] signature, VmClassLoader loader)
private VmType[] split(char[] signature, AbstractVmClassLoader loader) throws ClassNotFoundException { ArrayList list = new ArrayList(); int ofs = 0; final int len = signature.length; if (signature[ofs] == '(') { ofs++; } while (ofs < len) { int start = ofs; char ch = signature[ofs++]; VmType vmClass; ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/Signature.java/clean/core/src/core/org/jnode/vm/classmgr/Signature.java
if (highlights.size() == 0) return; Shape bounds = textComponent.getBounds(); for (int index = 0; index < highlights.size(); ++index) { HighlightEntry entry = (HighlightEntry) highlights.get(index); entry.painter.paint(g, entry.p0, entry.p1, bounds, textComponent); }
public void paint(Graphics g) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DefaultHighlighter.java/clean/core/src/classpath/javax/javax/swing/text/DefaultHighlighter.java
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
public void paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/affa0d2d6f465179c4324a2357a64c93083d6c43/Highlighter.java/buggy/core/src/classpath/javax/javax/swing/text/Highlighter.java
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicPopupMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPopupMenuUI.java
{
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicPopupMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPopupMenuUI.java
boolean topLevelMenu = (popupMenu.getInvoker() instanceof JMenu) && ((JMenu) popupMenu.getInvoker()).isTopLevelMenu(); if ((topLevelMenu || !(popupMenu.getInvoker() instanceof MenuElement)) && rootContainer instanceof RootPaneContainer) { RootPaneContainer rpContainer = (RootPaneContainer) rootContainer; Contai...
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicPopupMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPopupMenuUI.java
}
public void popupMenuWillBecomeInvisible(PopupMenuEvent event) { // remove listener that listens to component events fired // by the top - level window that this popup belongs to. Component invoker = popupMenu.getInvoker(); Component rootContainer = SwingUtilities.getRoot(invoker); if (...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicPopupMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPopupMenuUI.java
if (mouseInputListener == null && rootContainer instanceof RootPaneContainer) { RootPaneContainer rpContainer = (RootPaneContainer) rootContainer; Container glassPane = (Container) rpContainer.getGlassPane(); glassPane.setVisible(true); mouseInputListener = new MouseInputHandler(rpContainer); glassPane.addMouseListe...
public void popupMenuWillBecomeVisible(PopupMenuEvent event) { // Adds topWindowListener to top-level window to listener to // ComponentEvents fired by it. We need to cancel this popup menu // if topWindow to which this popup belongs was resized or moved. Component invoker = popupMenu.getInv...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicPopupMenuUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicPopupMenuUI.java
public static String getClassAnnotation (Class cl)
public static String getClassAnnotation(Class cl)
public static String getClassAnnotation (Class cl) { RMIClassLoaderSpi spi = getProviderInstance(); if (spi == null) spi = getDefaultProviderInstance(); return spi.getClassAnnotation(cl); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/RMIClassLoader.java/buggy/core/src/classpath/java/java/rmi/server/RMIClassLoader.java
public static Class loadClass (String name)
public static Class loadClass(String name)
public static Class loadClass (String name) throws MalformedURLException, ClassNotFoundException { return loadClass ("", name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/RMIClassLoader.java/buggy/core/src/classpath/java/java/rmi/server/RMIClassLoader.java
return loadClass ("", name);
return loadClass("", name);
public static Class loadClass (String name) throws MalformedURLException, ClassNotFoundException { return loadClass ("", name); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/RMIClassLoader.java/buggy/core/src/classpath/java/java/rmi/server/RMIClassLoader.java
if (observer == null) throw new NullPointerException("can't add null observer");
public synchronized void addObserver(Observer observer) { observers.add(observer); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/Observable.java/buggy/core/src/classpath/java/java/util/Observable.java
public void update(Observable observable, Object arg);
void update(Observable observable, Object arg);
public void update(Observable observable, Object arg);
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9c8ba1312039f97852fd91c0a945f0d4cc2ee9e6/Observer.java/buggy/core/src/classpath/java/java/util/Observer.java
public short[] getData(int bank)
public short[] getData()
public short[] getData(int bank) { return bankData[bank]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DataBufferShort.java/clean/core/src/classpath/java/java/awt/image/DataBufferShort.java
return bankData[bank];
return data;
public short[] getData(int bank) { return bankData[bank]; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/DataBufferShort.java/clean/core/src/classpath/java/java/awt/image/DataBufferShort.java
for (int i = 0; i < count; i++)
if (count > 0)
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); for (int i = 0; i < count; i++) { View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
} }
protected void forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent ev, Shape shape, ViewFactory vf) { int count = getViewCount(); for (int i = 0; i < count; i++) { View child = getView(i); forwardUpdateToView(child, ev, shape, vf); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
return getPreferredSpan(axis); return Integer.MAX_VALUE;
max = getPreferredSpan(axis); return max;
public float getMaximumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
return getPreferredSpan(axis); return Integer.MAX_VALUE;
min = getPreferredSpan(axis); return min;
public float getMinimumSpan(int axis) { if (getResizeWeight(axis) <= 0) return getPreferredSpan(axis); return Integer.MAX_VALUE; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/View.java/buggy/core/src/classpath/javax/javax/swing/text/View.java
attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize));
attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, Integer.valueOf(keysize));
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGeneratorSpi.java/clean/core/src/classpath/gnu/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.java
{
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGeneratorSpi.java/clean/core/src/classpath/gnu/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.java
}
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGeneratorSpi.java/clean/core/src/classpath/gnu/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.java
new Integer(Registry.ASN1_ENCODING_ID));
Integer.valueOf(Registry.ASN1_ENCODING_ID));
public void initialize(int keysize, SecureRandom random) { HashMap attributes = new HashMap(); attributes.put(RSAKeyPairGenerator.MODULUS_LENGTH, new Integer(keysize)); if (random != null) { attributes.put(RSAKeyPairGenerator.SOURCE_OF_RANDOMNESS, random); } attributes.put(RSAKeyPairGene...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b3a024d60c5143b61f97b230d24e7ea41f17a0fd/RSAKeyPairGeneratorSpi.java/clean/core/src/classpath/gnu/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.java
final String state = " (" + current.getReadableErrorState() + ")";
final String state = "";
public static Throwable systemException(int nr, int address) throws PragmaUninterruptible, PragmaLoadStatics, PragmaPrivilegedAction { //Unsafe.getCurrentProcessor().getArchitecture().getStackReader().debugStackTrace(); //Unsafe.die(); //Unsafe.debug(nr); Unsafe.debug(address); final String hexAddress = NumberU...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d6c9b85c44043424f2c8311b51b8e84abfcadc28/SoftByteCodes.java/clean/core/src/core/org/jnode/vm/SoftByteCodes.java
public final static VmArrayClass getPrimitiveArrayClass(int type) {
public final static VmType getPrimitiveArrayClass(char type) {
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 4:
case 'Z':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 8:
case 'B':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 5:
case 'C':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 9:
case 'S':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 10:
case 'I':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 6:
case 'F':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 11:
case 'J':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
case 7:
case 'D':
public final static VmArrayClass getPrimitiveArrayClass(int type) { switch (type) { case 4: return BooleanArrayClass; case 8: return ByteArrayClass; case 5: return CharArrayClass; case 9: return ShortArrayClass; case 10: return IntArrayClass; case 6: return FloatArrayClass; case 11: return LongAr...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50abd4639810e6237e6fdcf2d287d93f4f1e7387/VmType.java/buggy/core/src/core/org/jnode/vm/classmgr/VmType.java
dialog = new ModalDialog((Frame) parent, title);
dialog = new JDialog((Frame) parent, title, true);
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/JColorChooser.java/clean/core/src/classpath/javax/javax/swing/JColorChooser.java
dialog = new ModalDialog((Dialog) parent, title); dialog.setModal(modal);
dialog = new JDialog((Dialog) parent, title, true);
public static JDialog createDialog(Component component, String title, boolean modal, JColorChooser chooserPane, ActionListener okListener, ActionListener cancelListener) { Component parent = findParent(component); if (parent == null) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2fe995482ddd93e201e63c55d9ab773c376aa6f3/JColorChooser.java/clean/core/src/classpath/javax/javax/swing/JColorChooser.java
if (offs <= 0)
if (offs < 0)
protected synchronized void computeTime() { int millisInDay = 0; int era = fields[ERA]; int year = fields[YEAR]; int month = fields[MONTH]; int day = fields[DAY_OF_MONTH]; int minute = fields[MINUTE]; int second = fields[SECOND]; int millis = fields[MILLISECOND]; int[] month_days = { 31, 28, ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/GregorianCalendar.java/buggy/core/src/classpath/java/java/util/GregorianCalendar.java
protected FileDescriptor getFileDescriptor() { return fd; }
protected FileDescriptor getFileDescriptor() { return fd; }
protected FileDescriptor getFileDescriptor() { return fd; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/426834aeca94b6762986d5f7b6cd54b12b69b2b8/SocketImpl.java/buggy/core/src/classpath/java/java/net/SocketImpl.java
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
if (getIndexName != null) {
if(getIndexName != null) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
getIndex = beanClass.getMethod(getIndexName, getArgs);
getIndex = beanClass.getMethod(getIndexName,getArgs);
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
} catch (NoSuchMethodException E) {
} catch(NoSuchMethodException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
if (getIndex != null) { if (setIndexName != null) {
if(getIndex != null) { if(setIndexName != null) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
setIndex = beanClass.getMethod(setIndexName, setArgs); if (!setIndex.getReturnType().equals(java.lang.Void.TYPE)) {
setIndex = beanClass.getMethod(setIndexName,setArgs); if(!setIndex.getReturnType().equals(java.lang.Void.TYPE)) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
} catch (NoSuchMethodException E) {
} catch(NoSuchMethodException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
} else if (setIndexName != null) {
} else if(setIndexName != null) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
for (int i = 0; i < m.length; i++) {
for(int i=0;i<m.length;i++) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
if (current.getName().equals(setIndexName) && current.getParameterTypes().length == 2 && (current.getParameterTypes()[0]).equals(java.lang.Integer.TYPE) && current.getReturnType().equals(java.lang.Void.TYPE)) { if (setIndex != null) {
if(current.getName().equals(setIndexName) && current.getParameterTypes().length == 2 && (current.getParameterTypes()[0]).equals(java.lang.Integer.TYPE) && current.getReturnType().equals(java.lang.Void.TYPE)) { if(setIndex != null) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
if (setIndex == null) {
if(setIndex == null) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
Class arrayType = Array.newInstance(indexedPropertyType, 0).getClass();
Class arrayType = Array.newInstance(indexedPropertyType,0).getClass();
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
setMethod = beanClass.getMethod(setMethodName, setArgs); if (!setMethod.getReturnType().equals(java.lang.Void.TYPE)) {
setMethod = beanClass.getMethod(setMethodName,setArgs); if(!setMethod.getReturnType().equals(java.lang.Void.TYPE)) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
} catch (NoSuchMethodException E) {
} catch(NoSuchMethodException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
getMethod = beanClass.getMethod(getMethodName, getArgs); if (!getMethod.getReturnType().equals(arrayType)) {
getMethod = beanClass.getMethod(getMethodName,getArgs); if(!getMethod.getReturnType().equals(arrayType)) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
} catch (NoSuchMethodException E) {
} catch(NoSuchMethodException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
} catch (SecurityException E) {
} catch(SecurityException E) {
private void findMethods(Class beanClass, String getMethodName, String setMethodName, String getIndexName, String setIndexName) throws IntrospectionException { try { if (getIndexName != null) { try { Class[] getArgs = new Class[1]; getArgs[0] = java.lang.Integer.TYPE; getIndex = beanClass.getMethod(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/IndexedPropertyDescriptor.java/clean/core/src/classpath/java/java/beans/IndexedPropertyDescriptor.java
if (table != null && (flags | F_LOOPHEAD) != 0)
if (table != null && (flags & F_LOOPHEAD) != 0)
private void patchNext (Recognizer theNext, Hashtable table) { // backpointers must not be repatched or followed if ((flags & F_LOOPNEXT) != 0) return; // XXX this table "shouldn't" be needed, right? // but some choice nodes looped if it isn't there. if (table != null && table.get (this) != null) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ebc5ff4942beb7f0eda4abe3e16ca60092e4db1d/ValidationConsumer.java/clean/core/src/classpath/gnu/gnu/xml/pipeline/ValidationConsumer.java
return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER))) != 0;
return isUnicodeIdentifierStart((int)ch);
public static boolean isUnicodeIdentifierStart(char ch) { return ((1 << getType(ch)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << LETTER_NUMBER)...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java
int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) | (1 << NON_SPACING_MARK) | (1 << COMBINING_SPACING_MARK) | (1 << DECIMAL_DIGIT_NUMBER) | (1 << LETTER_NUMBER) | (1 << CONNECTOR_PUNCTUATION) ...
return isUnicodeIdentifierPart((int)ch);
public static boolean isUnicodeIdentifierPart(char ch) { int category = getType(ch); return ((1 << category) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << TITLECASE_LETTER) | (1 << MODIFIER_LETTER) | (1 << OTHER_LETTER) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java
while (! element.isLeaf())
while (!element.isLeaf())
public Element getCharacterElement(int position) { Element element = getDefaultRootElement(); while (! element.isLeaf()) { int index = element.getElementIndex(position); element = element.getElement(index); } return element; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8a49a412752cdcc88a774cac2de160a23c6f550/DefaultStyledDocument.java/clean/core/src/classpath/javax/javax/swing/text/DefaultStyledDocument.java
JScrollPane p = (JScrollPane ) c;
JScrollPane p = (JScrollPane) c;
public Dimension getMinimumSize(JComponent c) { JScrollPane p = (JScrollPane ) c; ScrollPaneLayout sl = (ScrollPaneLayout) p.getLayout(); return sl.minimumLayoutSize(c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java
this.uninstallDefaults((JScrollPane)c);
this.uninstallDefaults((JScrollPane) c);
public void uninstallUI(final JComponent c) { super.uninstallUI(c); this.uninstallDefaults((JScrollPane)c); uninstallListeners((JScrollPane) c); installKeyboardActions((JScrollPane) c); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4d9dd8abd1355057dc6966b7ca9f4459b3a3e945/BasicScrollPaneUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollPaneUI.java
public int getWheelRotation() { return wheelRotation; }
public int getWheelRotation() { return wheelRotation; }
public int getWheelRotation() { return wheelRotation; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b423075a6102e6577bf2f242ea1a1cf4f2234d1c/MouseWheelEvent.java/buggy/core/src/classpath/java/java/awt/event/MouseWheelEvent.java
return getPreferredSize();
return toViewCoordinates(getSize());
public Dimension getExtentSize() { if (extentSize == null) return getPreferredSize(); else return extentSize; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JViewport.java/buggy/core/src/classpath/javax/javax/swing/JViewport.java
byte[] bitmapBlock = getBlock(gdesc.getBlockBitmap());
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
synchronized( bitmapBlock ) { result=BlockBitmap.findFreeBlocks( bitmapBlock, metadataLength );
synchronized(blockCache) { byte[] bitmapBlock = getBlock(gdesc.getBlockBitmap());
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmapBlock, true); modifyFreeBlocksCount( group, -1-result.getPreallocCount() );
synchronized( bitmapBlock ) { result=BlockBitmap.findFreeBlocks( bitmapBlock, metadataLength ); if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmapBlock, true); modifyFreeBlocksCount( group, -1-result.getPreallocCount() ); }
public BlockReservation findFreeBlocks(int group, long threshold) throws IOException{ GroupDescriptor gdesc = groupDescriptors[group]; //see if it's worth to check the block group at all if( gdesc.getFreeBlocksCount() < threshold) return new BlockReservation(false, -1, -1, gdesc.getFreeBlocksCount()); /* Retur...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap);
synchronized(blockCache) { byte[] bitmap= getBlock( gdesc.getInodeBitmap() );
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
if(result.isSuccessful()){ writeBlock( gdesc.getInodeBitmap(), bitmap, true); modifyFreeInodesCount(blockGroup, -1);
synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap);
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
result.setGroup(blockGroup); return result;
if(result.isSuccessful()){ writeBlock( gdesc.getInodeBitmap(), bitmap, true); modifyFreeInodesCount(blockGroup, -1); result.setGroup(blockGroup); return result; }
protected INodeReservation findFreeINode(int blockGroup) throws IOException{ GroupDescriptor gdesc = groupDescriptors[blockGroup]; if(gdesc.getFreeInodesCount()> 0) { byte[] bitmap = getBlock( gdesc.getInodeBitmap() ); synchronized(bitmap) { INodeReservation result = INodeBitmap.findFreeINode(bitmap); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
byte[] bitmap = getBlock(gdesc.getBlockBitmap()); synchronized( bitmap ) { BlockBitmap.freeBit( bitmap, index ); writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, 1);
synchronized(blockCache) { byte[] bitmap = getBlock(gdesc.getBlockBitmap()); synchronized( bitmap ) { BlockBitmap.freeBit( bitmap, index ); writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, 1); }
public void freeBlock(long blockNr) throws FileSystemException, IOException{ if(blockNr<0 || blockNr>=superblock.getBlocksCount()) throw new FileSystemException("Attempt to free nonexisting block ("+blockNr+")"); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); GroupDescriptor gde...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
log.debug("iNodeCache size: "+inodeCache.size());
public INode getINode(int iNodeNr) throws IOException, FileSystemException{ if((iNodeNr<1)||(iNodeNr>superblock.getINodesCount())) throw new FileSystemException("INode number ("+iNodeNr+") out of range (0-"+superblock.getINodesCount()+")"); Integer key=new Integer(iNodeNr); //log.debug("iNodeCache size: "+in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
byte[] bitmap = getBlock(groupDescriptors[group].getBlockBitmap()); synchronized( bitmap ) { BlockReservation result = BlockBitmap.testAndSetBlock( bitmap, index ); if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, -1-result.getPreallocCoun...
synchronized(blockCache) { byte[] bitmap= getBlock(groupDescriptors[group].getBlockBitmap()); synchronized( bitmap) { BlockReservation result = BlockBitmap.testAndSetBlock( bitmap, index ); if(result.isSuccessful()) { writeBlock(groupDescriptors[group].getBlockBitmap(), bitmap, false); modifyFreeBlocksCount(group, -...
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
return result;
public BlockReservation testAndSetBlock(long blockNr) throws IOException{ if(blockNr<superblock.getFirstDataBlock() || blockNr>=superblock.getBlocksCount()) return new BlockReservation(false, -1, -1); int group = translateToGroup(blockNr); int index = translateToIndex(blockNr); /* Return false if the block is no...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/Ext2FileSystem.java/clean/fs/src/fs/org/jnode/fs/ext2/Ext2FileSystem.java
super(initialCapacity, loadFactor, true);
super(Math.min(MAX_SIZE, initialCapacity), loadFactor, true);
public BlockCache(int initialCapacity, float loadFactor) { super(initialCapacity, loadFactor, true); cacheListeners = new Vector(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/BlockCache.java/buggy/fs/src/fs/org/jnode/fs/ext2/cache/BlockCache.java
locked = 0;
public INode(Ext2FileSystem fs, INodeDescriptor desc) { this.fs = fs; this.desc = desc; this.data = new byte[INODE_LENGTH]; log.setLevel(Level.INFO); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java
protected long getINodeNr() {
protected int getINodeNr() {
protected long getINodeNr() { return desc.getINodeNr(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bca7c2e0848f3672930b39223f626f4996c1b295/INode.java/buggy/fs/src/fs/org/jnode/fs/ext2/INode.java
VmNormalClass superClass, AbstractVmClassLoader loader, boolean primitive, int typeSize) { super(name, superClass, loader, primitive, typeSize);
String superClassName, VmClassLoader loader, int accessFlags) { super(name, superClassName, loader, accessFlags);
public VmClassType( String name, VmNormalClass superClass, AbstractVmClassLoader loader, boolean primitive, int typeSize) { super(name, superClass, loader, primitive, typeSize); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c2a519140737c4d249f6c5d568256db2030112e9/VmClassType.java/clean/core/src/core/org/jnode/vm/classmgr/VmClassType.java
int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m);
final int h = calendar.get(Calendar.HOUR_OF_DAY); final int m = calendar.get(Calendar.MINUTE); SwingUtilities.invokeLater(new Runnable() { public void run() { setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); } });
private void startTimer() { timer.schedule(task = new TimerTask() { Calendar calendar = new GregorianCalendar(); public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7488efe592a495c892e94ae2730efefc584a78c0/TaskBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/TaskBar.java
int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m);
final int h = calendar.get(Calendar.HOUR_OF_DAY); final int m = calendar.get(Calendar.MINUTE); SwingUtilities.invokeLater(new Runnable() { public void run() { setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); } });
public void run() { calendar.setTimeInMillis(System.currentTimeMillis()); int h = calendar.get(Calendar.HOUR_OF_DAY); int m = calendar.get(Calendar.MINUTE); setText((h < 10 ? "0" : "") + h + ":" + (m < 10 ? "0" : "") + m); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7488efe592a495c892e94ae2730efefc584a78c0/TaskBar.java/clean/gui/src/desktop/org/jnode/desktop/classic/TaskBar.java
public Timer(boolean daemon)
public Timer()
public Timer(boolean daemon) { this(daemon, Thread.NORM_PRIORITY); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/Timer.java/buggy/core/src/classpath/java/java/util/Timer.java
this(daemon, Thread.NORM_PRIORITY);
this(false);
public Timer(boolean daemon) { this(daemon, Thread.NORM_PRIORITY); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/Timer.java/buggy/core/src/classpath/java/java/util/Timer.java
public RESyntax(RESyntax other) { bits = (BitSet) other.bits.clone();
public RESyntax() { bits = new BitSet(BIT_TOTAL);
public RESyntax(RESyntax other) { bits = (BitSet) other.bits.clone(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/392a873c7dc1067cc2cc414042ead4e3b43e4483/RESyntax.java/buggy/core/src/classpath/gnu/gnu/regexp/RESyntax.java