bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public void writeDouble(double value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Double(value)); }
public void writeDouble(double value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Double(value)); }
35,065
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeBoolean(bodyWriteOnly); out.writeObject(((List)payload)); out.writeInt(position); out.writeInt(offset); out.writeInt(size); }
public void writeExternal(ObjectOutput out) throws IOException { super.writeExternal(out); out.writeObject(((List)payload)); out.writeInt(position); out.writeInt(offset); out.writeInt(size); }
35,066
public void writeFloat(float value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Float(value)); }
public void writeFloat(float value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Float(value)); }
35,067
public void writeInt(int value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Integer(value)); }
public void writeInt(int value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Integer(value)); }
35,068
public void writeLong(long value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Long(value)); }
public void writeLong(long value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Long(value)); }
35,069
public void writeObject(Object value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) ((List)payload).add(null); else if (value instanceof Boolean) ((List)payload).add(value); else if (v...
public void writeObject(Object value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) ((List)payload).add(null); else if (value instanceof Boolean) ((List)payload).add(value); else if (val...
35,070
public void writeShort(short value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Short(value)); }
public void writeShort(short value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); ((List)payload).add(new Short(value)); }
35,071
public void writeString(String value) throws JMSException { if (!bodyWriteOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) ((List)payload).add(null); else ((List)payload).add(value); }
public void writeString(String value) throws JMSException { if (bodyReadOnly) throw new MessageNotWriteableException("The message body is readonly"); if (value == null) ((List)payload).add(null); else ((List)payload).add(value); }
35,072
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" ...
protected void setUpConnection() throws Throwable { if (log.isTraceEnabled()) { log.trace("Connecting with server URI:" + serverLocator); } String params = "/?marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" + "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat&" ...
35,074
public int getLeftDownDistance(Box box) { for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; }
public int getLeftDownDistance(Box box) { for(int i=0; i< left_floats.size(); i++) { Box floater = (Box) left_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; }
35,075
public int getRightDownDistance(Box box) { for(int i=0; i< right_floats.size(); i++) { Box floater = (Box) right_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; }
public int getRightDownDistance(Box box) { for(int i=0; i< right_floats.size(); i++) { Box floater = (Box) right_floats.get(i); if(floater.y + floater.height > box.y) { return floater.y + floater.height; } } return 0; }
35,077
public String toString() { return "InlineBox text = \"" + getText() + "\" bnds = " + x + "," + y + " - " + width + "x" + height + " start = " + this.start_index + " end = " + this.end_index + " baseline = " + this.baseline + " vset = " + this.vset + // CLN:...
public String toString() { return "InlineBox text = \"" + getSubstring() + "\" bnds = " + x + "," + y + " - " + width + "x" + height + " start = " + this.start_index + " end = " + this.end_index + " baseline = " + this.baseline + " vset = " + this.vset + //...
35,081
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume...
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume...
35,082
public DurableSubscription(String subName, Topic topic, String selector, MessageStore ms, PersistenceManager pm) { super(topic, selector, ms, pm); this.subName = subName; }
public DurableSubscription(String clientID, String subName, Topic topic, String selector, MessageStore ms, PersistenceManager pm) { super(topic, selector, ms, pm); this.subName = subName; }
35,084
public DurableSubscription(String subName, Topic topic, String selector, MessageStore ms, PersistenceManager pm) { super(topic, selector, ms, pm); this.subName = subName; }
public DurableSubscription(String subName, Topic topic, String selector, MessageStore ms, PersistenceManager pm) { super(clientID + "." + subName, topic, selector, ms, pm); this.subName = subName; }
35,085
public Object nextElement () throws NoSuchElementException { if (where + 1 >= values.size ()) throw new NoSuchElementException ("no more elements"); ++where; return values.get (where); }
public Object nextElement () throws NoSuchElementException { if (where == values.size ()) throw new NoSuchElementException ("no more elements"); ++where; return values.get (where); }
35,086
public Object nextElement () throws NoSuchElementException { if (where + 1 >= values.size ()) throw new NoSuchElementException ("no more elements"); ++where; return values.get (where); }
public Object nextElement () throws NoSuchElementException { if (where + 1 >= values.size ()) throw new NoSuchElementException ("no more elements"); ++where; return values.get (where); }
35,087
Object execute(PostOfficeInternal office) throws Throwable { TransactionId id = new TransactionId(nodeId, txId); if (hold) { List dels = office.getDeliveries(queueName, numMessages); PullMessagesResponse response = new PullMessagesResponse(dels.size()); ...
Object execute(PostOfficeInternal office) throws Throwable { TransactionId id = new TransactionId(nodeId, txId); if (hold) { List dels = office.getDeliveries(queueName, numMessages); PullMessagesResponse response = new PullMessagesResponse(dels.size()); ...
35,088
public void read(DataInputStream in) throws Exception { queueName = in.readUTF(); numMessages = in.readInt(); }
public void read(DataInputStream in) throws Exception { super.read(in); numMessages = in.readInt(); }
35,089
public void read(DataInputStream in) throws Exception { queueName = in.readUTF(); numMessages = in.readInt(); }
public void read(DataInputStream in) throws Exception { queueName = in.readUTF(); if (hold) { queueName = in.readUTF(); numMessages = in.readInt(); } }
35,090
public void write(DataOutputStream out) throws Exception { out.writeUTF(queueName); out.writeInt(numMessages); }
public void write(DataOutputStream out) throws Exception { super.write(out); out.writeInt(numMessages); }
35,091
public void write(DataOutputStream out) throws Exception { out.writeUTF(queueName); out.writeInt(numMessages); }
public void write(DataOutputStream out) throws Exception { out.writeUTF(queueName); if (hold) { out.writeUTF(queueName); out.writeInt(numMessages); } }
35,092
public void loadPreparedTransactions() throws TransactionException { List prepared = null; try { pm.retrievePreparedTransactions(); } catch (Exception e) { throw new TransactionException("Failed to retrieve prepared transactions", e); } if (prepar...
public void loadPreparedTransactions() throws TransactionException { List prepared = null; try { prepared = pm.retrievePreparedTransactions(); } catch (Exception e) { throw new TransactionException("Failed to retrieve prepared transactions", e); } ...
35,093
public void paintInline(RenderingContext c) { if (getParent().getStyle().isHidden()) { return; } if (textDecoration != null) { paintTextDecoration(c); } if (c.debugDrawLineBoxes()) { Color oldColor = c.getGraphics().getColor(); ...
public void paintInline(RenderingContext c) { if (! getParent().getStyle().isVisible()) { return; } if (textDecoration != null) { paintTextDecoration(c); } if (c.debugDrawLineBoxes()) { Color oldColor = c.getGraphics().getColor(); ...
35,095
public synchronized void start() throws Exception { if (started) { return; } //Needs to be daemon timer = new Timer(true); //Add a random delay to prevent all timers starting at once long delay = (long)(period * Math.random()); TimerTask task = new ...
public synchronized void start() throws Exception { if (started) { return; } //Needs to be daemon timer = new Timer(true); //Add a random delay to prevent all timers starting at once long delay = (long)(period * Math.random()); task = new SendStatsT...
35,097
public synchronized void start() throws Exception { if (started) { return; } //Needs to be daemon timer = new Timer(true); //Add a random delay to prevent all timers starting at once long delay = (long)(period * Math.random()); TimerTask task = new ...
public synchronized void start() throws Exception { if (started) { return; } //Needs to be daemon timer = new Timer(true); //Add a random delay to prevent all timers starting at once long delay = (long)(period * Math.random()); TimerTask task = new ...
35,098
private void calcBorders( CalculatedStyle style ) { // HACK: may need to remove this check if sizes can change dynamically on resize (patrick) if ( haveBorders ) { return; } if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" ); ...
private void calcBorders( CalculatedStyle style ) { // HACK: may need to remove this check if sizes can change dynamically on resize (patrick) /*if ( haveBorders ) { return; } if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" ); ...
35,100
private void calcBorders( CalculatedStyle style ) { // HACK: may need to remove this check if sizes can change dynamically on resize (patrick) if ( haveBorders ) { return; } if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" ); ...
private void calcBorders( CalculatedStyle style ) { // HACK: may need to remove this check if sizes can change dynamically on resize (patrick) if ( haveBorders ) { return; } if ( style == null ) { throw new XRRuntimeException( "cant calc borders with no style" ); ...
35,101
public static void checkExceeds(Box block) { Box parent = block.getParent(); if (parent != null) { // FIXME Not right, for example // <div style="height: 3in; width: 1in;"> // <div> // <div style="height 5in; width: 1in;"> // </div> ...
public static void checkExceeds(Box block) { Box parent = block.getParent(); if (parent != null) { // FIXME Not right, for example // <div style="height: 3in; width: 1in;"> // <div> // <div style="height 5in; width: 1in;"> // </div> ...
35,102
private static void checkPageBreakBefore(Context c, Box block) { if (c.isPrint()) { if ((c.isPendingPageBreak() || c.getCurrentStyle().propertyByName(CSSName.PAGE_BREAK_BEFORE).isIdent(IdentValue.ALWAYS))) { block.moveToNextPage(c, false); block.set...
private static void checkPageBreakBefore(Context c, Box block) { if (c.isPrint()) { if ((c.isPendingPageBreak() || c.getCurrentStyle().propertyByName(CSSName.PAGE_BREAK_BEFORE).isIdent(IdentValue.ALWAYS))) { block.moveToNextPage(c, false); block.get...
35,103
public void handleEvent(AWTEvent e) { Unsafe.debug("handleEvent(" + e + ")"); // log.debug("handleEvent(" + e + ")"); }
public void handleEvent(AWTEvent e) { Unsafe.debug("handleEvent(" + e + ")"); // log.debug("handleEvent(" + e + ")"); }
35,105
private Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); ...
private Context newContext(Graphics2D g) { XRLog.layout(Level.FINEST, "new context begin"); getContext().setCanvas(this); getContext().setGraphics(g); Rectangle extents; if (enclosingScrollPane != null) { Rectangle bnds = enclosingScrollPane.getViewportBorderBounds(); ...
35,107
public void add(MessageReference ref, Transaction tx) throws Throwable { //We synchronize on the ref to prevent a message being removed from memory //and failing on attempting to remove from db, because it tries after the message //is added to memory but before it's been added to db synchronize...
public void add(MessageReference ref, Transaction tx) throws Throwable { //We synchronize on the ref to prevent a message being removed from memory //and failing on attempting to remove from db, because it tries after the message //is added to memory but before it's been added to db synchronize...
35,108
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getReference(messageID); messageRefs.addLast(...
public void load() throws Exception { List refs = pm.messageRefs(storeID, channelID); Iterator iter = refs.iterator(); while (iter.hasNext()) { String messageID = (String)iter.next(); MessageReference ref = messageStore.getReference(messageID); messageRefs.addLast(...
35,110
public void acknowledge() throws JMSException { throw new NotYetImplementedException(); }
public void acknowledge() throws JMSException { throw new NotYetImplementedException(); }
35,111
public void clearBody() throws JMSException { throw new NotYetImplementedException(); }
public void clearBody() throws JMSException { }
35,112
public void clearProperties() throws JMSException { throw new NotYetImplementedException(); }
public void clearProperties() throws JMSException { properties.clear(); }
35,113
public boolean getBooleanProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public boolean getBooleanProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return Boolean.valueOf(null).booleanValue(); if (value instanceof Boolean) return ((Boolean) value).booleanValue(); else if (value instanceof String) return Boolean.valueOf((String) va...
35,114
public byte getByteProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public byte getByteProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).byteValue(); else if (value instanceof String) return Byte.parse...
35,115
public double getDoubleProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public double getDoubleProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return Double.valueOf(null).doubleValue(); if (value instanceof Float) return ((Float) value).doubleValue(); else if (value instanceof Double) return ((Double) value).doubleValue(); else...
35,116
public float getFloatProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public float getFloatProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return Float.valueOf(null).floatValue(); if (value instanceof Float) return ((Float) value).floatValue(); else if (value instanceof String) return Float.parseFloat((String) value); else th...
35,117
public int getIntProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public int getIntProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).intValue(); else if (value instanceof Short) return ((Short) value...
35,118
public long getLongProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public long getLongProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).longValue(); else if (value instanceof Short) return ((Short) va...
35,119
public Object getObjectProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public Object getObjectProperty(String name) throws JMSException { Object value = properties.get(name); return value; }
35,120
public Enumeration getPropertyNames() throws JMSException { throw new NotYetImplementedException(); }
public Enumeration getPropertyNames() throws JMSException { Enumeration names = Collections.enumeration(properties.keySet()); return names; }
35,121
public short getShortProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public short getShortProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) throw new NumberFormatException("Message property '" + name + "' not set."); if (value instanceof Byte) return ((Byte) value).shortValue(); else if (value instanceof Short) return ((Short)...
35,122
public String getStringProperty(String name) throws JMSException { throw new NotYetImplementedException(); }
public String getStringProperty(String name) throws JMSException { Object value = properties.get(name); if (value == null) return null; if (value instanceof Boolean) return ((Boolean) value).toString(); else if (value instanceof Byte) return ((Byte) value).toString(); else if (value instanceof Short) return ...
35,123
public boolean propertyExists(String name) throws JMSException { throw new NotYetImplementedException(); }
public boolean propertyExists(String name) throws JMSException { return properties.containsKey(name); }
35,124
public void setBooleanProperty(String name, boolean value) throws JMSException { throw new NotYetImplementedException(); }
public void setBooleanProperty(String name, boolean value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Boolean b = Primitives.valueOf(value); checkProperty(name, b); properties.put(name, b); }
35,125
public void setByteProperty(String name, byte value) throws JMSException { throw new NotYetImplementedException(); }
public void setByteProperty(String name, byte value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Byte b = new Byte(value); checkProperty(name, b); properties.put(name, b); }
35,126
public void setDoubleProperty(String name, double value) throws JMSException { throw new NotYetImplementedException(); }
public void setDoubleProperty(String name, double value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Double d = new Double(value); checkProperty(name, d); properties.put(name, d); }
35,127
public void setFloatProperty(String name, float value) throws JMSException { throw new NotYetImplementedException(); }
public void setFloatProperty(String name, float value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Float f = new Float(value); checkProperty(name, f); properties.put(name, f); }
35,128
public void setIntProperty(String name, int value) throws JMSException { throw new NotYetImplementedException(); }
public void setIntProperty(String name, int value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Integer i = new Integer(value); checkProperty(name, i); properties.put(name, i); }
35,129
public void setLongProperty(String name, long value) throws JMSException { throw new NotYetImplementedException(); }
public void setLongProperty(String name, long value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Long l = new Long(value); checkProperty(name, l); properties.put(name, l); }
35,130
public void setObjectProperty(String name, Object value) throws JMSException { throw new NotYetImplementedException(); }
public void setObjectProperty(String name, Object value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); if (value instanceof Boolean) properties.put(name, value); else if (value instanceof Byte) properties.put(name, ...
35,131
public void setShortProperty(String name, short value) throws JMSException { throw new NotYetImplementedException(); }
public void setShortProperty(String name, short value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); Short s = new Short(value); checkProperty(name, s); properties.put(name, s); }
35,132
public void setStringProperty(String name, String value) throws JMSException { throw new NotYetImplementedException(); }
public void setStringProperty(String name, String value) throws JMSException { if (!messageReadWrite) throw new MessageNotWriteableException("Properties are read-only"); checkProperty(name, value); this.properties.put(name, value); }
35,133
public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, Version versionToUse, MessageIdGenerator gen) throws Exception { super(null, (DelegateSupport)delegate); if (log.isTraceEnabled()) { log.trace...
public ConnectionState(int serverID, ConnectionDelegate delegate, JMSRemotingConnection remotingConnection, ConsolidatedRemotingConnectionListener remotingConnectionListener, Version versionToUse, MessageIdGenerator gen) throws Exception { super(null, (De...
35,134
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public synchronized void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has di...
35,136
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
35,137
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
public void handleConnectionException(Throwable t, Client client) { String remotingSessionID = client.getSessionId(); if (t instanceof ClientDisconnectedException) { // This is OK if (log.isTraceEnabled()) { log.trace(this + " notified that client " + client + " has disconnected");...
35,138
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
public synchronized void registerConnection(String jmsClientId, String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID));...
35,139
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { connections.put(remotingClientSessionID, endpoint); log.debug("registered connection " + endpoint + " as " + Util.guidToString(remotingClientSessionID)); }
public void registerConnection(String remotingClientSessionID, ServerConnectionEndpoint endpoint) { Map endpoints = (Map)jmsClients.get(jmsClientId); if (endpoints == null) { endpoints = new HashMap(); jmsClients.put(jmsClientId, endpoints); } endpoints.put(remotingClientSessionID, endpoint); sessions....
35,140
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
public synchronized ServerConnectionEndpoint unregisterConnection(String jmsClientId, String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + ...
35,141
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
public ServerConnectionEndpoint unregisterConnection(String remotingClientSessionID) { ServerConnectionEndpoint e = (ServerConnectionEndpoint)connections.remove(remotingClientSessionID); log.debug("unregistered connection " + e + " with remoting session ID " + Util.guidToString(rem...
35,142
public void setDocument(String filename) throws Exception { setDocument(x.loadDocument(filename),new File(filename).toURL()); }
public void setDocument(String filename) throws Exception { URL url = new File(filename).toURL(); setDocument(loadDocument(url),url); }
35,143
public static void layoutContent(LayoutContext c, Box box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); Lin...
public static void layoutContent(LayoutContext c, BlockBox box, List contentList) { int maxAvailableWidth = c.getExtents().width; int remainingWidth = maxAvailableWidth; int minimumLineHeight = (int) c.getCurrentStyle().getLineHeight(c); LineBox currentLine = newLine(c, null, box); ...
35,144
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
35,145
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
35,146
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
private static int processOutOfFlowContent(LayoutContext c, Content content, LineBox current, int available, List pendingFloats) { int result = 0; c.pushStyle(content.getStyle()); if (content instanceof AbsolutelyPositionedContent) { BlockBox abs = LayoutUtil.generateAbsolute(c, cont...
35,147
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, ...
35,148
protected ChannelSupport(Serializable channelID, MessageStore ms, TransactionLog tl, boolean acceptReliableMessages) { if (log.isTraceEnabled()) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "chan...
protected ChannelSupport(Serializable channelID, MessageStore ms, TransactionLog tl, boolean acceptReliableMessages) { if (trace) { log.trace("creating " + (tl != null ? "recoverable " : "non-recoverable ") + "channel[" + channel...
35,150
public void acknowledge(Delivery d, Transaction tx) { if (tx == null) { // acknowledge non transactionally acknowledgeNoTx(d); return; } if (log.isTraceEnabled()){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } ...
public void acknowledge(Delivery d, Transaction tx) { if (tx == null) { // acknowledge non transactionally acknowledgeNoTx(d); return; } if (trace){ log.trace("acknowledge " + d + (tx == null ? " non-transactionally" : " transactionally in " + tx)); } try { ...
35,152
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + "...
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (trace){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + " delivery " + d...
35,153
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (log.isTraceEnabled()) { log.trace(this + "...
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace(this + " acknowledging non transactionally " + d); } try { //We remove the delivery from the state state.acknowledge(d); if (trace) { log.trace(this + " delivery " + d...
35,154
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
public boolean add(Receiver r) { if (trace) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
35,155
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (log.isTraceEnabled()) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace(this + ": attempting to add receiver " + r); } boolean added = router.add(r); if (trace) { log.trace("receiver " + r + (added ? "" : " NOT") + " added"); } return added; }
35,156
public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
public void cancel(Delivery d) throws Throwable { if (trace) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
35,157
public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
public void cancel(Delivery d) throws Throwable { if (log.isTraceEnabled()) { log.trace("cancel " + d); } state.cancelDelivery(d); if (trace) { log.trace(this + " marked message " + d.getReference() + " as undelivered"); } }
35,158
public boolean deliver(Receiver r) { if (log.isTraceEnabled()){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Fa...
public boolean deliver(Receiver r) { if (trace){ log.trace(r != null ? r + " requested delivery on " + this : "generic delivery requested on " + this); } checkClosed(); try { return deliver(this, r); } catch (Throwable t) { log.error("Failed to deliver...
35,159
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (trace){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } // don't even att...
35,160
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
public Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { checkClosed(); if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } //...
35,161
public boolean remove(Receiver r) { boolean removed = router.remove(r); if (log.isTraceEnabled()) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); } return removed; }
public boolean remove(Receiver r) { boolean removed = router.remove(r); if (trace) { log.trace(this + (removed ? " removed ":" did NOT remove ") + r); } return removed; }
35,162
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
public static void paintAbsoluteBox(Context c, Box block, boolean restyle) { Rectangle rect = c.getExtents(); //why this? int xoff = 0; int yoff = 0; //Uu.p("xoff = " + xoff + " yoff = " + yoff); BlockFormattingContext bfc = c.getBlockFormattingContext(); //Uu.p("bfc = " + bfc...
35,163
public void testChannelShareNP_Transactional() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = ne...
public void testChannelShareNP_Transactional() throws Throwable { Queue queue1 = new Queue(1, ms, pm, true, true, 100, 20, 10, new QueuedExecutor(), null); Queue queue2 = new Queue(2, ms, pm, true, true, 50, 10, 5, new QueuedExecutor(), null); Message[] msgs = ne...
35,164
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
35,165
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
void addCoreDestination(Destination jmsDestination) throws JMSException { JBossDestination d = (JBossDestination)jmsDestination; String name = d.getName(); boolean isQueue = d.isQueue(); Distributor c = getCoreDestination(isQueue, name); if (c != null) { throw new JMSException...
35,167
Distributor removeCoreDestination(boolean isQueue, String name) { ServerPeer sp = destinationManager.getServerPeer(); try { sp.getPersistenceManager().removeAllMessageData(name); //FIXME - Also need to remove any message refs stored in memory for this destination ...
Distributor removeCoreDestination(boolean isQueue, String name) { ServerPeer sp = destinationManager.getServerPeer(); try { sp.getPersistenceManager().removeAllMessageData(name); //FIXME - Also need to remove any message refs stored in memory for this destination ...
35,168
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
35,169
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
private void initializeRemoting(MBeanServer mbeanServer) throws Exception { //We explicitly associate the datatype "jms" with the java SerializationManager //This is vital for performance reasons. SerializationStreamFactory.setManagerClassName( "jms", "org.jboss.remoting.serialization.impl.j...
35,170
public synchronized void stopService() throws Exception { if (!started) { return; } log.debug(this + " stopping"); started = false; removeRecoverable(); // remove the JMS subsystem invocation handler getServer().invoke(connectorName, "removeInvocationHandler", ...
public synchronized void stopService() throws Exception { if (!started) { return; } log.debug(this + " stopping"); started = false; removeRecoverable(); // remove the JMS subsystem invocation handler getServer().invoke(connectorName, "removeInvocationHandler", ...
35,171
protected boolean prepare(ImageObserver observer) { if (!productionStarted) { loadInitImage(false, observer); } else if ((availableInfo & ImageObserver.ERROR) != 0) { if (observer != null) { observer.imageUpdate(this, availableInfo, -1, -1, -1, -1); } } else { new ForwardingProducer(observer).startProduc...
public boolean prepare(ImageObserver observer) { if (!productionStarted) { loadInitImage(false, observer); } else if ((availableInfo & ImageObserver.ERROR) != 0) { if (observer != null) { observer.imageUpdate(this, availableInfo, -1, -1, -1, -1); } } else { new ForwardingProducer(observer).startProductio...
35,172
public ServerConnectionDelegate(ServerPeer serverPeer) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); receivers = new ConcurrentReaderHashMap(); }
public ServerConnectionDelegate(ServerPeer serverPeer, String clientID) { this.serverPeer = serverPeer; sessionIDCounter = 0; sessions = new HashMap(); temporaryDestinations = new HashSet(); started = false; connectionID = new GUID().toString(); receivers = new ConcurrentReaderHa...
35,174
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
void sendMessage(Message m) throws JMSException { //The JMSDestination header must already have been set for each message JBossDestination jmsDestination = (JBossDestination)m.getJMSDestination(); if (jmsDestination == null) { throw new IllegalStateException("JMSDestination header not s...
35,176
public void unsubscribe(String subscriptionName) throws JMSException { DurableSubscriptionHolder subscription = this.serverPeer.getClientManager(). removeDurableSubscription(this.clientID, subscriptionName); if (subscription == null) { throw new JMSException("Cannot find durable s...
public void unsubscribe(String subscriptionName) throws JMSException { DurableSubscriptionHolder subscription = this.serverPeer.getClientManager(). removeDurableSubscription(this.clientID, subscriptionName); if (subscription == null) { throw new InvalidDestinationException("Cannot...
35,179
public static Icon getCheckBoxMenuItemIcon() { return getCheckBoxIcon(); }
public static Icon getCheckBoxMenuItemIcon() { return new CheckBoxMenuItemIcon(); }
35,180
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); }
public ClientBrowserDelegate(String objectID) { super(objectID, locator); }
35,181
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID, locator); }
public ClientBrowserDelegate(String objectID, InvokerLocator locator) { super(objectID); }
35,182
protected Serializable readPayloadExternal(ObjectInput in) throws IOException, ClassNotFoundException { return (Serializable)in.readObject(); }
protected Serializable readPayloadExternal(ObjectInput in) throws IOException, ClassNotFoundException { byte b = in.readByte(); if (b == NULL) { return null; } else { return (Serializable)in.readObject(); } }
35,183
protected void writePayloadExternal(ObjectOutput out) throws IOException { out.writeObject(payload); }
protected void writePayloadExternal(ObjectOutput out) throws IOException { if (payload == null) { out.writeByte(NULL); } else { out.writeByte(OBJECT); out.writeObject(payload); } }
35,184