rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
setSelectedIndex(i);
|
public void addAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
throws NotImplementedException
|
public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
public void clearAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
||
throws NotImplementedException
|
public Accessible getAccessibleAt(Point p) throws NotImplementedException { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return null;
|
int tabIndex = indexAtLocation(p.x, p.y); if (tabIndex >= 0) return getAccessibleChild(tabIndex); else return getAccessibleSelection(0);
|
public Accessible getAccessibleAt(Point p) throws NotImplementedException { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return 0;
|
return getTabCount();
|
public int getAccessibleChildrenCount() throws NotImplementedException { return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public AccessibleRole getAccessibleRole() throws NotImplementedException { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return null;
|
return AccessibleRole.PAGE_TAB_LIST;
|
public AccessibleRole getAccessibleRole() throws NotImplementedException { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return null;
|
return this;
|
public AccessibleSelection getAccessibleSelection() throws NotImplementedException { return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return 0;
|
return 1;
|
public int getAccessibleSelectionCount() throws NotImplementedException { return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return false;
|
return i == getSelectedIndex();
|
public boolean isAccessibleChildSelected(int i) throws NotImplementedException { return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public void removeAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
public void removeAccessibleSelection(int i) throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
||
throws NotImplementedException
|
public void selectAllAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
public void selectAllAccessibleSelection() throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
||
throws NotImplementedException
|
public void stateChanged(ChangeEvent e) throws NotImplementedException { // Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
Object source = e.getSource(); firePropertyChange(AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY, null, source);
|
public void stateChanged(ChangeEvent e) throws NotImplementedException { // Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
throws NotImplementedException
|
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return 0;
|
return indexOfTab(title);
|
public int getAccessibleIndexInParent() throws NotImplementedException { // FIXME: Implement this properly. return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
throws NotImplementedException
|
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
|
return null;
|
AccessibleContext parentCtx = JTabbedPane.this.getAccessibleContext(); AccessibleStateSet state = parentCtx.getAccessibleStateSet(); state.add(AccessibleState.SELECTABLE); if (component == getSelectedComponent()) state.add(AccessibleState.SELECTED); return state;
|
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { // FIXME: Implement this properly. return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
accessibleContext = new AccessibleJTabbedPane();
|
{ AccessibleJTabbedPane ctx = new AccessibleJTabbedPane(); addChangeListener(ctx); accessibleContext = ctx; }
|
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJTabbedPane(); return accessibleContext; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
return "JTabbedPane";
|
StringBuffer sb = new StringBuffer(super.paramString()); sb.append(",tabPlacement="); if (tabPlacement == TOP) sb.append("TOP"); if (tabPlacement == BOTTOM) sb.append("BOTTOM"); if (tabPlacement == LEFT) sb.append("LEFT"); if (tabPlacement == RIGHT) sb.append("RIGHT"); return sb.toString();
|
protected String paramString() { return "JTabbedPane"; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTabbedPane.java/clean/core/src/classpath/javax/javax/swing/JTabbedPane.java
|
String mc = System.getProperty("http.maxConnections"); maxConnections = (mc != null && mc.length() > 0) ? Math.max(Integer.parseInt(mc), 1) : 5;
|
public Object run() { proxyHostname = System.getProperty("http.proxyHost"); if (proxyHostname != null && proxyHostname.length() > 0) { String port = System.getProperty("http.proxyPort"); if (port != null && port.length() > 0) { proxyPort = Integer.parseInt(port); } else { proxyHostname = null; proxyPort = -1; } } agent = System.getProperty("http.agent"); String ka = System.getProperty("http.keepAlive"); keepAlive = !(ka != null && "false".equals(ka)); String mc = System.getProperty("http.maxConnections"); maxConnections = (mc != null && mc.length() > 0) ? Math.max(Integer.parseInt(mc), 1) : 5; return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/HTTPURLConnection.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPURLConnection.java
|
|
Object key = HTTPConnection.getPoolKey(host, port, secure); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.remove(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); connection.setPool(connectionPool); } }
|
connection = HTTPConnection.Pool.instance.get(host, port, secure);
|
HTTPConnection getConnection(String host, int port, boolean secure) throws IOException { HTTPConnection connection; if (keepAlive) { Object key = HTTPConnection.getPoolKey(host, port, secure); synchronized (connectionPool) { connection = (HTTPConnection) connectionPool.remove(key); if (connection == null) { connection = new HTTPConnection(host, port, secure); connection.setPool(connectionPool); } } } else { connection = new HTTPConnection(host, port, secure); } return connection; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8d798e21ea9e711563d557b9684e4c872138a713/HTTPURLConnection.java/buggy/core/src/classpath/gnu/gnu/java/net/protocol/http/HTTPURLConnection.java
|
return offset;
|
return offset != pos ? offset : -1;
|
protected int layoutRow(FlowView fv, int rowIndex, int pos) { View row = fv.getView(rowIndex); int axis = fv.getFlowAxis(); int span = fv.getFlowSpan(rowIndex); int x = fv.getFlowStart(rowIndex); int offset = pos; View logicalView = getLogicalView(fv); // Special case when span == 0. We need to layout the row as if it had // a span of Integer.MAX_VALUE. if (span == 0) span = Integer.MAX_VALUE; while (span > 0) { if (logicalView.getViewIndex(offset, Position.Bias.Forward) == -1) break; View view = createView(fv, offset, span, rowIndex); if (view == null) break; int viewSpan = (int) view.getPreferredSpan(axis); row.append(view); int breakWeight = view.getBreakWeight(axis, x, span); if (breakWeight >= View.ForcedBreakWeight) break; x += viewSpan; span -= viewSpan; offset += (view.getEndOffset() - view.getStartOffset()); } if (span < 0) { int flowStart = fv.getFlowStart(axis); int flowSpan = fv.getFlowSpan(axis); adjustRow(fv, rowIndex, flowSpan, flowStart); int rowViewCount = row.getViewCount(); offset = row.getView(rowViewCount - 1).getEndOffset(); } return offset; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/FlowView.java/buggy/core/src/classpath/javax/javax/swing/text/FlowView.java
|
LogicalView(Element el) { super(el); children = new Vector();
|
LogicalView(Element el, int axis) { super(el, axis);
|
LogicalView(Element el) { super(el); children = new Vector(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/FlowView.java/buggy/core/src/classpath/javax/javax/swing/text/FlowView.java
|
layoutPool = new LogicalView(getElement());
|
layoutPool = new LogicalView(getElement(), getAxis());
|
protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl = el.getElement(i); View childView = vf.create(childEl); layoutPool.append(childView); } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/FlowView.java/buggy/core/src/classpath/javax/javax/swing/text/FlowView.java
|
Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl = el.getElement(i); View childView = vf.create(childEl); layoutPool.append(childView); }
|
protected void loadChildren(ViewFactory vf) { if (layoutPool == null) { layoutPool = new LogicalView(getElement()); layoutPool.setParent(this); Element el = getElement(); int count = el.getElementCount(); for (int i = 0; i < count; ++i) { Element childEl = el.getElement(i); View childView = vf.create(childEl); layoutPool.append(childView); } } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/70a2876c99036463feada99a37295405c146f49b/FlowView.java/buggy/core/src/classpath/javax/javax/swing/text/FlowView.java
|
|
checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field");
|
DerUtil.checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field");
|
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(RSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] spkBytes = ((BitString) val.getValue()).toByteArray(); der = new DERReader(spkBytes); val = der.read(); checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); val = der.read(); checkIsBigInteger(val, "Wrong modulus field"); n = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong publicExponent field"); e = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException y = new InvalidParameterException(); y.initCause(x); throw y; } return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/RSAKeyPairX509Codec.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
|
checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field");
|
DerUtil.checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field");
|
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(RSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] spkBytes = ((BitString) val.getValue()).toByteArray(); der = new DERReader(spkBytes); val = der.read(); checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); val = der.read(); checkIsBigInteger(val, "Wrong modulus field"); n = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong publicExponent field"); e = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException y = new InvalidParameterException(); y.initCause(x); throw y; } return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/RSAKeyPairX509Codec.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
|
checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field");
|
DerUtil.checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field");
|
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(RSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] spkBytes = ((BitString) val.getValue()).toByteArray(); der = new DERReader(spkBytes); val = der.read(); checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); val = der.read(); checkIsBigInteger(val, "Wrong modulus field"); n = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong publicExponent field"); e = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException y = new InvalidParameterException(); y.initCause(x); throw y; } return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/RSAKeyPairX509Codec.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
|
checkIsBigInteger(val, "Wrong modulus field");
|
DerUtil.checkIsBigInteger(val, "Wrong modulus field");
|
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(RSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] spkBytes = ((BitString) val.getValue()).toByteArray(); der = new DERReader(spkBytes); val = der.read(); checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); val = der.read(); checkIsBigInteger(val, "Wrong modulus field"); n = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong publicExponent field"); e = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException y = new InvalidParameterException(); y.initCause(x); throw y; } return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/RSAKeyPairX509Codec.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
|
checkIsBigInteger(val, "Wrong publicExponent field");
|
DerUtil.checkIsBigInteger(val, "Wrong publicExponent field");
|
public PublicKey decodePublicKey(byte[] input) { if (input == null) throw new InvalidParameterException("Input bytes MUST NOT be null"); BigInteger n, e; DERReader der = new DERReader(input); try { DERValue derSPKI = der.read(); checkIsConstructed(derSPKI, "Wrong SubjectPublicKeyInfo field"); DERValue derAlgorithmID = der.read(); checkIsConstructed(derAlgorithmID, "Wrong AlgorithmIdentifier field"); DERValue derOID = der.read(); if (! (derOID.getValue() instanceof OID)) throw new InvalidParameterException("Wrong Algorithm field"); OID algOID = (OID) derOID.getValue(); if (! algOID.equals(RSA_ALG_OID)) throw new InvalidParameterException("Unexpected OID: " + algOID); DERValue val = der.read(); if (! (val.getValue() instanceof BitString)) throw new InvalidParameterException("Wrong SubjectPublicKey field"); byte[] spkBytes = ((BitString) val.getValue()).toByteArray(); der = new DERReader(spkBytes); val = der.read(); checkIsConstructed(derAlgorithmID, "Wrong subjectPublicKey field"); val = der.read(); checkIsBigInteger(val, "Wrong modulus field"); n = (BigInteger) val.getValue(); val = der.read(); checkIsBigInteger(val, "Wrong publicExponent field"); e = (BigInteger) val.getValue(); } catch (IOException x) { InvalidParameterException y = new InvalidParameterException(); y.initCause(x); throw y; } return new GnuRSAPublicKey(Registry.X509_ENCODING_ID, n, e); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/RSAKeyPairX509Codec.java/clean/core/src/classpath/gnu/gnu/java/security/key/rsa/RSAKeyPairX509Codec.java
|
if (!cls.isInitialized()) {
|
if (!cls.isInitialized()) {
|
public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized()) { final GPR aax = this.AAX; final int size = os.getMode().getSize(); // Save eax os.writePUSH(aax); // Do the is initialized test // Move method.declaringClass -> EAX final int typeOfs = getSharedStaticsOffset(method .getDeclaringClass()); os.writeMOV(size, aax, STATICS, typeOfs); // Test declaringClass.modifiers os.writeTEST(BITS32, aax, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(method.getMangledName() + "$$after-classinit"); os.writeJCC(afterInit, X86Constants.JNZ); // Call cls.initialize os.writePUSH(aax); invokeJavaMethod(entryPoints.getVmTypeInitialize()); os.setObjectRef(afterInit); // Restore eax os.writePOP(aax); return true; } } return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
|
final int size = os.getMode().getSize();
|
final Label label = genLabel("$$class-init");
|
public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized()) { final GPR aax = this.AAX; final int size = os.getMode().getSize(); // Save eax os.writePUSH(aax); // Do the is initialized test // Move method.declaringClass -> EAX final int typeOfs = getSharedStaticsOffset(method .getDeclaringClass()); os.writeMOV(size, aax, STATICS, typeOfs); // Test declaringClass.modifiers os.writeTEST(BITS32, aax, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(method.getMangledName() + "$$after-classinit"); os.writeJCC(afterInit, X86Constants.JNZ); // Call cls.initialize os.writePUSH(aax); invokeJavaMethod(entryPoints.getVmTypeInitialize()); os.setObjectRef(afterInit); // Restore eax os.writePOP(aax); return true; } } return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
|
final int typeOfs = getSharedStaticsOffset(method .getDeclaringClass()); os.writeMOV(size, aax, STATICS, typeOfs); os.writeTEST(BITS32, aax, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(method.getMangledName() + "$$after-classinit"); os.writeJCC(afterInit, X86Constants.JNZ); os.writePUSH(aax); invokeJavaMethod(entryPoints.getVmTypeInitialize()); os.setObjectRef(afterInit);
|
writeGetStaticsEntry(label, aax, cls); writeClassInitialize(label, aax, cls);
|
public final boolean writeClassInitialize(VmMethod method) { // Only for static methods (non <clinit>) if (method.isStatic() && !method.isInitializer()) { // Only when class is not initialize final VmType< ? > cls = method.getDeclaringClass(); if (!cls.isInitialized()) { final GPR aax = this.AAX; final int size = os.getMode().getSize(); // Save eax os.writePUSH(aax); // Do the is initialized test // Move method.declaringClass -> EAX final int typeOfs = getSharedStaticsOffset(method .getDeclaringClass()); os.writeMOV(size, aax, STATICS, typeOfs); // Test declaringClass.modifiers os.writeTEST(BITS32, aax, entryPoints.getVmTypeState() .getOffset(), VmTypeState.ST_INITIALIZED); final Label afterInit = new Label(method.getMangledName() + "$$after-classinit"); os.writeJCC(afterInit, X86Constants.JNZ); // Call cls.initialize os.writePUSH(aax); invokeJavaMethod(entryPoints.getVmTypeInitialize()); os.setObjectRef(afterInit); // Restore eax os.writePOP(aax); return true; } } return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
|
os.writeXOR(dst, dst);
|
Vm.getVm().getCounter("### load " + dst.getName()).inc();
|
public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PREFIX); os.writeMOV(INTSIZE, dst, dst, offset); } else { os.writeMOV(BITS64, dst, PROCESSOR64, offset); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
|
os.writeMOV(INTSIZE, dst, dst, offset);
|
os.writeMOV(dst, offset);
|
public final void writeLoadIsolatedStatics(Label curInstrLabel, String labelPrefix, GPR dst) { final int offset = entryPoints.getVmProcessorIsolatedStaticsTable() .getOffset(); if (os.isCode32()) { os.writeXOR(dst, dst); os.writePrefix(X86Constants.FS_PREFIX); os.writeMOV(INTSIZE, dst, dst, offset); } else { os.writeMOV(BITS64, dst, PROCESSOR64, offset); } }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/X86CompilerHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/X86CompilerHelper.java
|
list.requestFocusInWindow();
|
public void mousePressed(MouseEvent event) { // TODO: What should be done here, if anything? }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
|
InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); for (int i = 0; i < keys.length; i++)
|
SwingUtilities.replaceUIInputMap(list, JComponent.WHEN_FOCUSED, focusInputMap); ActionMap am = (ActionMap) UIManager.get("List.actionMap"); if (am == null)
|
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair for (int i = 0; i < keys.length; i++) { KeyStroke stroke = (KeyStroke) keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); parentActionMap.put(actionString, new ActionListenerProxy(action, actionString)); } // Register the new InputMap-ActionMap as the parents of the list's // InputMap and ActionMap parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
KeyStroke stroke = (KeyStroke) keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString);
|
am = new ActionMapUIResource(); ListAction action; action = new ListAction("selectPreviousRow"); am.put("selectPreviousRow", action); action = new ListAction("selectNextRow"); am.put("selectNextRow", action); action = new ListAction("selectPreviousRowExtendSelection"); am.put("selectPreviousRowExtendSelection", action); action = new ListAction("selectNextRowExtendSelection"); am.put("selectNextRowExtendSelection", action);
|
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair for (int i = 0; i < keys.length; i++) { KeyStroke stroke = (KeyStroke) keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); parentActionMap.put(actionString, new ActionListenerProxy(action, actionString)); } // Register the new InputMap-ActionMap as the parents of the list's // InputMap and ActionMap parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
parentActionMap.put(actionString, new ActionListenerProxy(action, actionString));
|
action = new ListAction("selectPreviousColumn"); am.put("selectPreviousColumn", action); action = new ListAction("selectNextColumn"); am.put("selectNextColumn", action); action = new ListAction("selectPreviousColumnExtendSelection"); am.put("selectPreviousColumnExtendSelection", action); action = new ListAction("selectNextColumnExtendSelection"); am.put("selectNextColumnExtendSelection", action); action = new ListAction("selectFirstRow"); am.put("selectFirstRow", action); action = new ListAction("selectLastRow"); am.put("selectLastRow", action); action = new ListAction("selectFirstRowExtendSelection"); am.put("selectFirstRowExtendSelection", action); action = new ListAction("selectLastRowExtendSelection"); am.put("selectLastRowExtendSelection", action); action = new ListAction("scrollUp"); am.put("scrollUp", action); action = new ListAction("scrollUpExtendSelection"); am.put("scrollUpExtendSelection", action); action = new ListAction("scrollDown"); am.put("scrollDown", action); action = new ListAction("scrollDownExtendSelection"); am.put("scrollDownExtendSelection", action); action = new ListAction("selectAll"); am.put("selectAll", action); action = new ListAction("clearSelection"); am.put("clearSelection", action); am.put("copy", TransferHandler.getCopyAction()); am.put("cut", TransferHandler.getCutAction()); am.put("paste", TransferHandler.getPasteAction()); UIManager.put("List.actionMap", am);
|
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair for (int i = 0; i < keys.length; i++) { KeyStroke stroke = (KeyStroke) keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); parentActionMap.put(actionString, new ActionListenerProxy(action, actionString)); } // Register the new InputMap-ActionMap as the parents of the list's // InputMap and ActionMap parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap);
|
SwingUtilities.replaceUIActionMap(list, am);
|
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("List.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); // FIXME: The JDK uses a LazyActionMap for parentActionMap ActionMap parentActionMap = new ActionMapUIResource(); action = new ListAction(); Object keys[] = focusInputMap.allKeys(); // Register key bindings in the UI InputMap-ActionMap pair for (int i = 0; i < keys.length; i++) { KeyStroke stroke = (KeyStroke) keys[i]; String actionString = (String) focusInputMap.get(stroke); parentInputMap.put(KeyStroke.getKeyStroke(stroke.getKeyCode(), stroke.getModifiers()), actionString); parentActionMap.put(actionString, new ActionListenerProxy(action, actionString)); } // Register the new InputMap-ActionMap as the parents of the list's // InputMap and ActionMap parentInputMap.setParent(list.getInputMap().getParent()); parentActionMap.setParent(list.getActionMap().getParent()); list.getInputMap().setParent(parentInputMap); list.getActionMap().setParent(parentActionMap); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
0, isSel, hasFocus);
|
row, isSel, hasFocus);
|
protected void paintCell(Graphics g, int row, Rectangle bounds, ListCellRenderer rend, ListModel data, ListSelectionModel sel, int lead) { boolean isSel = list.isSelectedIndex(row); boolean hasFocus = (list.getLeadSelectionIndex() == row) && BasicListUI.this.list.hasFocus(); Component comp = rend.getListCellRendererComponent(list, data.getElementAt(row), 0, isSel, hasFocus); rendererPane.paintComponent(g, comp, list, bounds); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
throws NotImplementedException
|
protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
|
InputMap im = SwingUtilities.getUIInputMap(list, JComponent.WHEN_FOCUSED); if (im instanceof UIResource) SwingUtilities.replaceUIInputMap(list, JComponent.WHEN_FOCUSED, null); if (SwingUtilities.getUIActionMap(list) instanceof UIResource) SwingUtilities.replaceUIActionMap(list, null);
|
protected void uninstallKeyboardActions() throws NotImplementedException { // TODO: Implement this properly. }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicListUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicListUI.java
|
|
if (vector.size() >= 10) {
|
/** * @todo here is the throttling code to look at * * just something here to try. OK it works but we need to be a little * more intelligent with the throttling. */ if (vector.size() >= 20) {
|
public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); // just something here to try. if (vector.size() >= 10) { vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); } // we have the lock and state we're seeking return vector.remove(0); } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/DataStreamQueue.java/clean/tn5250j/src/org/tn5250j/DataStreamQueue.java
|
vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0);
|
public Object get() throws InterruptedException { synchronized (lock) { // wait until there is something to read while (isEmpty()) lock.wait(); // just something here to try. if (vector.size() >= 10) { vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); vector.remove(0); } // we have the lock and state we're seeking return vector.remove(0); } }
|
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/bcfd5ba28d22d8100110257f977fd7c577f652c2/DataStreamQueue.java/clean/tn5250j/src/org/tn5250j/DataStreamQueue.java
|
|
public AccessibleRole getAccessibleRole() { // TODO: What is the role of the table cell? return AccessibleRole.UNKNOWN; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
||
return new AccessibleStateSet();
|
AccessibleStateSet state = new AccessibleStateSet(); Rectangle visibleRect = getVisibleRect(); Rectangle cellRect = getCellRect(row, column, false); if (visibleRect.intersects(cellRect)) state.add(AccessibleState.SHOWING); if (isCellSelected(row, column)) state.add(AccessibleState.SELECTED); if (row == getSelectedRow() && column == getSelectedColumn()) state.add(AccessibleState.ACTIVE); state.add(AccessibleState.TRANSIENT); return state;
|
public AccessibleStateSet getAccessibleStateSet() { // TODO: What state shoiuld be returned here? return new AccessibleStateSet(); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
getCellEditor().addCellEditorListener(this);
|
lastSelectedRow = getSelectedRow(); lastSelectedColumn = getSelectedColumn(); TableCellEditor editor = getCellEditor(); if (editor != null) editor.addCellEditorListener(this);
|
protected AccessibleJTable() { getModel().addTableModelListener(this); getSelectionModel().addListSelectionListener(this); getColumnModel().addColumnModelListener(this); getCellEditor().addCellEditorListener(this); }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); changeSelection(r, c, true, false);
|
public void addAccessibleSelection(int i) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
clearSelection();
|
public void clearAccessibleSelection() { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.INSERT, event.getFromIndex(), event.getToIndex());
|
public void columnAdded(TableColumnModelEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null);
|
public void columnMarginChanged(ChangeEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, event.getFromIndex(), event.getFromIndex()); handleColumnChange(AccessibleTableModelChange.INSERT, event.getFromIndex(), event.getToIndex());
|
public void columnMoved(TableColumnModelEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null); handleColumnChange(AccessibleTableModelChange.DELETE, event.getFromIndex(), event.getToIndex());
|
public void columnRemoved(TableColumnModelEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
public void columnSelectionChanged(ListSelectionEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
||
public void editingCanceled(ChangeEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
||
firePropertyChange(AccessibleContext.ACCESSIBLE_VISIBLE_DATA_PROPERTY, null, null);
|
public void editingStopped(ChangeEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
return null;
|
return getAccessibleChild(r * getAccessibleColumnCount() + c);
|
public Accessible getAccessibleAt(int r, int c) { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
return caption;
|
public Accessible getAccessibleCaption() { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return getAccessibleColumnAtIndex(index);
|
public int getAccessibleColumn(int index) { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return getColumnCount();
|
public int getAccessibleColumnCount() { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
Accessible descr = null; if (columnDescriptions != null) descr = columnDescriptions[c]; return descr;
|
public Accessible getAccessibleColumnDescription(int c) { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return 1;
|
public int getAccessibleColumnExtentAt(int r, int c) { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
JTableHeader h = getTableHeader(); AccessibleTable header = null; if (h != null) header = new AccessibleTableHeader(h); return header;
|
public AccessibleTable getAccessibleColumnHeader() { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return getAccessibleIndexAt(r, c);
|
public int getAccessibleIndex(int r, int c) { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return getAccessibleRowAtIndex(index);
|
public int getAccessibleRow(int index) { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return getRowCount();
|
public int getAccessibleRowCount() { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
Accessible descr = null; if (rowDescriptions != null) descr = rowDescriptions[r]; return descr;
|
public Accessible getAccessibleRowDescription(int r) { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return 0;
|
return 1;
|
public int getAccessibleRowExtentAt(int r, int c) { // TODO Auto-generated method stub return 0; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
public AccessibleTable getAccessibleRowHeader() { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
||
return null;
|
Accessible found = null; int[] selectedRows = getSelectedRows(); int[] selectedColumns = getSelectedColumns(); int numCols = getColumnCount(); int numRows = getRowCount(); if (getRowSelectionAllowed() && getColumnSelectionAllowed()) { int current = -1; int newIndex = current; int lastSelectedRow = -1; for (int j = 0; i < selectedRows.length; i++) { int selectedRow = selectedRows[j]; int r = -1; int ci = -1; for (r = lastSelectedRow + 1; r < selectedRow && current < i; r++) { for (ci = 0; ci < selectedColumns.length && current < i; ci++) { current++; } } if (current == i) { found = getAccessibleChild(r * numCols + selectedColumns[ci]); break; } if (current < i && current + numCols >= i) { found = getAccessibleChild(r * numCols + (i - current)); break; } current += numCols; } if (found == null) { int r = 0; int ci = 0; for (r = lastSelectedRow + 1; r < numRows && current < i; r++) { for (ci = 0; ci < selectedColumns.length && current < i; ci++) { current++; } } if (current == i) { found = getAccessibleChild(r * numCols + selectedColumns[ci]); } } } else if (getRowSelectionAllowed()) { int c = i % numCols; int r = selectedRows[i / numCols]; found = getAccessibleChild(r * numCols + c); } else if (getRowSelectionAllowed()) { int numSelectedColumns = selectedColumns.length; int c = selectedColumns[i % numSelectedColumns]; int r = i / numSelectedColumns; found = getAccessibleChild(r * numCols + c); } return found;
|
public Accessible getAccessibleSelection(int i) { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
return summary;
|
public Accessible getAccessibleSummary() { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
return getSelectedColumns();
|
public int[] getSelectedAccessibleColumns() { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return null;
|
return getSelectedRows();
|
public int[] getSelectedAccessibleRows() { // TODO Auto-generated method stub return null; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return false;
|
int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); return isCellSelected(r, c);
|
public boolean isAccessibleChildSelected(int i) { // TODO Auto-generated method stub return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return false;
|
return isColumnSelected(c);
|
public boolean isAccessibleColumnSelected(int c) { // TODO Auto-generated method stub return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return false;
|
return isRowSelected(r);
|
public boolean isAccessibleRowSelected(int r) { // TODO Auto-generated method stub return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
return false;
|
return isCellSelected(r, c);
|
public boolean isAccessibleSelected(int r, int c) { // TODO Auto-generated method stub return false; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
if (! getRowSelectionAllowed() && ! getColumnSelectionAllowed()) { int r = getAccessibleRowAtIndex(i); int c = getAccessibleColumnAtIndex(i); removeRowSelectionInterval(r, r); removeColumnSelectionInterval(c, c); }
|
public void removeAccessibleSelection(int i) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
selectAll();
|
public void selectAllAccessibleSelection() { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
public void setAccessibleCaption(Accessible caption)
|
public void setAccessibleCaption(Accessible c)
|
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
caption = c;
|
public void setAccessibleCaption(Accessible caption) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
if (columnDescriptions == null) columnDescriptions = new Accessible[getAccessibleRowCount()]; columnDescriptions[c] = description;
|
public void setAccessibleColumnDescription(int c, Accessible description) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
public void setAccessibleColumnHeader(AccessibleTable header) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
||
if (rowDescriptions == null) rowDescriptions = new Accessible[getAccessibleRowCount()]; rowDescriptions[r] = description;
|
public void setAccessibleRowDescription(int r, Accessible description) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
public void setAccessibleRowHeader(AccessibleTable header) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
||
public void setAccessibleSummary(Accessible summary)
|
public void setAccessibleSummary(Accessible s)
|
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
summary = s;
|
public void setAccessibleSummary(Accessible summary) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
handleRowChange(event);
|
public void tableRowsDeleted(TableModelEvent event) { // TODO: What to do here, if anything? This might be a hook method for // subclasses... }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
handleRowChange(event);
|
public void tableRowsInserted(TableModelEvent event) { // TODO: What to do here, if anything? This might be a hook method for // subclasses... }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
firePropertyChange(AccessibleContext.ACCESSIBLE_SELECTION_PROPERTY, Boolean.FALSE, Boolean.TRUE); int r = getSelectedRow(); int c = getSelectedColumn(); if (r != lastSelectedRow || c != lastSelectedColumn) { Accessible o = getAccessibleAt(lastSelectedRow, lastSelectedColumn); Accessible n = getAccessibleAt(r, c); firePropertyChange(AccessibleContext .ACCESSIBLE_ACTIVE_DESCENDANT_PROPERTY, o, n); lastSelectedRow = r; lastSelectedColumn = c; }
|
public void valueChanged(ListSelectionEvent event) { // TODO Auto-generated method stub }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
|
setText("");
|
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (value instanceof Icon) { Icon iconValue = (Icon) value; setIcon(iconValue); setText(""); } return this; }
|
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7a2e92fd1a70a7ebb674875e63bf471ea5bca540/JTable.java/clean/core/src/classpath/javax/javax/swing/JTable.java
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.