bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
AbstractButton(String txt, Icon icon) { text = txt; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChangeListener(ch...
AbstractButton(String txt, Icon icon) { text = txt; default_icon = icon; model = new DefaultButtonModel(); actionListener = createActionListener(); changeListener = createChangeListener(); itemListener = createItemListener(); model.addActionListener(actionListener); model.addChangeListener(ch...
16,421
public void setAction(Action a) { if (action != null) { action.removePropertyChangeListener(actionPropertyChangeListener); removeActionListener(action); if (actionPropertyChangeListener != null) { action.removePropertyChangeListener(actionPropertyChangeListener); ...
public void setAction(Action a) { if (action != null) { action.removePropertyChangeListener(actionPropertyChangeListener); removeActionListener(action); if (actionPropertyChangeListener != null) { action.removePropertyChangeListener(actionPropertyChangeListener); ...
16,422
protected PropertyChangeListener createActionPropertyChangeListener(Action a) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act); } ...
protected PropertyChangeListener createActionPropertyChangeListener(Action a) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { Action act = (Action)(e.getSource()); AbstractButton.this.configurePropertiesFromAction(act); } ...
16,425
public DefaultButtonModel() { stateMask = ENABLED; mnemonic = java.awt.event.KeyEvent.VK_UNDEFINED; listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); }
public DefaultButtonModel() { stateMask = ENABLED; mnemonic = java.awt.event.KeyEvent.VK_UNDEFINED; listenerList = new EventListenerList(); changeEvent = new ChangeEvent(this); }
16,426
void addChangeListener(ChangeListener l);
void addChangeListener(ChangeListener listener);
16,427
void removeChangeListener(ChangeListener l);
void removeChangeListener(ChangeListener listener);
16,428
public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); addAttributes(a); }
public SimpleAttributeSet() { tab = new Hashtable(); addAttributes(a); }
16,429
public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); addAttributes(a); }
public SimpleAttributeSet(AttributeSet a) { tab = new Hashtable(); addAttributes(a); }
16,430
public Enumeration<K> keys() { return new Enumerator<K>(KEYS); }
public Enumeration<K> keys() { return new KeyEnumerator(); }
16,431
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header...
public Dimension getPreferredSize(JComponent c) { TableColumnModel cmod = header.getColumnModel(); TableCellRenderer defaultRend = header.getDefaultRenderer(); int ncols = cmod.getColumnCount(); Dimension ret = new Dimension(0,0); int spacing = 0; if (header.getTable() != null && header...
16,432
public Rectangle getBoundingBox() { return getBounds(); }
public Rectangle getBoundingBox() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle (); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { int x = xpoints[i]; int y = ypoints[i]; if (x < minx) minx = x; else if (x > maxx) m...
16,435
public Rectangle getBounds() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle(); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { int x =...
public Rectangle getBounds() { if (bounds == null) { if (npoints == 0) return bounds = new Rectangle(); int i = npoints - 1; int minx = xpoints[i]; int maxx = minx; int miny = ypoints[i]; int maxy = miny; while (--i >= 0) { int x =...
16,436
public void translate(int dx, int dy) { int i = npoints; while (--i >= 0) { xpoints[i] += dx; xpoints[i] += dy; } if (bounds != null) { bounds.x += dx; bounds.y += dy; } condensed = null; }
public void translate(int dx, int dy) { int i = npoints; while (--i >= 0) { xpoints[i] += dx; ypoints[i] += dy; } if (bounds != null) { bounds.x += dx; bounds.y += dy; } condensed = null; }
16,437
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); // String maybe larger than comboBox. FontMetrics fm =...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); // String maybe larger than comboBox. FontMetrics fm =...
16,438
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); // String maybe larger than comboBox. FontMetrics fm =...
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); // String maybe larger than comboBox. FontMetrics fm =...
16,439
public void setBounds(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
public void setBounds(int x, int y, int width, int height) { this.x = x; this.y = y; this.width = width; this.height = height; }
16,440
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
16,441
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
16,442
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
public MouseEvent(Component source, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int button) { super(source, id, when, modifiers); this.x = x; this.y = y; this.clickCount = clickCount; this.popupTrigger = popupTrigger; t...
16,443
public Component getFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusOwner(); } catch (SecurityException e) { return null; } }
public Component getFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusOwner(); } catch (SecurityException e) { return null; } }
16,444
public Component getFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusOwner(); } catch (SecurityException e) { return null; } }
public Component getFocusOwner() { // XXX Need an easy way to test if this thread is in the context of the // global focus owner, to avoid creating the exception in the first place. try { return getGlobalFocusOwner(); } catch (SecurityException e) { return null; } }
16,445
public ActionEvent(Object source, int id, String command, int modifiers) { this(source, id, command, EventQueue.getMostRecentEventTime(), modifiers); }
public ActionEvent(Object source, int id, String command) { this(source, id, command, EventQueue.getMostRecentEventTime(), modifiers); }
16,446
public ActionEvent(Object source, int id, String command, int modifiers) { this(source, id, command, EventQueue.getMostRecentEventTime(), modifiers); }
public ActionEvent(Object source, int id, String command, int modifiers) { this(source, id, command, EventQueue.getMostRecentEventTime(), 0); }
16,447
public UserException() { }
protected UserException() { }
16,449
public DataBufferFloat(int size) { super(TYPE_FLOAT, size); data = new float[size]; }
public DataBufferFloat(int size) { super(TYPE_FLOAT, size, 1, 0); bankData = new float[1][]; data = new float[size]; }
16,450
public UnsupportedLookAndFeelException(String a) { super(a); }
public UnsupportedLookAndFeelException(String s) { super(a); }
16,452
public UnsupportedLookAndFeelException(String a) { super(a); }
public UnsupportedLookAndFeelException(String a) { super(s); }
16,453
public Point2D inverseTransform(Point2D src, Point2D dst) throws NoninvertibleTransformException { double det = getDeterminant(); if (det == 0) throw new NoninvertibleTransformException("couldn't invert transform"); if (dst == null) dst = new Point2D.Double(); double x = src.getX(); double y = src.getY()...
public Point2D inverseTransform(Point2D src, Point2D dst) throws NoninvertibleTransformException { double det = getDeterminant(); if (det == 0) throw new NoninvertibleTransformException("couldn't invert transform"); if (dst == null) dst = new Point2D.Double(); double x = src.getX(); double y = src.getY()...
16,455
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
public GeneralPath() { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
16,456
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
public GeneralPath(Shape s) { types = new byte[INIT_SIZE]; xpoints = new float[INIT_SIZE]; ypoints = new float[INIT_SIZE]; PathIterator pi = s.getPathIterator(null); setWindingRule(pi.getWindingRule()); append(pi, false); }
16,457
public final Class getCategory() { return JobImpressionsCompleted.class; }
public Class getCategory() { return JobImpressionsCompleted.class; }
16,458
public final String getName() { return "job-impressions"; }
public String getName() { return "job-impressions"; }
16,459
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); }
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); }
16,460
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); }
public UnicastServerRef(ObjID id, int port, RMIServerSocketFactory ssf) throws RemoteException { super(id); manager = UnicastConnectionManager.getInstance(port, ssf); }
16,461
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { // System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == - 1) ...
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { // System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == - 1) ...
16,462
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { // System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == - 1) ...
public Object incomingMessageCall(UnicastConnection conn, int method, long hash) throws Exception { // System.out.println("method = " + method + ", hash = " + hash); // If method is -1 then this is JDK 1.2 RMI - so use the hash // to locate the method if (method == - 1) ...
16,463
public UnicastRef(ObjID objid) { this.objid = objid; }
public UnicastRef() { this.objid = objid; }
16,464
public UnicastRef(ObjID objid) { this.objid = objid; }
public UnicastRef(ObjID objid) { }
16,465
public NoSuchMethodException(String s) { super(s); }
public NoSuchMethodException() { super(s); }
16,466
public NoSuchMethodException(String s) { super(s); }
public NoSuchMethodException(String s) { }
16,467
public abstract void setEnabled(boolean enabled);
void setEnabled(boolean enabled);
16,469
void actionPerformed(ActionEvent e);
void actionPerformed(ActionEvent event);
16,470
public abstract void setLabel(String text);
void setLabel(String text);
16,471
public ConstantRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, Constant rhs) { super(address, block, lhsIndex); this.rhs = rhs; setDeadCode(true); // this will change if this is a phi operand }
public ConstantRefAssignQuad(int address, IRBasicBlock block, int lhsIndex, Constant rhs) { super(address, block, lhsIndex); this.rhs = rhs; // this will change if this is a phi operand }
16,472
public void doPass2(BootableHashMap liveVariables) { setDeadCode(true); }
public void doPass2(BootableHashMap liveVariables) { setDeadCode(true); }
16,473
public abstract void doPass2(BootableHashMap liveVariables);
public abstract void doPass2();
16,475
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args [ i ].end...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args [ i ].end...
16,476
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args [ i ].end...
public static void main(String[] args) { int port = PORT; String iorf = null; try { // Create and initialize the ORB final Functional_ORB orb = new Functional_ORB(); if (args.length > 1) for (int i = 0; i < args.length - 1; i++) { if (args [ i ].end...
16,477
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
public void getBytes(int srcBegin, int srcEnd, byte dst[], int dstBegin) { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count));...
16,478
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
public byte[] getBytes(String enc) throws UnsupportedEncodingException { try { CharsetEncoder cse = Charset.forName(enc).newEncoder(); cse.onMalformedInput(CodingErrorAction.REPLACE); cse.onUnmappableCharacter(CodingErrorAction.REPLACE); ByteBuffer bbuf = cse.encode(CharBuffer.wrap(value, offset, count)); i...
16,479
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
16,480
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
16,481
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
16,482
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
16,483
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
16,484
public UnsupportedOperationException(String s) { super(s); }
public UnsupportedOperationException() { super(s); }
16,485
public UnsupportedOperationException(String s) { super(s); }
public UnsupportedOperationException(String s) { }
16,486
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { //int size = w * h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w * h * numBands]; for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) { getPixel(xx, yy, pixel, data);...
public int[] getPixels(int x, int y, int w, int h, int[] iArray, DataBuffer data) { int size = w*h; //int size = w * h; int outOffset = 0; int[] pixel = null; if (iArray == null) iArray = new int[w * h * numBands]; for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) { getPixel(xx, y...
16,487
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w * h; int outOffset = 0; if (iArray == null) { iArray = new int[size]; } for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); ...
public int[] getSamples(int x, int y, int w, int h, int b, int[] iArray, DataBuffer data) { int size = w * h; int outOffset = 0; if (iArray == null) { iArray = new int[size]; } for (int yy = y; yy < (y + h); yy++) { for (int xx = x; xx < (x + w); xx++) { iArray[outOffset++] = getSample(xx, yy, b, data); ...
16,488
void fireStateChanged() { ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; ++i) listeners[i].stateChanged(changeEvent); }
protected void fireStateChanged() { ChangeListener[] listeners = getChangeListeners(); for (int i = 0; i < listeners.length; ++i) listeners[i].stateChanged(changeEvent); }
16,489
public abstract TypeCode member_type(int index) throws BadKind, Bounds;
public abstract TypeCode member_type(int index) throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
16,491
public abstract String member_name(int index) throws BadKind, Bounds;
public abstract String member_name(int index) throws BadKind, org.omg.CORBA.TypeCodePackage.Bounds;
16,492
public String getPropertyPrefix() { return super.getPropertyPrefix(); }
public String getPropertyPrefix() { return "CheckBox."; }
16,493
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + ".icon"); }
public Icon getDefaultIcon() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); return defaults.getIcon(getPropertyPrefix() + "icon"); }
16,494
protected String getPropertyPrefix() { return "RadioButton"; }
protected String getPropertyPrefix() { return "RadioButton."; }
16,495
private Decoder (Charset cs) { super (cs, 1.0f, 1.0f); }
Decoder (Charset cs) { super (cs, 1.0f, 1.0f); }
16,496
private Encoder (Charset cs) { super (cs, 1.0f, 1.0f); }
Encoder (Charset cs) { super (cs, 1.0f, 1.0f); }
16,497
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte) { this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT); }
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte) { this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT); }
16,498
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte) { this (cs, averageCharsPerByte, maxCharsPerByte, DEFAULT_REPLACEMENT); }
protected CharsetDecoder (Charset cs, float averageCharsPerByte, float maxCharsPerByte) { if (averageCharsPerByte <= 0.0f) throw new IllegalArgumentException ("Non-positive averageCharsPerByte"); if (maxCharsPerByte <= 0.0f) throw new IllegalArgumentException ("Non-positive maxCharsPerB...
16,499
public abstract CharBuffer put (char b);
public CharBuffer put (CharBuffer src) { if (src == this) throw new IllegalArgumentException (); checkForOverflow(src.remaining()); if (src.remaining () > 0) { char[] toPut = new char [src.remaining ()]; src.get (toPut); put (toPut); } return this; }
16,500
public abstract char get ();
public CharBuffer get (char[] 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; }
16,501
protected void resolve(AbstractVmClassLoader clc) throws ClassNotFoundException { if (resolvedClass == null) { final VmType type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.resolvedClass = (VmInterfaceClass)type; } else { throw new ClassNotFoundException("Class " + clas...
protected void resolve(VmClassLoader clc) throws ClassNotFoundException { if (resolvedClass == null) { final VmType type = clc.loadClass(className, true); if (type instanceof VmInterfaceClass) { this.resolvedClass = (VmInterfaceClass)type; } else { throw new ClassNotFoundException("Class " + className + ...
16,503
static void paintGradient(Graphics g, int x, int y, int w, int h, int dir, String uiProp) { List params = (List) UIManager.get(uiProp); double g1 = ((Double) params.get(0)).doubleValue(); double g2 = ((Double) params.get(1)).doubleValue(); Color c1 = (Color) params.get(2); C...
static void paintGradient(Graphics g, int x, int y, int w, int h, int dir, String uiProp) { List params = (List) UIManager.get(uiProp); double g1 = ((Double) params.get(0)).doubleValue(); double g2 = ((Double) params.get(1)).doubleValue(); Color c1 = (Color) params.get(2); C...
16,505
public void close() throws IOException { if (isClosed()) return; impl.close(); impl = null; bound = false; if (getChannel() != null) getChannel().close(); }
public void close() throws IOException { if (isClosed()) return; impl.close(); impl = null; if (getChannel() != null) getChannel().close(); }
16,506
public InetAddress getInetAddress() { if (! isBound()) return null; try { return (InetAddress) impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // This never happens as we are bound. return null; } }
public InetAddress getInetAddress() { if (local == null) return null; try { return (InetAddress) impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // This never happens as we are bound. return null; } }
16,507
public InetAddress getInetAddress() { if (! isBound()) return null; try { return (InetAddress) impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // This never happens as we are bound. return null; } }
public InetAddress getInetAddress() { if (! isBound()) return null; try { return (InetAddress) impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException e) { // This never happens as we are bound. return null; } }
16,508
public int getLocalPort() { if (! isBound()) return -1; return impl.getLocalPort(); }
public int getLocalPort() { if (local == null) return -1; return impl.getLocalPort(); }
16,509
public int getLocalPort() { if (! isBound()) return -1; return impl.getLocalPort(); }
public int getLocalPort() { if (! isBound()) return -1; return local.getPort(); }
16,510
public SocketAddress getLocalSocketAddress() { if (! isBound()) return null; return new InetSocketAddress(getInetAddress(), getLocalPort()); }
public SocketAddress getLocalSocketAddress() { if (! isBound()) return null; return new InetSocketAddress(getInetAddress(), getLocalPort()); }
16,511
public boolean isBound() { return bound; }
public boolean isBound() { return local != null; }
16,512
createSocketImpl();
SocketImpl createSocketImpl();
16,513
public InetSocketAddress(InetAddress addr, int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException("Bad port number: " + port); if (addr == null) addr = InetAddress.ANY_IF; this.addr = addr; this.port = port; this.hostname = addr.getH...
public InetSocketAddress(InetAddress addr, int port) throws IllegalArgumentException { if (port < 0 || port > 65535) throw new IllegalArgumentException("Bad port number: " + port); if (addr == null) addr = InetAddress.ANY_IF; this.addr = addr; this.port = port; }
16,514
public Socket() { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); inputShutdown = false; outputShutdown = false; }
public Socket() { if (factory != null) impl = factory.createSocketImpl(); else impl = new PlainSocketImpl(); inputShutdown = false; outputShutdown = false; }
16,515
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; }
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; }
16,516
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; }
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; }
16,517
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); closed = true; }
public synchronized void close() throws IOException { if (impl != null) impl.close(); if (ch != null) ch.close(); if (getChannel() != null) getChannel().close(); }
16,518
public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.vstack = new VirtualStack(os); this.helper = new X86CompilerHelper(os, vstack.cre...
public X86BytecodeVisitor(NativeStream outputStream, CompiledMethod cm, boolean isBootstrap, X86CompilerContext context) { this.os = (AbstractX86Stream) outputStream; this.context = context; this.vstack = new VirtualStack(os); this.helper = new X86CompilerHelper(os, vstack.cre...
16,520
private final void checkBounds(RefItem ref, IntItem index) { final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, index assertCondition(ref.isRegister(), "ref must be in a register"); final Register r = ref.getRegister(); if (index.isConstant()) { //TODO...
private final void checkBounds(RefItem ref, IntItem index) { final Label ok = new Label(curInstrLabel + "$$cbok"); // CMP length, index assertCondition(ref.isRegister(), "ref must be in a register"); final Register r = ref.getRegister(); if (index.isConstant()) { //TODO...
16,521
public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); this.currentMethod = previousMethod; this.outerMethodStack = null; if (debug) { BootLog.debug("endInlinedMethod"); } }
public void endInlinedMethod(VmMethod previousMethod) { helper.setMethod(previousMethod); os.setObjectRef(endOfInlineLabel); this.currentMethod = previousMethod; this.outerMethodStack = null; if (debug) { BootLog.debug("endInlinedMethod"); } }
16,522
public void endInstruction() { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if...
public void endInstruction() { // Verify the register usage // No registers can be in use, unless they are on the virtual stack. final X86RegisterPool pool = eContext.getPool(); pool.visitUsedRegisters(new RegisterVisitor() { public void visit(Register reg) { if...
16,523
public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError( "Register " + reg + " is in use outsite of the vstack at bytecode address " + curAddress); } ...
public void visit(Register reg) { if (!vstack.uses(reg)) { throw new InternalError( "Register " + reg + " is in use outsite of the vstack at bytecode address " + curAddress); } ...
16,524
private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os...
private final void instanceOf(Register objectr, Label trueLabel) { //TODO: port to orp-style final Label loopLabel = new Label(this.curInstrLabel + "loop"); final Label notInstanceOfLabel = new Label(this.curInstrLabel + "notInstanceOf"); /* Is objectref null? */ os...
16,525
public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB"); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result from t...
public void startBasicBlock(BasicBlock bb) { if (log) { os.log("Start of basic block " + bb); } if (debug) { BootLog.debug("-- Start of BB"); } startOfBB = true; this.vstack.reset(); eContext.getPool().reset(os); // Push the result from t...
16,526
public void startInlinedMethodCode(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodCode(" + inlinedMethod + ")"); } //TODO: check whether this is really needed // For now yes, because a new basic block resets the registerpool //...
public void startInlinedMethodCode(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodCode(" + inlinedMethod + ")"); } //TODO: check whether this is really needed // For now yes, because a new basic block resets the registerpool //...
16,527
public void startInlinedMethodHeader(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodHeader(" + inlinedMethod + ")"); } maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper....
public void startInlinedMethodHeader(VmMethod inlinedMethod, int newMaxLocals) { if (debug) { BootLog.debug("startInlinedMethodHeader(" + inlinedMethod + ")"); } maxLocals = newMaxLocals; endOfInlineLabel = new Label(curInstrLabel + "_end_of_inline"); helper....
16,528
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie...
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie...
16,529
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie...
public final void visit_aastore() { final boolean useBarrier = (context.getWriteBarrier() != null); RefItem val = vstack.popRef(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); // if barrie...
16,530
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes...
public final void visit_anewarray(VmConstClass classRef) { requestRegister(EAX); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeResolveAndLoadClas...
16,531
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes...
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes...
16,532
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); writeRes...
public final void visit_anewarray(VmConstClass classRef) { final IntItem cnt = vstack.popInt(); // Load the count value cnt.load(eContext); final Register cntr = cnt.getRegister(); // Request tmp register final Register classr = requestRegister(JvmType.INT); cnt.load...
16,533