bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */...
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = L1AHelper.requestRegister(eContext, JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(cl...
12,929
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */...
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE, false); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */...
12,930
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
12,931
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
12,932
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = L1AHelper.requestRegister(eContext, JvmType.INT, false)...
12,933
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
12,934
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
public final void visit_putstatic(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmStaticField sf = (VmStaticField) fieldRef.getResolvedVmField(); // Initialize class if needed if (!sf.getDeclaringClass().isInitialized()) { final Register tmp = requestRegister(JvmType.INT, false); writeInitializeC...
12,935
public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); }
public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); }
12,936
public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); }
public final void visit_ret(int index) { // Calc EBP offset final int ebpOfs = stackFrame.getEbpOffset(index); // Claim tmp register final Register tmp = requestRegister(JvmType.INT, false); // Load ret & jmp os.writeMOV(INTSIZE, tmp, FP, ebpOfs); os.writeJMP(tmp); // Release releaseRegister(tmp); }
12,937
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ...
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ...
12,938
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ...
private final void waload(int jvmType) { final IntItem idx = vstack.popInt(); final RefItem ref = vstack.popRef(); final int valSize; final int scale; final int resultType; final boolean isfloat = (jvmType == JvmType.FLOAT); switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; resultType ...
12,939
private final void wastore(int jvmType) { final boolean useBarrier = (context.getWriteBarrier() != null); final int valSize; final int scale; final int valType; int extraLoadIdxMask = 0; switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; valType = JvmType.INT; break; case JvmType.CHAR...
private final void wastore(int jvmType) { final boolean useBarrier = (context.getWriteBarrier() != null); final int valSize; final int scale; final int valType; int extraLoadIdxMask = 0; switch (jvmType) { case JvmType.BYTE: valSize = BYTESIZE; scale = 1; valType = JvmType.INT; break; case JvmType.CHAR...
12,940
private final void wreturn(int jvmType) { final WordItem val = (WordItem) vstack.pop(jvmType); // Return value must be in EAX if (!val.uses(EAX)) { requestRegister(EAX, val); val.loadTo(eContext, EAX); } // Release val.release(eContext); // Do actual return visit_return(); }
private final void wreturn(int jvmType) { final WordItem val = (WordItem) vstack.pop(jvmType); // Return value must be in EAX if (!val.uses(EAX)) { L1AHelper.requestRegister(eContext, EAX, val); val.loadTo(eContext, EAX); } // Release val.release(eContext); // Do actual return visit_return(); }
12,941
FileDialog(Frame parent){ this(parent, "", LOAD);}
FileDialog(Frame parent){ this(parent, "", LOAD);}
12,943
CopyNode(TemplateNode children, TemplateNode next, String uas) { super(children, next); this.uas = uas; }
CopyNode(String uas) { super(children, next); this.uas = uas; }
12,944
CopyNode(TemplateNode children, TemplateNode next, String uas) { super(children, next); this.uas = uas; }
CopyNode(TemplateNode children, TemplateNode next, String uas) { this.uas = uas; }
12,945
TemplateNode clone(Stylesheet stylesheet) { return new CopyNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), uas); }
TemplateNode clone(Stylesheet stylesheet) { return new CopyNode((children == null) ? null : children.clone(stylesheet), (next == null) ? null : next.clone(stylesheet), uas); }
12,946
public abstract float get ();
public FloatBuffer get (float[] dst, int offset, int length) { checkArraySize(dst.length, offset, length); checkForUnderflow(length); for (int i = offset; i < offset + length; i++) { dst [i] = get (); } return this; }
12,947
public abstract FloatBuffer put (float b);
public FloatBuffer put (FloatBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { float[] toPut = new float [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
12,948
public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); jComponent.addInternalFrameListener(new WindowEventDispatcher()); }
public SwingBaseWindowPeer(SwingToolkit toolkit, awtT window, peerT jComponent) { super(toolkit, window, jComponent); this.eventDispatcher = new WindowEventDispatcher(); jComponent.addInternalFrameListener(eventDispatcher); }
12,950
public boolean isNativeLookAndFeel() { return true; }
public boolean isNativeLookAndFeel() { return false; }
12,952
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final AbstractX86Stream os = ec.getStream(); final ItemFactory ifac = ec.getItemF...
public void emitMagic(EmitterContext ec, VmMethod method, boolean isstatic) { //final int type = getClass(method); final int mcode = getMethodCode(method); final VirtualStack vstack = ec.getVStack(); final AbstractX86Stream os = ec.getStream(); final ItemFactory ifac = ec.getItemF...
12,953
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } // addPropertyChangeListener()
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { changeSupport.addPropertyChangeListener(listener); } // addPropertyChangeListener()
12,955
protected Object clone() throws CloneNotSupportedException { // What to do?? return null; } // clone()
protected Object clone() throws CloneNotSupportedException { // What to do?? return null; } // clone()
12,956
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } // removePropertyChangeListener()
public synchronized void removePropertyChangeListener(PropertyChangeListener listener) { changeSupport.removePropertyChangeListener(listener); } // removePropertyChangeListener()
12,957
public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
12,958
public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
public float getLayoutAlignmentX(Container parent) { if (parent != container) throw new AWTError("invalid parent"); checkTotalRequirements(); return xTotal.alignment; }
12,959
public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
12,960
public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); return 0; }
public float getLayoutAlignmentY(Container parent) { if (parent != container) throw new AWTError("invalid parent"); checkTotalRequirements(); return yTotal.alignment; }
12,961
public void invalidateLayout(Container parent) { if (parent != container) throw new AWTError("invalid parent"); }
public void invalidateLayout(Container parent) { if (parent != container) throw new AWTError("invalid parent"); }
12,962
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize...
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize...
12,963
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize...
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize...
12,964
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize...
public void layoutContainer(Container parent) { // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; SizeRequirements[] vSizeReqs = new SizeRequirements[children.length]; getSize...
12,965
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
12,966
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
public Dimension maximumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
12,967
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
12,968
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
public Dimension minimumLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; Si...
12,969
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; ...
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; ...
12,970
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; ...
public Dimension preferredLayoutSize(Container parent) { if (parent != container) throw new AWTError("invalid parent"); // Setup the SizeRequirements for both the X and Y axis. Component[] children = container.getComponents(); SizeRequirements[] hSizeReqs = new SizeRequirements[children.length]; ...
12,971
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.capacity() - dst.position(); if ((! isBlocking()) && ava...
public int read(ByteBuffer dst) throws IOException { if (!isConnected()) throw new NotYetConnectedException(); byte[] data; int offset = 0; InputStream input = socket.getInputStream(); int available = input.available(); int len = dst.remaining(); if ((! isBlocking()) && available == 0) ...
12,972
public abstract int write (ByteBuffer src) throws IOException;
public final long write(ByteBuffer[] dsts) throws IOException { long b = 0; for (int i = 0; i < dsts.length; i++) b += write(dsts[i]); return b; }
12,973
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
private void addNotifyContainerChildren() { synchronized (getTreeLock ()) { for (int i = ncomponents; --i >= 0; ) { component[i].addNotify(); if (component[i].isLightweight ()) { // If we're not lightweight, and we just got a lightweight ...
12,974
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalAr...
public boolean areFocusTraversalKeysSet(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalAr...
12,976
public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentE...
public Set getFocusTraversalKeys(int id) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new IllegalArgumentE...
12,977
public FocusTraversalPolicy getFocusTraversalPolicy() { return null; }
public FocusTraversalPolicy getFocusTraversalPolicy() { if (!isFocusCycleRoot ()) return null; if (focusTraversalPolicy == null) { Container ancestor = getFocusCycleRootAncestor (); if (ancestor != this) return ancestor.getFocusTraversalPolicy (); else { KeyboardFocusManager manager = KeyboardFocusManager.getCu...
12,978
public boolean isFocusTraversalPolicySet() { return false; }
public boolean isFocusTraversalPolicySet() { return focusTraversalPolicy == null; }
12,980
public void setFocusTraversalKeys(int id, Set keystrokes) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new...
public void setFocusTraversalKeys(int id, Set keystrokes) { if (id != KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS && id != KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS && id != KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS) throw new...
12,983
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = SwingUtilities.convertPoint(nativeContaine...
12,987
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; Component parent = nativeContainer; Component candidate = null; Point p = me.getPoint(); while (candidate == null && parent != null) { if (candidate.isShowin...
12,988
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,989
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,990
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,991
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,992
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,993
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,994
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,995
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,996
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
void acquireComponentForMouseEvent(MouseEvent me) { int x = me.getX (); int y = me.getY (); Component candidate = mouseEventTarget; while(candidate != null) { if (candidate.isShowing()) { // Convert our point to the candidate's parent's space. Point cp = Swi...
12,997
boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching an ENTERED event twice. if (mouseEventTarget != null && mouse...
boolean handleEvent(AWTEvent e) { if ((eventMask & e.getID()) == 0) return false; if (e instanceof MouseEvent) { MouseEvent me = (MouseEvent) e; acquireComponentForMouseEvent(me); // Avoid dispatching an ENTERED event twice. if (mouseEventTarget != null && mouse...
12,999
protected ServerSocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); serverSocket = new NIOServerSocket (this); configureBlocking(true); }
protected ServerSocketChannelImpl (SelectorProvider provider) throws IOException { super (provider); serverSocket = new NIOServerSocket(this); channel = serverSocket.getPlainSocketImpl().getVMChannel(); configureBlocking(true); }
13,002
public SocketChannel accept () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!serverSocket.isBound()) throw new NotYetBoundException(); boolean completed = false; try { begin(); serverSocket.getPlainSocketImpl().setInChannelOperation(true); ...
public SocketChannel accept () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!serverSocket.isBound()) throw new NotYetBoundException(); boolean completed = false; try { begin(); serverSocket.getPlainSocketImpl().setInChannelOperation(true); ...
13,003
public SocketChannel accept () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!serverSocket.isBound()) throw new NotYetBoundException(); boolean completed = false; try { begin(); serverSocket.getPlainSocketImpl().setInChannelOperation(true); ...
public SocketChannel accept () throws IOException { if (!isOpen()) throw new ClosedChannelException(); if (!serverSocket.isBound()) throw new NotYetBoundException(); boolean completed = false; try { begin(); serverSocket.getPlainSocketImpl().setInChannelOperation(true); ...
13,004
public void finalizer() { if (connected) { try { close (); } catch (Exception e) { } } }
public void finalizer() { if (channel.getState().isValid()) { try { close (); } catch (Exception e) { } } }
13,005
protected void implCloseSelectableChannel () throws IOException { connected = false; serverSocket.close(); }
protected void implCloseSelectableChannel () throws IOException { connected = false; serverSocket.close(); }
13,006
protected void implConfigureBlocking (boolean blocking) throws IOException { serverSocket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); }
protected void implConfigureBlocking (boolean blocking) throws IOException { serverSocket.setSoTimeout (blocking ? 0 : NIOConstants.DEFAULT_TIMEOUT); }
13,007
public int getExtent();
int getExtent();
13,008
public int getMaximum();
int getMaximum();
13,009
public int getMinimum();
int getMinimum();
13,010
public int getValue();
int getValue();
13,011
public boolean getValueIsAdjusting();
boolean getValueIsAdjusting();
13,012
public void setExtent(int extent);
void setExtent(int extent);
13,013
public void setMaximum(int maximum);
void setMaximum(int maximum);
13,014
public void setMinimum(int minimum);
void setMinimum(int minimum);
13,015
public void setRangeProperties(int value, int extent, int min, int max, boolean adjusting);
void setRangeProperties(int value, int extent, int min, int max, boolean adjusting);
13,016
public void setValue(int value);
void setValue(int value);
13,017
public void setValueIsAdjusting(boolean adjusting);
void setValueIsAdjusting(boolean adjusting);
13,018
public LineBorderUIResource(Color color) { }
public LineBorderUIResource(Color color) { }
13,020
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new AttributeNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), source); if (children != null) { ret.children = chi...
TemplateNode clone(Stylesheet stylesheet) TemplateNode ret = new AttributeNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), source); if (children != null) ret.children = child...
13,021
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new AttributeNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), source); if (children != null) { ret.children = chi...
TemplateNode clone(Stylesheet stylesheet) { TemplateNode ret = new AttributeNode(name.clone(stylesheet), (namespace == null) ? null : namespace.clone(stylesheet), source); if (children != null) { ret.children = chi...
13,022
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the ...
13,023
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
void doApply(Stylesheet stylesheet, QName mode, Node context, int pos, int len, Node parent, Node nextSibling) throws TransformerException { Document doc = (parent instanceof Document) ? (Document) parent : parent.getOwnerDocument(); // Create a document fragment to hold the...
13,024
public String toString() { StringBuffer buf = new StringBuffer(getClass().getName()); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("attribute"); buf.append('['); buf.append("name="); buf.append(name); buf.append(']'); return buf.toString(); }
13,025
protected byte[] replicatePixels(int srcx, int srcy, int srcw, int srch, ColorModel model, byte[] srcPixels, int srcOffset, int srcScansize, double rx, double ry, int destScansize) { byte[] destPixels = new...
private byte[] replicatePixels(int srcx, int srcy, int srcw, int srch, ColorModel model, byte[] srcPixels, int srcOffset, int srcScansize, double rx, double ry, int destScansize) { byte[] destPixels = new b...
13,026
private void getResponseVals() throws IOException { // getHeaderField() will connect for us, but do it here first in // order to pick up IOExceptions. if (!connected) connect(); gotResponseVals = true; // If responseCode not yet explicitly set by subclass if (responseCode == -1) { /...
private void getResponseVals() throws IOException { // getHeaderField() will connect for us, but do it here first in // order to pick up IOExceptions. if (!connected) connect(); gotResponseVals = true; // If responseCode not yet explicitly set by subclass if (responseCode == -1) { /...
13,027
public void selectAll();
void selectAll();
13,030
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); // If the UNIQUE_ID applies, the servant being passed must not be // a...
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); // If the UNIQUE_ID applies, the servant being passed must not be // a...
13,031
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); // If the UNIQUE_ID applies, the servant being passed must not be // a...
public void activate_object_with_id(byte[] an_Object_Id, Servant a_servant, boolean use_forwarding) throws ServantAlreadyActive, ObjectAlreadyActive, WrongPolicy { checkDiscarding(); required(ServantRetentionPolicyValue.RETAIN); // If the UNIQUE_ID applies, the servant being passed must not be // a...
13,032
public abstract void copy(Address src, Address dst, int size);
public abstract void copy(Address src, Address dst, Extent size);
13,033
public Insets getBorderInsets(Component c, Insets s) { s.left = s.right = s.top = s.bottom = 5; return s; }
public Insets getBorderInsets(Component c, Insets s) { s.left = s.right = s.top = s.bottom = 5; return s; }
13,034
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { }
13,035
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); Font f = comboBox.getFont(); Color fore = comboBox.getForeground(); Color back = comboBox.getBackground(); if (f == null || f instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (...
13,037
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (fore == null || fore instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox.for...
13,038
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
protected void installDefaults() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font")); if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox...
13,039
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); }
public static org.omg.IOP.ServiceContext findContext(int ctx_name, org.omg.IOP.ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); ...
13,040
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return new org.omg.IOP.ServiceContext(ctx_name, cx[i].context_data); throw new BAD_PARAM("No context with id " + ctx_name); }
public static org.omg.IOP.ServiceContext findContext(int ctx_name, ServiceContext[] cx) { for (int i = 0; i < cx.length; i++) if (cx[i].context_id == ctx_name) return cx[i]; throw new BAD_PARAM("No context with id " + ctx_name); }
13,041
public Insets getContentInsets(Insets i) { if (i == null) i = new Insets(0, 0, 0, 0); i.left = borderSpacing.left + borderInsets.left + edgeSpacing.left; i.right = borderSpacing.right + borderInsets.right + edgeSpacing.right; i.top = borderSpacing.top + borderInsets.top + edgeSpacing.t...
public Insets getContentInsets(Insets i) { if (i == null) i = new Insets(0, 0, 0, 0); i.left = borderSpacing.left + borderInsets.left + edgeSpacing.left; i.right = borderSpacing.right + borderInsets.right + edgeSpacing.right; i.top = borderSpacing.top + borderInsets.top + edgeSpacing.t...
13,042
public TitledBorder(String title) { this(/* border */ null, title, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, /* titleFont */ null, /* titleColor */ null); }
public TitledBorder(String title) { this(/* border */ null, title, LEADING, TOP, /* titleFont */ null, /* titleColor */ null); }
13,043
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,044
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,045
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
private Measurements getMeasurements(Component c) { Measurements m = new Measurements(); FontMetrics fmet; m.font = getFont(c); fmet = c.getFontMetrics(m.font); m.border = getBorder(); if (m.border != null) m.borderInsets = m.border.getBorderInsets(c); else m.borderInsets = new Insets(...
13,046