bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public final void visit_lreturn() { final LongItem val = vstack.popLong(); if (!(val.uses(EAX) && val.uses(EDX))) { if (val.uses(EAX) || val.uses(EDX)) { val.push(eContext); } requestRegister(EAX, val); requestRegister(EDX, val); val.loadTo(eContext, EAX, EDX); } val.release(eContext); visit_return()...
public final void visit_lreturn() { final LongItem val = vstack.popLong(); if (!(val.uses(EAX) && val.uses(EDX))) { if (val.uses(EAX) || val.uses(EDX)) { val.push(eContext); } requestRegister(EAX, val); requestRegister(EDX, val); val.loadTo(eContext, EAX, EDX); } val.release(eContext); visit_return()...
57,084
public final void visit_lstore(int index) { final LongItem v = vstack.popLong(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this local vstack.loadLocal(eContext, ebpOfs); // Load the value v.load(eContext); // Copy to local os.writeMOV(INTSIZE, FP, ebpOfs, v.getLsbRe...
public final void visit_lstore(int index) { final LongItem v = vstack.popLong(); final int ebpOfs = stackFrame.getWideEbpOffset(index); // pin down other references to this local vstack.loadLocal(eContext, ebpOfs); // Load the value v.load(eContext); // Copy to local os.writeMOV(INTSIZE, FP, ebpOfs, v.getLsbRe...
57,085
public final void visit_lsub() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeSUB(r1_lsb, v2.getLsbRegi...
public final void visit_lsub() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeSUB(r1_lsb, v2.getLsbRegi...
57,086
public final void visit_lxor() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeXOR(r1_lsb, v2.getLsbRegi...
public final void visit_lxor() { final LongItem v2 = vstack.popLong(); final LongItem v1 = vstack.popLong(); prepareForOperation(v1, v2); final Register r1_lsb = v1.getLsbRegister(); final Register r1_msb = v1.getMsbRegister(); switch (v2.getKind()) { case Item.Kind.REGISTER: os.writeXOR(r1_lsb, v2.getLsbRegi...
57,087
public final void visit_monitorenter() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack helper.invokeJavaMethod(context.getMonitorEnterMethod()); }
public final void visit_monitorenter() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack helper.invokeJavaMethod(context.getMonitorEnterMethod()); }
57,088
public final void visit_monitorexit() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack helper.invokeJavaMethod(context.getMonitorExitMethod()); }
public final void visit_monitorexit() { vstack.push(eContext); RefItem v = vstack.popRef(); v.release1(eContext); // Objectref is already on the stack helper.invokeJavaMethod(context.getMonitorExitMethod()); }
57,089
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ helper.invokeJavaMethod(context.getAllocP...
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ helper.invokeJavaMethod(context.getAllocP...
57,090
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ helper.invokeJavaMethod(context.getAllocP...
public final void visit_multianewarray(VmConstClass clazz, int dimensions) { // flush all vstack items to the stack // all registers are freed vstack.push(eContext); // Create the dimensions array os.writePUSH(10); /* type=int */ os.writePUSH(dimensions); /* elements */ helper.invokeJavaMethod(context.getAllocP...
57,091
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */ os.wr...
public final void visit_new(VmConstClass classRef) { // Push all vstack.push(eContext); // Allocate tmp register final Register classr = requestRegister(JvmType.REFERENCE); writeResolveAndLoadClassToReg(classRef, classr); /* Setup a call to SoftByteCodes.allocObject */ os.writePUSH(classr); /* vmClass */ os.wr...
57,092
public final void visit_newarray(int type) { // Load count final IntItem count = vstack.popInt(); count.loadIf(eContext, Item.Kind.STACK); // flush stack, result also on stack vstack.push(eContext); // Setup a call to SoftByteCodes.allocArray os.writePUSH(type); /* type */ count.push(eContext); /* count */ co...
public final void visit_newarray(int type) { // Load count final IntItem count = vstack.popInt(); count.loadIf(eContext, Item.Kind.STACK); // flush stack, result also on stack vstack.push(eContext); // Setup a call to SoftByteCodes.allocArray os.writePUSH(type); /* type */ count.push(eContext); /* count */ co...
57,093
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
public final void visit_putfield(VmConstFieldRef fieldRef) { fieldRef.resolve(loader); final VmField field = fieldRef.getResolvedVmField(); if (field.isStatic()) { throw new IncompatibleClassChangeError( "getfield called on static field " + fieldRef.getName()); } final VmInstanceField inf = (VmInstanceField...
57,094
public final void visit_saload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.isConstant()) { final int i = idx.getValue(); os.writeMOV(WORDSIZE, r, r, i + VmArray...
public final void visit_saload() { IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); Register r = ref.getRegister(); checkBounds(ref, idx); if (idx.isConstant()) { final int i = idx.getValue(); os.writeMOV(WORDSIZE, r, r, i + VmArray...
57,095
public final void visit_sastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); final Register v =...
public final void visit_sastore() { IntItem val = vstack.popInt(); IntItem idx = vstack.popInt(); RefItem ref = vstack.popRef(); //IMPROVE: optimize case with const value val.load(eContext); idx.loadIf(eContext, ~Item.Kind.CONSTANT); ref.load(eContext); final Register r = ref.getRegister(); final Register v =...
57,096
private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Now look for class ...
private final void writeInitializeClass(VmConstFieldRef fieldRef, Register scratch) { // Get fieldRef via constantpool to avoid direct object references in // the native code final VmType declClass = fieldRef.getResolvedVmField() .getDeclaringClass(); if (!declClass.isInitialized()) { // Now look for class ...
57,097
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeplo...
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); ServerManagement....
57,098
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeplo...
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeplo...
57,099
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeplo...
public void setUp() throws Exception { super.setUp(); ServerManagement.init("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeplo...
57,100
public void testBrowse() throws Exception { log.trace("Starting testBrowse()"); final int numMessages = 10; for (int i = 0; i < numMessages; i++) { Message m = session.createMessage(); producer.send(m); } log.trace("Sent messages"); QueueBrowser browser = session.createBrowser(queue); asser...
public void testBrowse() throws Exception { log.trace("Starting testBrowse()"); final int numMessages = 10; for (int i = 0; i < numMessages; i++) { Message m = session.createMessage(); producer.send(m); } log.trace("Sent messages"); QueueBrowser browser = session.createBrowser(queue); asser...
57,101
private void checkRead() throws JMSException { if (messageReadWrite) { throw new MessageNotReadableException("readByte while the buffer is writeonly"); } // We have just received/reset() the message, and the client is trying to // read it if (istream == null || m == null) ...
private void checkRead() throws JMSException { if (bodyWriteOnly) { throw new MessageNotReadableException("readByte while the buffer is writeonly"); } // We have just received/reset() the message, and the client is trying to // read it if (istream == null || m == null) { ...
57,103
public void clearBody() throws JMSException { try { if (messageReadWrite) { ostream.close(); } else { // REVIEW: istream is only initialised on a read. // It looks like it is possible to acknowledge // a message without r...
public void clearBody() throws JMSException { try { if (bodyWriteOnly) { ostream.close(); } else { // REVIEW: istream is only initialised on a read. // It looks like it is possible to acknowledge // a message without read...
57,104
public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (messageReadWrite) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); internalArray = ostream.toByteArray(); ...
public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (bodyWriteOnly) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); internalArray = ostream.toByteArray(); if...
57,107
public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (messageReadWrite) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); internalArray = ostream.toByteArray(); ...
public void reset() throws JMSException { if (log.isTraceEnabled()) log.trace("reset()"); try { if (messageReadWrite) { if (log.isTraceEnabled()) { log.trace("Flushing ostream to array"); } p.flush(); internalArray = ostream.toByteArray(); ...
57,108
public void writeBoolean(boolean value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeBoolean(value); } catch (IOException e) { throw new JMSException("IOExceptio...
public void writeBoolean(boolean value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeBoolean(value); } catch (IOException e) { throw new JMSException("IOException")...
57,109
public void writeByte(byte value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeByte(value); } catch (IOException e) { throw new JMSException("IOException"); ...
public void writeByte(byte value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeByte(value); } catch (IOException e) { throw new JMSException("IOException"); } ...
57,110
public void writeBytes(byte[] value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.write(value, 0, value.length); } catch (IOException e) { throw new JMSException("IOE...
public void writeBytes(byte[] value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.write(value, 0, value.length); } catch (IOException e) { throw new JMSException("IOExce...
57,111
public void writeChar(char value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeChar(value); } catch (IOException e) { throw new JMSException("IOException"); ...
public void writeChar(char value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeChar(value); } catch (IOException e) { throw new JMSException("IOException"); } ...
57,112
public void writeDouble(double value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeDouble(value); } catch (IOException e) { throw new JMSException("IOException")...
public void writeDouble(double value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeDouble(value); } catch (IOException e) { throw new JMSException("IOException"); ...
57,113
public void writeExternal(ObjectOutput out) throws IOException { byte[] arrayToSend = null; if (messageReadWrite) { p.flush(); arrayToSend = ostream.toByteArray(); } else { arrayToSend = internalArray; } super.writeExternal(out); if (arrayToSend ...
public void writeExternal(ObjectOutput out) throws IOException { byte[] arrayToSend = null; if (bodyWriteOnly) { p.flush(); arrayToSend = ostream.toByteArray(); } else { arrayToSend = internalArray; } super.writeExternal(out); if (arrayToSend ==...
57,114
public void writeFloat(float value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeFloat(value); } catch (IOException e) { throw new JMSException("IOException"); ...
public void writeFloat(float value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeFloat(value); } catch (IOException e) { throw new JMSException("IOException"); ...
57,116
public void writeInt(int value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeInt(value); } catch (IOException e) { throw new JMSException("IOException"); } ...
public void writeInt(int value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeInt(value); } catch (IOException e) { throw new JMSException("IOException"); } }
57,117
public void writeLong(long value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeLong(value); } catch (IOException e) { throw new JMSException("IOException"); ...
public void writeLong(long value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeLong(value); } catch (IOException e) { throw new JMSException("IOException"); } ...
57,118
public void writeObject(Object value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { if (value == null) { throw new NullPointerException("Attempt to write a new value"); ...
public void writeObject(Object value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { if (value == null) { throw new NullPointerException("Attempt to write a new value"); ...
57,119
public void writeShort(short value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeShort(value); } catch (IOException e) { throw new JMSException("IOException"); ...
public void writeShort(short value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeShort(value); } catch (IOException e) { throw new JMSException("IOException"); ...
57,120
public void writeUTF(String value) throws JMSException { if (!messageReadWrite) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeUTF(value); } catch (IOException e) { throw new JMSException("IOException"); ...
public void writeUTF(String value) throws JMSException { if (!bodyWriteOnly) { throw new MessageNotWriteableException("the message body is read-only"); } try { p.writeUTF(value); } catch (IOException e) { throw new JMSException("IOException"); } ...
57,121
public boolean selfTest() { if (valid == null) { Sha512 md = new Sha512(); md.update((byte) 0x61); // a md.update((byte) 0x62); // b md.update((byte) 0x63); // c String result = Util.toString(md.digest()); valid = new Boolean(DIGEST0.equals(result)); } return...
public boolean selfTest() { if (valid == null) { Sha512 md = new Sha512(); md.update((byte) 0x61); // a md.update((byte) 0x62); // b md.update((byte) 0x63); // c String result = Util.toString(md.digest()); valid = Boolean.valueOf(DIGEST0.equals(result)); } re...
57,123
public RemoteContext() throws Exception { String n = "//localhost:" + TestServer.RMI_REGISTRY_PORT + "/" + TestServer.NAMING_SERVER_NAME; namingDelegate = (NamingDelegate)Naming.lookup(n); }
public RemoteContext() throws Exception { String n = "//localhost:" + TestServer.RMI_REGISTRY_PORT + "/" + TestServer.NAMING_SERVER_NAME; namingDelegate = (NamingDelegate)Naming.lookup(n); }
57,124
public IvyNode getRealNode() { IvyNode node = _data.getNode(getId()); return node == null ? this : node; }
public IvyNode getRealNode() { IvyNode node = _data.getNode(getId()); return node == null ? this : node; }
57,125
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); ic.close(); super.tearDown(); }
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); ic.close(); super.tearDown(); }
57,126
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
57,127
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
public void test_1() throws Exception { QueueConnectionFactory qcf = (QueueConnectionFactory)ic.lookup("/ConnectionFactory"); Queue queue = (Queue)ic.lookup("/queue/Queue"); QueueConnection qc = qcf.createQueueConnection(); QueueSession qs = qc.createQueueSession(false, Session.AUTO_ACKNOWLEDG...
57,128
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } List args = XMLUtil.getChildElements(condition, "ar...
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } List args = XMLUtil.getChildElements(condition, "ar...
57,129
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } List args = XMLUtil.getChildElements(condition, "ar...
protected void init(Element condition) { type = condition.getAttribute("type"); String n = condition.getAttribute("negate"); if("true".equalsIgnoreCase(n) || "yes".equalsIgnoreCase(n)) { negate = true; } else { negate = false; } List args = XMLUtil.getChildElements(condition, "ar...
57,130
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
private static void saveLine(final LineBox current, LineBox previous, final LayoutContext c, Box block, int minHeight, final int maxAvailableWidth, List elementStack, List pendingFloats, boolean hasFirstLinePCs, ...
57,131
public void tearDown() throws Exception { //ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { //ServerManagement.deInit(); super.tearDown(); }
57,132
private org.xhtmlrenderer.css.sheet.Ruleset getElementStyle(org.w3c.dom.Element e) { if (_attRes == null || _styleFactory == null) return null; org.xhtmlrenderer.css.sheet.Ruleset rs = (org.xhtmlrenderer.css.sheet.Ruleset) _elStyle.get(e); String style = _attRes.getElementStyling(e); if ...
private org.xhtmlrenderer.css.sheet.Ruleset getElementStyle(org.w3c.dom.Element e) { if (_attRes == null || _styleFactory == null) return null; org.xhtmlrenderer.css.sheet.Ruleset rs = (org.xhtmlrenderer.css.sheet.Ruleset) _elStyle.get(e); String style = _attRes.getElementStyling(e); if ...
57,133
public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.releaseReference(); ...
public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.release(); } ...
57,138
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().releaseReferen...
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ...
57,139
public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliab...
public void add(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliab...
57,140
public void deliver(Delivery d) throws Throwable { if (d.getReference().isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Delivery " + d + " of a reliable reference " + " cannot be added to non-recoverable state"); } // N...
public void deliver(Delivery d) throws Throwable { if (d.getReference().isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Delivery " + d + " of a reliable reference " + " cannot be added to non-recoverable state"); } // N...
57,141
public void redeliver(Set dels) throws Throwable { //Add the deliveries Iterator iter = dels.iterator(); //We also acquire a reference for every *extra* delivery we have over 1. //This is because we already have a reference for the ref so we don't want to get that //again int co...
public void redeliver(Set dels) throws Throwable { //Add the deliveries Iterator iter = dels.iterator(); //We also acquire a reference for every *extra* delivery we have over 1. //This is because we already have a reference for the ref so we don't want to get that //again int co...
57,142
private void closeConnection(Connection con) throws JMSException { try { con.close(); } catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } }
private void closeConnection(Connection con) throws JMSException { try { if (con != null) { con.close(); } } catch(JMSException jmse) { log("Could not close connection " + con +" exception was " +jmse); throw jmse; } }
57,143
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
57,144
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
57,145
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
57,146
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
public MessageReference reference(Routable r) { if (r.isReference()) { if (log.isTraceEnabled()) { log.trace("Routable is already a reference"); } return (MessageReference)r; } MessageReference ref = super.getReference(r.getMessageID()); if (ref != null) { ...
57,147
Rectangle getBounds() { // This method may be called in the context when the tree rectangle is // not known. To work around this, it is assumed near infinitely large. if (bounds==null) bounds = getNodeDimensions(node, row, depth, isExpanded, new Rectangle(...
Rectangle getBounds() { // This method may be called in the context when the tree rectangle is // not known. To work around this, it is assumed near infinitely large. if (bounds==null) bounds = getNodeDimensions(node, row, depth, isExpanded, new Rectangle(...
57,148
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
TreePath getPath() { boolean lastChild = false; if (parent != null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
57,149
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc - 1) lastChild = true; } ...
57,150
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
57,151
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
TreePath getPath() { boolean lastChild = false; if (parent!=null) { int nc = treeModel.getChildCount(parent); if (nc > 0) { int n = treeModel.getIndexOfChild(parent, node); if (n == nc-1) lastChild = true; } ...
57,152
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); NodeRecord nr = new NodeRecord(n.intValue(), depth, node, parent); nodes.put(node, nr); // For expanded nodes and for the root node. if (expanded.contains(...
private final void countRows(Object node, Object parent, int depth) { Integer n = new Integer(row2node.size()); row2node.put(n, node); NodeRecord nr = new NodeRecord(n.intValue(), depth, node, parent); nodes.put(node, nr); // For expanded nodes and for the root node. if (expanded.contains(...
57,153
private final void update() { nodes.clear(); row2node.clear(); totalHeight = maximalWidth = 0; Object root = treeModel.getRoot(); if (rootVisible) { countRows(root, null, 0); } else { int sc = treeModel.getChildCount(root); for (int i = 0; i < sc; i++) { ...
private final void update() { nodes.clear(); row2node.clear(); totalHeight = maximalWidth = 0; Object root = treeModel.getRoot(); if (rootVisible) { countRows(root, null, 0); } else { int sc = treeModel.getChildCount(root); for (int i = 0; i < sc; i++) { ...
57,157
private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ...
private void adjustHeight(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExt...
57,158
private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ...
private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); CalculatedStyle style = block.getContent().getStyle(); if (style.hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "heig...
57,159
private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ...
private void adjustHeight(Context c, Box block) { if (!block.isElement()) { return; } Element elem = block.getElement(); if (c.css.getStyle(elem).hasProperty("height")) { //float new_height = c.css.getFloatProperty(elem, "height", c.getExtents().height); ...
57,160
private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ...
private void adjustWidth(Context c, Box block) { if (!(block.getContent() instanceof BlockContent)) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem...
57,161
private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ...
private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ...
57,162
private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ...
private void adjustWidth(Context c, Box block) { if (!block.isElement()) { return; } // initalize the width to all the available space //block.width = c.getExtents().width; Element elem = block.getElement(); //if (c.css.hasProperty(elem, "width", false)) { ...
57,163
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,164
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; // prepare for the list items int old_...
57,165
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,166
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,167
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,168
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,169
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,170
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,171
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,172
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,173
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
public Box layoutChildren(Context c, Box box) { BlockBox block = (BlockBox) box; c.shrinkExtents(block); // save the original height in case it // has a fixed height //not used: int original_height = block.height; Element elem = (Element) box.getNode(); // pr...
57,174
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ...
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there...
57,175
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ...
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ...
57,176
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ...
public List getChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; StringBuffer textContent = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { ...
57,177
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil...
private static void layoutCells(List cells, LayoutContext c, RowBox row, TableBox table, boolean fixed, int borderSpacingHorizontal, int borderSpacingVertical) { int col = 0; for (Iterator i = cells.iterator(); i.hasNext() && !c.shouldStop();) { checkColumns(table, col + 1); whil...
57,178
public boolean isElement() { if(node == null) { u.p("this = " + this); return false; } if ( node.getNodeType() == node.ELEMENT_NODE ) { return true; } return false; }
public boolean isElement() { if(node == null) { return false; } if ( node.getNodeType() == node.ELEMENT_NODE ) { return true; } return false; }
57,181
public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (xa) ...
public SessionState(ConnectionState parent, SessionDelegate delegate, boolean transacted, int ackMode, boolean xa) { super(parent, delegate); children = new HashSet(); this.acknowledgeMode = ackMode; this.transacted = transacted; this.xa = xa; if (xa) ...
57,182
public JBossXAResource getXAResource() { return xaResource; }
public MessagingXAResource getXAResource() { return xaResource; }
57,183
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); //ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { conn.close(); ServerManagement.undeployQueue("Queue"); //ServerManagement.deInit(); super.tearDown(); }
57,185
public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } }
public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } }
57,186
public void deInit() { try { sess.close(); } catch (Exception e) { log.error("Receiver failed", e); failed = true; } }
public void deInit() { try { sess.close(); } catch (Exception e) { log.error("!!!!!!!!!!!!!!!!!!Close failed", e); failed = true; } }
57,187
public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, ackMode); cons = sess.createConsumer(dest, selector, noLocal); } catch (Exception e) { ...
public void init() { try { Connection conn = getNextConnection(); sess = conn.createSession(transacted, ackMode); if (subName == null) { cons = sess.createConsumer(dest, selector, noLocal); } else { cons = sess.createDurableSubscriber((T...
57,188
public void run() { try { log.info("Running receiver"); int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); ...
public void run() { try { int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); if...
57,189
public void run() { try { log.info("Running receiver"); int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); ...
public void run() { try { log.info("Running receiver"); int count = 0; while (count < (numMessages)) { Message m = cons.receive(RECEIVE_TIMEOUT); ...
57,190
protected void logInfo() { super.logInfo(); log.info("Acknowledgement Mode? " + ackMode); log.info("Durable subscription name: " + subName); log.info("Message selector: " + selector); log.info("No local?: " + noLocal); log.info("Use message listener? " + asynch); }
protected void logInfo() { super.logInfo(); log.info("Acknowledgement Mode? " + ackMode); log.info("Durable subscription name: " + subName); log.info("Message selector: " + selector); log.info("No local?: " + noLocal); log.info("Use message listener? " + asynch); }
57,191
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT); } valid = new Boolean(result); } return valid.booleanValue(); }
public boolean selfTest() { if (valid == null) { boolean result = super.selfTest(); // do symmetry tests if (result) { result = testKat(KAT_KEY, KAT_CT); } valid = Boolean.valueOf(result); } return valid.booleanValue(); }
57,192
public FloatedBlockContent(Element e, CalculatedStyle style) { _elem = e; _style = style; }
FloatedBlockContent(Element e, CascadedStyle style) { _elem = e; _style = style; }
57,193
public CalculatedStyle getStyle() { return _style; }
public CascadedStyle getStyle() { return _style; }
57,194
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { if (x >= 0 && y >= 0) { Rectangle r = getInsideAllocation(a); View view = getViewAtPoint((int) x, (int) y, r); return view.viewToModel(x, y, a, b); } return 0; }
public int viewToModel(float x, float y, Shape a, Position.Bias[] b) { if (x >= 0 && y >= 0) { Rectangle r = getInsideAllocation(a); View view = getViewAtPoint((int) x, (int) y, r); return view.viewToModel(x, y, r, b); } return 0; }
57,195
public BytesMessage createBytesMessage() throws JMSException { throw new NotYetImplementedException(); }
public BytesMessage createBytesMessage() throws JMSException { return delegate.createBytesMessage(); }
57,196
public MessageConsumer createConsumer(Destination d) throws JMSException { ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d); return new JBossMessageConsumer(consumerDelegate, d); }
public MessageConsumer createConsumer(Destination d) throws JMSException { ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d, null); return new JBossMessageConsumer(consumerDelegate, d); }
57,197
public MapMessage createMapMessage() throws JMSException { throw new NotYetImplementedException(); }
public MapMessage createMapMessage() throws JMSException { return delegate.createMapMessage(); }
57,198