rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
catch (Exception ex) { ok = false; } if (!ok) throw new MARSHAL("The " + value.getClass().getName() + " must implement either StreamableValue" + " or CustomValue." ); } if (USE_CHUNKING) { output.write_long(out.buffer.size()); try { out.buffer.writeTo(output); } catch (IOException ex) { MARSHAL m = new MARSHAL(); m....
private static void write_instance(OutputStream output, Serializable value, String id, Object helper ) { // This implementation always writes a single repository id. // It never writes multiple repository ids and currently does not use /...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/Vio.java/buggy/core/src/classpath/gnu/gnu/CORBA/CDR/Vio.java
value [ i ] = input.read_wstring();
value [ i ] = input.read_string();
public static String[] read(InputStream input) { String[] value = new String[ input.read_long() ]; for (int i = 0; i < value.length; i++) value [ i ] = input.read_wstring(); return value; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72c2f223affb33a2850592b25490f4663c651bee/StringSeqHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/StringSeqHelper.java
for (int i = 0; i < attrs.getLength (); i++) {
for (int i = 0; i < attrs.getLength (); i++) {
protected void setXMLAttributes (AttributeList attrs) { // set object attributes from an AttributeList if (attrs != null) { // whip thru the list, setting each value for (int i = 0; i < attrs.getLength (); i++) { ((XMLAttribute) this.attribHash.get(attrs.getName(i))).setAttribValue(att...
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/e27c61ff5e8e27770f1ef3355f6f998a1e0bc49e/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
if (msg == null) { return ; }
protected void writeOut ( OutputStream outputstream, String msg ) { try { outputstream.write(msg.getBytes()); } catch (IOException e) { Log.error("Error: couldnt open OutputStream for writing"); } }
4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/e27c61ff5e8e27770f1ef3355f6f998a1e0bc49e/BaseObject.java/clean/src/gov/nasa/gsfc/adc/xdf/BaseObject.java
bad.minor = Minor.Any;
public static InvalidTypeForEncoding extract(Any any) { try { EmptyExceptionHolder h = (EmptyExceptionHolder) any.extract_Streamable(); return (InvalidTypeForEncoding) h.value; } catch (ClassCastException cex) { BAD_OPERATION bad = new BAD_OPERATION("Invali...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/InvalidTypeForEncodingHelper.java/buggy/core/src/classpath/org/org/omg/IOP/CodecPackage/InvalidTypeForEncodingHelper.java
public InternalFrameUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/InternalFrameUI.java/clean/core/src/classpath/javax/javax/swing/plaf/InternalFrameUI.java
public void exportAsDrag (JComponent c, InputEvent e, int action) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/TransferHandler.java/clean/core/src/classpath/javax/javax/swing/TransferHandler.java
protected void exportDone (JComponent c, Transferable data, int action) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/TransferHandler.java/clean/core/src/classpath/javax/javax/swing/TransferHandler.java
public void exportToClipboard(JComponent c, Clipboard clip, int action) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/TransferHandler.java/clean/core/src/classpath/javax/javax/swing/TransferHandler.java
SimpleAttributeSet s = new SimpleAttributeSet(); s.tab = (Hashtable) tab.clone(); return s;
SimpleAttributeSet attr = null; try { attr = (SimpleAttributeSet) super.clone(); attr.tab = (Hashtable) tab.clone(); } catch (CloneNotSupportedException ex) { assert false; } return attr;
public Object clone() { SimpleAttributeSet s = new SimpleAttributeSet(); s.tab = (Hashtable) tab.clone(); return s; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/SimpleAttributeSet.java/buggy/core/src/classpath/javax/javax/swing/text/SimpleAttributeSet.java
if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY))
if (e.getPropertyName().equals("model"))
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java
else if (e.getPropertyName().equals(JScrollBar.ORIENTATION_CHANGED_PROPERTY))
else if (e.getPropertyName().equals("orientation"))
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY)) { ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener); scrollbar.getModel().addChangeListener(modelListener); getThumbBounds(); } else if (e.g...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/BasicScrollBarUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicScrollBarUI.java
MyFileChooser pcFileChooser = new MyFileChooser(workingDir);
TN5250jFileChooser pcFileChooser = new TN5250jFileChooser(workingDir);
private void getPCFile() { String workingDir = System.getProperty("user.dir"); MyFileChooser pcFileChooser = new MyFileChooser(workingDir); // set the file filters for the file chooser filter = getFilterByDescription(); pcFileChooser.addChoosableFileFilter(filter); int ret = pcFileChoos...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/23b9082401e6c07b6befa90f25fb355bdb4ae9b5/XTFRFile.java/clean/tn5250j/src/org/tn5250j/tools/XTFRFile.java
protected Option(String longName, String description)
protected Option(char shortName, String description)
protected Option(String longName, String description) { this.longName = longName; this.description = description; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd3c4af88fcde25afb91781dd0bd56ebcfa8a15b/Option.java/buggy/core/src/classpath/tools/gnu/classpath/tools/getopt/Option.java
this.longName = longName;
if (shortName == 0) throw new IllegalArgumentException("short name must not be \\0"); this.shortName = shortName;
protected Option(String longName, String description) { this.longName = longName; this.description = description; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd3c4af88fcde25afb91781dd0bd56ebcfa8a15b/Option.java/buggy/core/src/classpath/tools/gnu/classpath/tools/getopt/Option.java
final Address start = helper.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSize = Unsafe.getCurrentProcessor().getArchitecture().getReferenceSize(); final VmAbstractHeap heap = VmDefaultHeap.setupHeap(helper, start, defaultHeapClass, slotSize); he...
final Address start = helper.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSize = Unsafe.getCurrentProcessor().getArchitecture() .getReferenceSize(); final VmAbstractHeap heap = VmDefaultHeap.setupHeap(helper, start, defaultHeapClass, slotSize); h...
private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
if (addToHeapList) { firstHeap.append(heap); } return heap; }
if (addToHeapList) { heapList.append(heap); } return heap; }
private VmAbstractHeap allocHeap(int size, boolean addToHeapList) { //Unsafe.debug("allocHeap"); final Address start = helper.allocateBlock(size); //final Address start = MemoryBlockManager.allocateBlock(size); if (start == null) { return null; } final Address end = Address.add(start, size); final int slotSiz...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size);
vmClass.initialize();
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0;
final int alignedSize = ObjectLayout.objectAlign(size);
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
if (gcActive) { Unsafe.debug("Using GC Heap sz"); Unsafe.debug(alignedSize); result = gcHeap.alloc(vmClass, alignedSize); if (result == null) { helper.die("Out of GC heap memory."); } } else { final Monitor m = heapMonitor; if (m != null) { m.enter(); } try { while (result == null) { if (heap == null) { int newHeap...
VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; final Monitor m = heapMonitor; if (m != null) { m.enter(); } try { if (gcActive) { Unsafe.debug("Using GC Heap type"); Unsafe.debug(vmClass.getName()); result = gcHeap.alloc(vmClass, alignedSize); if (result == null) { helper.die("Out of GC he...
protected Object allocObject(VmClassType vmClass, int size) { // Make sure the class is initialized vmClass.initialize(); final int alignedSize = ObjectLayout.objectAlign(size); //final Monitor mon = heapMonitor; VmAbstractHeap heap = currentHeap; Object result = null; int oomCount = 0; if (gcActive) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
out.println("WriteBarrier: " + writeBarrier); }
out.println("WriteBarrier: " + writeBarrier); }
public void dumpStatistics(PrintStream out) { out.println("WriteBarrier: " + writeBarrier); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
gcThread.trigger(false); }
gcThread.trigger(false); }
public final void gc() { gcThread.trigger(false); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
return this.bootHeap; }
return this.bootHeap; }
final VmBootHeap getBootHeap() { return this.bootHeap; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } size += MemoryBlockManager.getFreeMemory(); return size; }
long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstNormalHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } size += MemoryBlockManager.getFreeMemory(); return size; }
public long getFreeMemory() { long size = bootHeap.getFreeSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getFreeSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
long size = bootHeap.getSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getSize(); h = h.getNext(); } size += MemoryBlockManager.getFreeMemory(); return size; }
long size = bootHeap.getSize(); VmAbstractHeap h = firstNormalHeap; while (h != null) { size += h.getSize(); h = h.getNext(); } size += MemoryBlockManager.getFreeMemory(); return size; }
public long getTotalMemory() { long size = bootHeap.getSize(); VmAbstractHeap h = firstHeap; while (h != null) { size += h.getSize(); h = h.getNext(); } //size += (Unsafe.addressToLong(heapEnd) - Unsafe.addressToLong(nextHeapPtr)); size += MemoryBlockManager.getFreeMemory(); return size; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
return writeBarrier; }
return writeBarrier; }
public final VmWriteBarrier getWriteBarrier() { return writeBarrier; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final int slotSize = arch.getReferenceSize();
final VmArchitecture arch = Unsafe.getCurrentProcessor() .getArchitecture(); final int slotSize = arch.getReferenceSize();
protected void initialize() { // Set the basic fields final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final int slotSize = arch.getReferenceSize(); // Initialize the boot heap. bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize); // Initialize the first n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize);
bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize);
protected void initialize() { // Set the basic fields final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final int slotSize = arch.getReferenceSize(); // Initialize the boot heap. bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize); // Initialize the first n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
Address ptr = helper.allocateBlock(DEFAULT_HEAP_SIZE); firstHeap.initialize(ptr, Address.add(ptr, DEFAULT_HEAP_SIZE), slotSize); gcHeap = allocHeap(DEFAULT_HEAP_SIZE, false); }
Address ptr = helper.allocateBlock(DEFAULT_HEAP_SIZE); firstNormalHeap.initialize(ptr, Address.add(ptr, DEFAULT_HEAP_SIZE), slotSize); gcHeap = allocHeap(DEFAULT_HEAP_SIZE, false); gcHeap.append(firstNormalHeap); heapList = gcHeap; }
protected void initialize() { // Set the basic fields final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final int slotSize = arch.getReferenceSize(); // Initialize the boot heap. bootHeap.initialize(helper.getBootHeapStart(), helper.getBootHeapEnd(), slotSize); // Initialize the first n...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
return lowOnMemory; }
return lowOnMemory; }
public boolean isLowOnMemory() { return lowOnMemory; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
long addrL = helper.addressToLong(ptr); if ((addrL & (ObjectLayout.OBJECT_ALIGN - 1)) != 0) { return false; } if (bootHeap.isObject(ptr)) { return true; } VmAbstractHeap heap = firstHeap; while (heap != null) { if (heap.isObject(ptr)) { return true; } heap = heap.getNext(); } return false; }
long addrL = helper.addressToLong(ptr); if ((addrL & (ObjectLayout.OBJECT_ALIGN - 1)) != 0) { return false; } if (bootHeap.isObject(ptr)) { return true; } VmAbstractHeap heap = heapList; while (heap != null) { if (heap.isObject(ptr)) { return true; } heap = heap.getNext(); } return false; }
public final boolean isObject(Address ptr) { long addrL = helper.addressToLong(ptr); if ((addrL & (ObjectLayout.OBJECT_ALIGN - 1)) != 0) { // The object is not at an object aligned boundary return false; } if (bootHeap.isObject(ptr)) { return true; } VmAbstractHeap heap = firstHeap; while (heap != null) {...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
this.currentHeap = this.firstHeap; triggerSize = (int)Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE);
this.currentHeap = this.firstNormalHeap; triggerSize = (int) Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE);
final void resetCurrentHeap() { this.currentHeap = this.firstHeap; // Recalculate the trigger size triggerSize = (int)Math.min(Integer.MAX_VALUE, getFreeMemory() * GC_TRIGGER_PERCENTAGE); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(this); gcThread.start(); finalizerThread.start(); tr...
heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor() .getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(this); gcThread.start(); finalizerThread.start(); t...
public void start() { // Create a Heap monitor heapMonitor = new Monitor(); final VmArchitecture arch = Unsafe.getCurrentProcessor().getArchitecture(); final GCManager gcManager = new GCManager(this, arch, statics); this.gcThread = new GCThread(gcManager, heapMonitor); this.finalizerThread = new FinalizerThread(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/17c5c434010c98f6a1acae0cf9ca6782f92f1dfc/DefaultHeapManager.java/clean/core/src/core/org/jnode/vm/memmgr/def/DefaultHeapManager.java
if (dialog == null || f == null) { return; }
public synchronized void updateProgress(int prog) { progress = prog; repaint(); // wait for it to be painted to ensure progress is updated // continuously try { wait(); } catch(InterruptedException ie) { System.out.println(" updateProgress " + ie.getMessage() ); ...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/be319bbdd8024ad2c91541f2e005828a779a5afe/TN5250jSplashScreen.java/buggy/tn5250j/src/org/tn5250j/gui/TN5250jSplashScreen.java
public FatLfnDirEntry(AbstractDirectory dir, byte[] src, int offset) { super(dir, src, offset);
public FatLfnDirEntry(AbstractDirectory dir) { super(dir);
public FatLfnDirEntry(AbstractDirectory dir, byte[] src, int offset) { super(dir, src, offset); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/FatLfnDirEntry.java/buggy/fs/src/fs/org/jnode/fs/fat/FatLfnDirEntry.java
if (!cnt.isConstant()) { L1AHelper.requestRegister(ec, X86Register.ECX); cnt.loadTo(ec, X86Register.ECX);
if (!cnt.isConstant() && !cnt.uses(ECX)) { addr.spillIfUsing(ec, ECX); L1AHelper.requestRegister(ec, ECX); cnt.loadTo(ec, ECX);
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/MagicHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/MagicHelper.java
vstack.push(L1AHelper.requestWordRegister(ec, JvmType.INT, resultr));
vstack.push(result);
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic, X86BytecodeVisitor bcv) { //final int type = getClass(method); final MagicMethod mcode = MagicMethod.get(method); final VirtualStack vstack = ec.getVStack(); final X86Assembler os = ec.getStream(); final I...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/MagicHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/MagicHelper.java
fout = new DataOutputStream(new FileOutputStream(fileName));
try { fout = new DataOutputStream(new FileOutputStream(fileName)); } catch (Exception e) { System.out.println("create file " + e.getMessage()); }
public void createFileInstance(String fileName) throws FileNotFoundException { fout = new DataOutputStream(new FileOutputStream(fileName)); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/ExcelOutputFilter.java/buggy/tn5250j/src/org/tn5250j/tools/filters/ExcelOutputFilter.java
row = 0; sb = new StringBuffer(); formats = null;
public void createFileInstance(String fileName) throws FileNotFoundException { fout = new DataOutputStream(new FileOutputStream(fileName)); }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/ExcelOutputFilter.java/buggy/tn5250j/src/org/tn5250j/tools/filters/ExcelOutputFilter.java
System.out.println("header " + ioe.getMessage());
public void writeHeader(String fileName, String host, ArrayList ffd, char decChar) { final byte[] bof = {0x09,0x08,0x06,0x00,0x00,0x00,0x10,0x00,0x00,0x00}; final byte[] dimension = {0x00,0x02,0x0A,0x00,0x00,0x00,0x64,0x00, 0x00,0x00,0x64,0x00...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d4104819203aa6b5361aa997d2cd29a076f417a7/ExcelOutputFilter.java/buggy/tn5250j/src/org/tn5250j/tools/filters/ExcelOutputFilter.java
else { if (isRootPaneCheckingEnabled()) throw new Error("Do not use add() on JWindow directly. Use " + "getContentPane().add() instead"); getContentPane().add(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JWindow.java/clean/core/src/classpath/javax/javax/swing/JWindow.java
if (comp == rootPane) super.remove(rootPane); else
public void remove(Component comp) { getContentPane().remove(comp); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JWindow.java/clean/core/src/classpath/javax/javax/swing/JWindow.java
if (initStageDone) { if (isRootPaneCheckingEnabled()) throw new Error("Cannot set layout. Use getContentPane().setLayout()" + " instead."); getContentPane().setLayout(manager); } else
public void setLayout(LayoutManager manager) { super.setLayout(manager); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JWindow.java/clean/core/src/classpath/javax/javax/swing/JWindow.java
initStageDone = true;
protected void windowInit() { super.setLayout(new BorderLayout(1, 1)); getRootPane(); // will do set/create }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/159638d634951eb718c5e3a0917ef516d5a44797/JWindow.java/clean/core/src/classpath/javax/javax/swing/JWindow.java
if ((fcw1 & 0x88) == 0x88) {
if (fcw1 == 0x88) {
public void setFCWs(int fcw1, int fcw2) { this.fcw1 = fcw1; this.fcw2 = fcw2; if ((fcw1 & 0x88) == 0x88) { cursorProg = fcw2; } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/a61dbdd53c996e8a76dc4165e5010c2379355b80/ScreenField.java/clean/tn5250j/src/org/tn5250j/ScreenField.java
super();
public UIResource() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultTableCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
if (isSelected)
if (isSelected && hasFocus) { setBackground(table.getBackground()); setForeground(table.getSelectionForeground()); } else if (table.isRowSelected(row))
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value != null) { i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DefaultTableCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/table/DefaultTableCellRenderer.java
if (filechooser.isTraversable(f))
if (filechooser.isTraversable(f) && filechooser.getFileSelectionMode() == JFileChooser.FILES_ONLY)
public void actionPerformed(ActionEvent e) { Object obj = filelist.getSelectedValue(); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject(obj .toString()); if (filechooser.isTraversable(f)) filechooser....
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/BasicFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java
public void stateChanged(ChangeEvent event) { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JMenuItem.java/buggy/core/src/classpath/javax/javax/swing/JMenuItem.java
FontMetrics fm = tip.getToolkit().getFontMetrics(tip.getFont()); SwingUtilities.layoutCompoundLabel(tip, fm, tip.getTipText(), null,
fm = g.getFontMetrics(tip.getFont()); SwingUtilities.layoutCompoundLabel(tip, fm, text, null,
public Dimension getPreferredSize(JComponent c) { JToolTip tip = (JToolTip) c; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); Insets insets = tip.getInsets(); FontMetrics fm = tip.getToolkit().getFontMetrics(tip.getFont()); SwingUtilities.layoutCo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
FontMetrics fm = tip.getToolkit().getFontMetrics(tip.getFont()); SwingUtilities.layoutCompoundLabel(tip, fm, tip.getTipText(), null,
FontMetrics fm = t.getFontMetrics(tip.getFont()); int ascent = fm.getAscent(); SwingUtilities.layoutCompoundLabel(tip, fm, text, null,
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
g.drawString(text, vr.x, vr.y + fm.getAscent());
g.drawString(text, vr.x, vr.y + ascent); if (accText != null) { g.setColor(accFore); int textWidth = fm.stringWidth(text + " "); fm = t.getFontMetrics(accFont); int width = fm.stringWidth(accText); g.drawString(accText, textWidth, vr.y + ascent); }
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
g.setColor(saved);
g.setColor(saved);
public void paint(Graphics g, JComponent c) { JToolTip tip = (JToolTip) c; String text = tip.getTipText(); if (text == null) return; Rectangle vr = new Rectangle(); vr = SwingUtilities.calculateInnerArea(tip, vr); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetric...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/5edad632205aa44aca51004923ae52d754cced11/BasicToolTipUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicToolTipUI.java
L1AHelper.releaseRegister(eContext, helper.AAX); L1AHelper.releaseRegister(eContext, tmpr);
if (os.isCode32()) { helper.writeGetStaticsEntry(curInstrLabel, tmpr, resolvedType); } else { helper.writeGetStaticsEntry64(curInstrLabel, (GPR64)tmpr, resolvedType); }
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType<?> resolvedType = classRef.getResolvedVmClass(); final Label curInstrLabel = getCurInstrLabel(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50c8249c3816fbef29b29de9fcf1a7b500ec8e24/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType<?> resolvedType = classRef.getResolvedVmClass(); final Label curInstrLabel = getCurInstrLabel(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50c8249c3816fbef29b29de9fcf1a7b500ec8e24/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
os.writePUSH(tmpr); L1AHelper.releaseRegister(eContext, helper.AAX); L1AHelper.releaseRegister(eContext, tmpr);
public final void visit_checkcast(VmConstClass classRef) { // Resolve classRef classRef.resolve(loader); final VmType<?> resolvedType = classRef.getResolvedVmClass(); final Label curInstrLabel = getCurInstrLabel(); if (resolvedType.isInterface() || resolvedType.isArray()) { // ClassRef is an interface or ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50c8249c3816fbef29b29de9fcf1a7b500ec8e24/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
public Container getFocusCycleRootAncestor()
public final Container getFocusCycleRootAncestor()
public Container getFocusCycleRootAncestor() { // as defined. return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JInternalFrame.java/buggy/core/src/classpath/javax/javax/swing/JInternalFrame.java
public String getWarningString()
public final String getWarningString()
public String getWarningString() { // as defined. return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JInternalFrame.java/buggy/core/src/classpath/javax/javax/swing/JInternalFrame.java
public boolean isFocusCycleRoot()
public final boolean isFocusCycleRoot()
public boolean isFocusCycleRoot() { return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JInternalFrame.java/buggy/core/src/classpath/javax/javax/swing/JInternalFrame.java
super();
public ThreadDeath() { super(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/ThreadDeath.java/buggy/core/src/classpath/java/java/lang/ThreadDeath.java
public ARPHeader(SocketBuffer skbuf) throws SocketException { hwtype = skbuf.get16(0); ptype = skbuf.get16(2); op = skbuf.get16(6); if ((hwtype == 1) && (ptype == EthernetConstants.ETH_P_IP)) { srcHWAddress = new EthernetAddress(skbuf, 8); srcPAddress = new IPv4Address(skbuf, 14); targetHWAddress = new EthernetAddres...
public ARPHeader( HardwareAddress srcHWAddress, ProtocolAddress srcPAddress, HardwareAddress targetHWAddress, ProtocolAddress targetPAddress, int op, int hwtype, int ptype) { this.srcHWAddress = srcHWAddress; this.srcPAddress = srcPAddress; this.targetHWAddress = targetHWAddress; this.targetPAddress = targetPAddress; ...
public ARPHeader(SocketBuffer skbuf) throws SocketException { hwtype = skbuf.get16(0); ptype = skbuf.get16(2); //int hwsize = skbuf.get(4); //int psize = skbuf.get(5); op = skbuf.get16(6); if ((hwtype == 1) && (ptype == EthernetConstants.ETH_P_IP)) { srcHWAddress = new EthernetAddress(skbuf, 8); srcPAddress...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/ARPHeader.java/buggy/net/src/net/org/jnode/net/arp/ARPHeader.java
public InvalidLayerException(String message) { super(message);
public InvalidLayerException() { super();
public InvalidLayerException(String message) { super(message); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/51e4aed2205f326c2698e2154ea7f83ae5dfc2b6/InvalidLayerException.java/buggy/net/src/net/org/jnode/net/InvalidLayerException.java
System.out.println(" key is available " + !exists);
private boolean isAvailable(KeyEvent ke) { boolean exists = true; if (isLinux) { exists = mapper.isKeyStrokeDefined(ke,isAltGr); } else { exists = mapper.isKeyStrokeDefined(ke); } System.out.println(" key is available " + !exists); if (exists) { Object[] ar...
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/f5a102e1408312e9be53c32eb9be93e05d2a0618/KeyConfigure.java/clean/tn5250j/src/org/tn5250j/keyboard/configure/KeyConfigure.java
DataFlavor() {
public DataFlavor() {
DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
DataFlavor(){ mimeType = null; representationClass = null; humanPresentableName = null;}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
{
{
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return(super.clone());
return super.clone();
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return(null);
return null; }
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
public Object clone () throws CloneNotSupportedException{ try { return(super.clone()); } catch(Exception e) { return(null); }}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
equals(DataFlavor flavor) {
public boolean equals(DataFlavor flavor) {
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return(false);
return false;
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false);
if (! this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return false;
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
if (!this.representationClass.equals(flavor.representationClass)) return(false);
if (! this.representationClass.equals(flavor.representationClass)) return false;
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return(true); }
return true; }
equals(DataFlavor flavor){ if (flavor == null) return(false); if (!this.mimeType.toLowerCase().equals(flavor.mimeType.toLowerCase())) return(false); if (!this.representationClass.equals(flavor.representationClass)) return(false); return(true);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getDefaultRepresentationClass() { return(java.io.InputStream.class); }
public final Class getDefaultRepresentationClass() { return java.io.InputStream.class; }
getDefaultRepresentationClass(){ return(java.io.InputStream.class);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getDefaultRepresentationClassAsString() { return(getDefaultRepresentationClass().getName()); }
public final String getDefaultRepresentationClassAsString() { return getDefaultRepresentationClass().getName(); }
getDefaultRepresentationClassAsString(){ return(getDefaultRepresentationClass().getName());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getHumanPresentableName() {
public String getHumanPresentableName() {
getHumanPresentableName(){ return(humanPresentableName);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
getHumanPresentableName(){ return(humanPresentableName);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getMimeType() {
public String getMimeType() {
getMimeType(){ return(mimeType);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
getMimeType(){ return(mimeType);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx)); }
private static String getParameter(String paramName, String mimeString) { int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx)); }
getParameter(String paramName, String mimeString){ int idx = mimeString.indexOf(paramName + "="); if (idx == -1) return(null); String value = mimeString.substring(idx + paramName.length() + 1); idx = value.indexOf(" "); if (idx == -1) return(value); else return(value.substring(0, idx));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getPrimaryType() {
public String getPrimaryType() {
getPrimaryType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(mimeType); return(mimeType.substring(0, idx));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
getPrimaryType(){ int idx = mimeType.indexOf("/"); if (idx == -1) return(mimeType); return(mimeType.substring(0, idx));}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
{
{
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return((Reader)transferable.getTransferData(this));
return (Reader)transferable.getTransferData(this);
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return(new StringReader((String)transferable.getTransferData(this)));
return new StringReader((String)transferable.getTransferData(this));
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return(new InputStreamReader(in, encoding));
return new InputStreamReader(in, encoding);
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
public Reader getReaderForText(Transferable transferable) throws UnsupportedFlavorException, IOException{ if (!transferable.isDataFlavorSupported(this)) throw new UnsupportedFlavorException(this); if (Reader.class.isAssignableFrom(representationClass)) return((Reader)transferable.getTransferData(th...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getRepresentationClass() {
public Class getRepresentationClass() {
getRepresentationClass(){ return(representationClass);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
getRepresentationClass(){ return(representationClass);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader) { String classname = getParameter("class", mimeString); if (classname != null)
private static Class getRepresentationClassFromMime(String mimeString, ClassLoader classLoader)
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
try
String classname = getParameter("class", mimeString); if (classname != null)
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
return tryToLoadClass(classname, classLoader);
try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException("classname: " + e.getMessage()); }
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
catch(Exception e) { throw new IllegalArgumentException("classname: " + e.getMessage()); }
else return java.io.InputStream.class;
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
else { return java.io.InputStream.class; } }
getRepresentationClassFromMime(String mimeString, ClassLoader classLoader){ String classname = getParameter("class", mimeString); if (classname != null) { try { return tryToLoadClass(classname, classLoader); } catch(Exception e) { throw new IllegalArgumentException(...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getSubType() {
public String getSubType() {
getSubType(){ int start = mimeType.indexOf("/"); if (start == -1) return ""; int end = mimeType.indexOf(";", start + 1); if (end == -1) return mimeType.substring(start + 1); else return mimeType.substring(start + 1, end);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
}
}
getSubType(){ int start = mimeType.indexOf("/"); if (start == -1) return ""; int end = mimeType.indexOf(";", start + 1); if (end == -1) return mimeType.substring(start + 1); else return mimeType.substring(start + 1, end);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
getTextPlainUnicodeFlavor() { return(plainTextFlavor); }
public static final DataFlavor getTextPlainUnicodeFlavor() { return plainTextFlavor; }
getTextPlainUnicodeFlavor(){ return(plainTextFlavor);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java
hashCode() { return(mimeType.toLowerCase().hashCode()^representationClass.hashCode()); }
public int hashCode() { return mimeType.toLowerCase().hashCode() ^ representationClass.hashCode(); }
hashCode(){ return(mimeType.toLowerCase().hashCode()^representationClass.hashCode());}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c0997df57feec0722568b1f1cc390b475c418086/DataFlavor.java/buggy/core/src/classpath/java/java/awt/datatransfer/DataFlavor.java