bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ...
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ...
51,813
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ...
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ...
51,814
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ...
public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } synchronized (deliveryLock) { boolean removed = deliveries.remove(del); if (!removed) { //This is ok ...
51,815
protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() == fullSize - numberLoadable) { load(numberLoadable, false); ...
protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() <= fullSize - numberLoadable) { load(numberLoadable, false); ...
51,816
protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() == fullSize - numberLoadable) { load(numberLoadable, false); ...
protected void checkLoad() throws Throwable { if (refsInStorage > 0) { int numberLoadable = Math.min(refsInStorage, pageSize); if (messageRefs.size() == fullSize - numberLoadable) { load(numberLoadable); } ...
51,817
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushes downcache"); } pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); if (trace) { log.trace(this + " cleared downcache"); } }
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushes downcache"); } pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); if (trace) { log.trace(this + " cleared downcache"); } }
51,819
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushes downcache"); } pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); if (trace) { log.trace(this + " cleared downcache"); } }
protected void flushDownCache() throws Exception { if (trace) { log.trace(this + " flushes downcache"); } pm.addReferences(channel.getChannelID(), downCache); downCache.clear(); if (trace) { log.trace(this + " cleared downcache"); } }
51,820
public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(refsInStorage, true); } } }
public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(refsInStorage, true); } } }
51,821
public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(refsInStorage, true); } } }
public void load() throws Exception { synchronized (refLock) { refsInStorage = pm.getNumberOfReferences(channel.getChannelID()); if (refsInStorage > 0) { load(Math.min(refsInStorage, fullSize)); } } }
51,822
public MessageReference peekFirst() throws Throwable { synchronized (refLock) { return (MessageReference)messageRefs.peekFirst(); } }
public MessageReference peekFirst() throws Throwable { synchronized (refLock) { MessageReference ref = (MessageReference)messageRefs.peekFirst(); return ref; } }
51,823
public MessageReference removeFirstInMemory() throws Throwable { synchronized (refLock) { MessageReference result = (MessageReference)messageRefs.removeFirst(); checkLoad(); return (MessageReference)result; } }
public MessageReference removeFirstInMemory() throws Throwable { synchronized (refLock) { MessageReference result = (MessageReference)messageRefs.removeFirst(); checkLoad(); return (MessageReference)result; } }
51,824
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font, CascadedStyle firstLineStyle) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); ...
51,825
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
51,826
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
51,827
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
public static void prepBox(Context c, InlineBox box, InlineBox prev_align, Font font) { //u.p("box = " + box); //u.p("prev align = " + prev_align); Element elem = null; if (box.getNode() instanceof Element) { elem = (Element) box.getNode(); } else { elem = (E...
51,828
public Class getCategory() { return PrinterStateReason.class; }
public final Class getCategory() { return PrinterStateReason.class; }
51,829
public String getName() { return "printer-state-reason"; }
public final String getName() { return "printer-state-reason"; }
51,830
protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossBytesMessage m = new JBossBytesMessage(i, reliable, System.current...
protected Message createMessage(byte i, boolean reliable) throws Exception { HashMap coreHeaders = generateFilledMap(true); HashMap jmsProperties = generateFilledMap(false); JBossBytesMessage m = new JBossBytesMessage(i, reliable, System.current...
51,831
public void restyleTree( org.w3c.dom.Element elem ) { CalculatedStyle parent = null; // if this is the root, we will have no parent XRElement; otherwise // we will check to see if our parent was loaded. Since we expect to load // from root to leaves, we should always find...
public void restyleTree( org.w3c.dom.Element elem ) {CalculatedStyle parent = null;// if this is the root, we will have no parent XRElement; otherwise// we will check to see if our parent was loaded. Since we expect to load// from root to leaves, we should always find a parent// this means, however, that root will have...
51,832
public void restyleTree( org.w3c.dom.Element elem ) { CalculatedStyle parent = null; // if this is the root, we will have no parent XRElement; otherwise // we will check to see if our parent was loaded. Since we expect to load // from root to leaves, we should always find...
public void restyleTree( org.w3c.dom.Element elem ) { CalculatedStyle parent = null; // if this is the root, we will have no parent XRElement; otherwise // we will check to see if our parent was loaded. Since we expect to load // from root to leaves, we should always find...
51,833
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th...
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th...
51,834
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th...
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th...
51,835
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th...
protected Message getMessage() throws Exception { if (isListener) { long start = System.currentTimeMillis(); Message m = null; while (System.currentTimeMillis() - start < 1000) { if (theMessage != null) { m = theMessage; th...
51,836
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa...
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa...
51,838
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa...
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { while (count < numMessages) { Message m = getMessa...
51,839
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getTopicPostOfficeInstance(); destination.setPostOffice(postOffice); // We deploy any queues corresponding to pre-existing durable subscrip...
public synchronized void startService() throws Exception { super.startService(); try { postOffice = serverPeer.getTopicPostOfficeInstance(); destination.setPostOffice(postOffice); // We deploy any queues corresponding to pre-existing durable subscrip...
51,841
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); Rectangle clip = g.getClipBounds(); g.fillRect(0, 0, c.getWidth(), c.getHeight()); } paint(g, c); }
public void update(Graphics g, JComponent c) { if (c.isOpaque()) { g.setColor(c.getBackground()); g.fillRect(0, 0, c.getWidth(), c.getHeight()); } paint(g, c); }
51,842
WorkflowDescriptor() { }
public WorkflowDescriptor() { }
51,844
public Box findElementBox( int x, int y ) { return findElementBox( this.body_box, x, y ); }
public Box findElementBox( int x, int y ) { return findElementBox( this.body_box, x, y ); }
51,845
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,847
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,848
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,849
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,850
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,851
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,852
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,853
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo...
51,854
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight = new_inline.height; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics ...
51,855
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
51,856
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
51,857
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
51,858
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
51,859
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
static void adjustLineHeight(LayoutContext c, LineBox curr_line, InlineBox new_inline) { int lineHeight; int ascent; int descent; if (new_inline instanceof InlineTextBox && !((InlineTextBox) new_inline).getSubstring().equals("")) { // should be the metrics of the font, actuall...
51,860
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, LayoutContext c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = 0;...
private static void prepareBox(InlineBox prev_align, InlineTextBox inline, LayoutContext c) { if (prev_align != null && !prev_align.break_after && !inline.break_before ) { inline.x = prev_align.x + prev_align.getWidth(); } else { inline.x = 0;...
51,862
public void paint(Graphics g) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); super.paint(g); }
public void paint(Graphics g) { g.setColor(getBackground()); g.fillRect(clip.x, clip.y, clip.width, clip.height); g.setColor(oldColor); } super.paint(g); }
51,863
void start(String containerConfig) throws Exception;
void start(String containerConfig) throws Exception;
51,864
public AboutBox(String text, String url) { super(); u.p("starting the about box"); setTitle(text); HTMLPanel panel = new HTMLPanel(); int w = 400; int h = 500; panel.setPreferredSize(new Dimension(w,h)); scroll = new JScrollPane(panel); scroll.s...
public AboutBox(String text, String url) { super(); u.p("starting the about box"); setTitle(text); HTMLPanel panel = new HTMLPanel(); int w = 400; int h = 500; panel.setPreferredSize(new Dimension(w,h)); scroll = new JScrollPane(panel); scroll.s...
51,865
public static void main(String[] args) { JFrame frame = new JFrame("About Box Test"); frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); JButton launch = new JButton("Show About Box"); frame.getContentPane().add(launch); frame.pack(); frame.setVisible(true); ...
public static void main(String[] args) { JFrame frame = new JFrame("About Box Test"); frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE); JButton launch = new JButton("Show About Box"); frame.getContentPane().add(launch); frame.pack(); frame.setVisible(true); ...
51,866
public void actionPerformed(ActionEvent evt) { AboutBox ab = new AboutBox("About Flying Saucer","demo:demos/about/index.xhtml"); ab.setVisible(true); }
public void actionPerformed(ActionEvent evt) { AboutBox ab = new AboutBox("About Flying Saucer","demo:demos/index.xhtml"); ab.setVisible(true); }
51,867
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "BlockBox:" ); sb.append( super.toString() ); if ( this.fixed ) { sb.append( " position: fixed" ); } if ( this.right_set ) { sb.append( " right = " + this.right ); } ...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "BlockBox:" ); sb.append( super.toString() ); if ( this.fixed ) { sb.append( " position: fixed" ); } if ( this.right_set ) { sb.append( " right = " + this.right ); } ...
51,869
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "BlockBox:" ); sb.append( super.toString() ); if ( this.fixed ) { sb.append( " position: fixed" ); } if ( this.right_set ) { sb.append( " right = " + this.right ); } ...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "BlockBox:" ); sb.append( super.toString() ); if ( this.fixed ) { sb.append( " position: fixed" ); } if ( this.right_set ) { sb.append( " right = " + this.right ); } ...
51,870
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "BlockBox:" ); sb.append( super.toString() ); if ( this.fixed ) { sb.append( " position: fixed" ); } if ( this.right_set ) { sb.append( " right = " + this.right ); } ...
public String toString() { StringBuffer sb = new StringBuffer(); sb.append( "BlockBox:" ); sb.append( super.toString() ); if ( this.fixed ) { sb.append( " position: fixed" ); } if ( this.right_set ) { sb.append( " right = " + this.right ); } ...
51,871
public void testDeployDestinationAdministratively() throws Exception { ObjectName serverPeerObjectName = ServerManagement.getServerPeerObjectName(); String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=Kirkwoo...
public void testDeployDestinationAdministratively() throws Exception { ObjectName serverPeerObjectName = ServerManagement.getServerPeerObjectName(); String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=Kirkwoo...
51,872
public void testDeployDestinationProgramatically() throws Exception { ObjectName serverPeerObjectName = ServerManagement.getServerPeerObjectName(); String destinationType = isQueue() ? "Queue" : "Topic"; String createMethod = "create" + destinationType; String destroyMethod = "destroy" + destin...
public void testDeployDestinationProgramatically() throws Exception { ObjectName serverPeerObjectName = ServerManagement.getServerPeerObjectName(); String destinationType = isQueue() ? "Queue" : "Topic"; String createMethod = "create" + destinationType; String destroyMethod = "destroy" + destin...
51,873
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,874
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,875
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,876
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,877
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,878
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,879
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,880
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,881
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,882
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,883
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
public void testPageableChannelAttributes() throws Exception { String config = "<mbean code=\"org.jboss.jms.server.destination.@TOREPLACE@\" " + " name=\"somedomain:service=@TOREPLACE@,name=PageableAttributes\"" + " xmbean-dd=\"xmdesc/@TOREPLACE@-xmbean.xml\">" + " ...
51,884
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); //Create the message handler SessionState sessState = (SessionState)((DelegateSup...
public Object handleCreateConsumerDelegate(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; boolean isCC = ((Boolean)mi.getArguments()[4]).booleanValue(); //Create the message handler SessionState sessState = (SessionState)((DelegateSup...
51,885
public void setUndecorated (boolean undecorated) { if (!isDisplayable ()) throw new IllegalComponentStateException (); this.undecorated = undecorated; }
public void setUndecorated (boolean undecorated) { if (isDisplayable ()) throw new IllegalComponentStateException (); this.undecorated = undecorated; }
51,886
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
51,887
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
51,888
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);}
51,889
public synchronized void start() throws Exception { if (started) { return; } if (log.isTraceEnabled()) { log.trace(this + " starting"); } mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new ClientManager(this); destinat...
public synchronized void start() throws Exception { if (started) { return; } log.debug(this + " starting"); mbeanServer = findMBeanServer(); transactionManager = findTransactionManager(); clientManager = new ClientManager(this); destinationManager = new DestinationMa...
51,890
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
51,891
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
51,892
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 0 || pageNo >= root.getPages().size()) { throw new IllegalArgumentException("Page " + pageN...
51,893
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions( c, Layer.PAGED_MODE_SCREEN, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE...
51,894
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ...
51,895
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
51,898
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
51,899
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
51,900
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
public synchronized RawReply submit() throws ForwardRequest { gnu.CORBA.GIOP.MessageHeader header = new gnu.CORBA.GIOP.MessageHeader(); header.setBigEndian(Big_endian); // The byte order will be Big Endian by default. header.message_type = gnu.CORBA.GIOP.MessageHeader.REQUEST; header.version = useV...
51,901
public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number...
public void write(java.io.OutputStream out) { try { AbstractDataOutput dout; if (isBigEndian()) dout = new BigEndianOutputStream(out); else dout = new LittleEndianOutputStream(out); // Write magic sequence. dout.write(MAGIC); // Write version number...
51,902
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
public void read(java.io.InputStream istream) throws MARSHAL, EOFException { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.G...
51,903
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
51,904
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
public void read(java.io.InputStream istream) throws MARSHAL { try { byte[] xMagic = new byte[MAGIC.length]; istream.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) { MARSHAL m = new MARSHAL("Not a GIOP message"); m.minor = Minor.Giop; ...
51,905
public Object invoke(Invocation invocation) throws Throwable { if (!(invocation instanceof MethodInvocation)) { return invocation.invokeNext(); } MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); Object[] args = mi.ge...
if (log.isTraceEnabled()) { log.trace("Calling afterSend"); } if (log.isTraceEnabled()) { log.trace("Calling afterSend"); } if (log.isTraceEnabled()) { log.trace("Calling afterSend"); } public if (log.isTraceEnabled()) { log.trace("Calling afterSend"); } Object if (log.isTraceEnabled()) { log.trace("Calling afterSen...
51,908
public static Image getImage(Context c, Node node) { if (node.getNodeType() != node.ELEMENT_NODE) { return null; } String src = ((Element) node).getAttribute("src"); Image img = null; try { img = ImageUtil.loadImage(c, src); } catch (Exception ex) { ...
public static Image getImage(Context c, Node node) { if (node.getNodeType() != Node.ELEMENT_NODE) { return null; } String src = ((Element) node).getAttribute("src"); Image img = null; try { img = ImageUtil.loadImage(c, src); } catch (Exception ex) { ...
51,909
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = readDestination(in); replyToDestination = readDestination(in); jmsType = readString(in); Map m = readMap(in, true); if (!(m instanceof HashMap)) ...
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { super.readExternal(in); destination = readDestination(in); replyToDestination = readDestination(in); jmsType = readString(in); Map m = readMap(in, true); if (!(m instanceof HashMap)) ...
51,910
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); writeDestination(out, destination); writeDestination(out, replyToDestination); writeString(out, jmsType); writeMap(out, properties, true); if (correlationID == null && co...
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); writeDestination(out, destination); writeDestination(out, replyToDestination); writeString(out, jmsType); writeMap(out, properties, true); if (correlationID == null && co...
51,911
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
51,912
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); initialContext = new InitialContext(ServerManagement.getJNDIEnvironment()); cf = (JBossConnectionFactory)initialContext.lookup("/ConnectionFactory"); ServerManagement.undeployQueue("Queue"); Ser...
51,913
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
51,915
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
public KeyPair generate() { if (p == null) { BigInteger[] params = new RFC2631(m, l, rnd).generateParameters(); seed = params[RFC2631.DH_PARAMS_SEED]; counter = params[RFC2631.DH_PARAMS_COUNTER]; q = params[RFC2631.DH_PARAMS_Q]; p = params[RFC2631.DH_PARAMS_P]; j = p...
51,916
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out...
public void setup(Map attributes) { // do we have a SecureRandom, or should we use our own? rnd = (SecureRandom) attributes.get(SOURCE_OF_RANDOMNESS); // are we given a set of Diffie-Hellman generation parameters or we shall // use our own? Object params = attributes.get(DH_PARAMETERS); // find out...
51,917
public void run() { try { if (log.isTraceEnabled()) { log.trace("activating consumer endpoint"); } consumerDelegate.activate(); } catch(Throwable t) { log.error("Consumer endpoint activation failed", t); if (t.getCause() != n...
public void run() { try { if (log.isTraceEnabled()) { log.trace("activating consumer endpoint"); } consumerDelegate.activate(); } catch(Throwable t) { log.error("Consumer endpoint activation failed", t); if (t.getCause() != n...
51,919
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); activationLock = new Object(); this.ackMode = ackMode; thi...
public MessageCallbackHandler(boolean isCC, int ackMode, Executor executor, Executor pooledExecutor, SessionDelegate sess, ConsumerDelegate cons, int consumerID) { buffer = new SynchronousChannel(); isConnectionConsumer = isCC; receiverLock = new Object(); activationLock = ne...
51,920
protected void activateConsumer() throws JMSException { // We execute this on a separate thread to avoid the case where the asynchronous delivery // arrives before we have returned from the synchronus call, which would cause us to lose // the message try { if (log.isTraceEnab...
protected void activateConsumer() throws JMSException { // We execute this on a separate thread to avoid the case where the asynchronous delivery // arrives before we have returned from the synchronus call, which would cause us to lose // the message try { if (trace) { log.tr...
51,922
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, int consumerID, boolean isConnectionConsumer, ...
51,923
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
51,924
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String consumerID, boolean isConnectionConsumer, ...
51,925
protected Message getMessageNow() throws JMSException { MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(); if (del != null) { return processMessage(del); } else { return null; } }
protected Message getMessageNow() throws JMSException { MessageDelegate del = (MessageDelegate)consumerDelegate.getMessageNow(false); if (del != null) { return processMessage(del); } else { return null; } }
51,926