bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
44,592
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
public Object read(InputStream in, Map map) throws IOException, ClassNotFoundException { if (in instanceof JBossObjectInputStream) { // Need to explicitly set the classloader ((JBossObjectInputStream)in). setClassLoader(Thread.currentThread().getContextClassLoader()); ...
44,593
public ClientDelivery(List msgs, int consumerID) { this.msgs = msgs; this.consumerID = consumerID; }
public ClientDelivery(List msgs, int consumerID) { this.msgs = msgs; this.consumerID = consumerID; }
44,594
public IdBlock(long low, long high) { this.low = low; this.high = high; }
public IdBlock(long low, long high) { this.low = low; this.high = high; }
44,595
public Collection getSessionStates() { if (sessionStatesList != null) { return sessionStatesList; } else { return sessionStatesMap.values(); } }
public Collection getSessionStates() { if (sessionStatesList != null) { return sessionStatesList; } else { return sessionStatesMap == null ? Collections.emptySet() : sessionStatesMap.values(); } }
44,596
private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ...
private void doFetchDependencies(IvyNode node, String conf) { Configuration c = node.getConfiguration(conf); if (c == null) { Message.warn("configuration not found '"+conf+"' in "+node.getResolvedId()+": ignoring"); if (node.getParent() != null) { Message.warn("it ...
44,597
public DependencyDescriptor getDependencyDescriptor() { return _dd; }
public DependencyDescriptor getDependencyDescriptor() { return _dd; }
44,598
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...
44,599
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.getMaxPa...
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.getMaxPa...
44,600
public void read(DataInputStream in) throws Exception { nodeId = in.readUTF(); queueName = in.readUTF(); condition = in.readUTF(); filterString = (String)StreamUtils.readObject(in, false); channelId = in.readLong(); durable = in.readBoolean(); }
public void read(DataInputStream in) throws Exception { nodeId = in.readInt(); queueName = in.readUTF(); condition = in.readUTF(); filterString = (String)StreamUtils.readObject(in, false); channelId = in.readLong(); durable = in.readBoolean(); }
44,601
public void write(DataOutputStream out) throws Exception { out.writeUTF(nodeId); out.writeUTF(queueName); out.writeUTF(condition); StreamUtils.writeObject(out, filterString, false, false); out.writeLong(channelId); out.writeBoolean(durable); }
public void write(DataOutputStream out) throws Exception { out.writeInt(nodeId); out.writeUTF(queueName); out.writeUTF(condition); StreamUtils.writeObject(out, filterString, false, false); out.writeLong(channelId); out.writeBoolean(durable); }
44,602
private void initBlinkTimer() { // Setup the blink timer. blinkTimer = new Timer(getBlinkRate(), new BlinkTimerListener()); blinkTimer.setRepeats(true); }
private void initBlinkTimer() { // Setup the blink timer. blinkListener = new BlinkTimerListener(); blinkTimer = new Timer(getBlinkRate(), blinkListener); blinkTimer.setRepeats(true); }
44,604
public void moveDot(int dot) { this.dot = dot; handleHighlight(); adjustVisibility(this); repaint(); }
public void moveDot(int dot) { this.dot = dot; handleHighlight(); adjustVisibility(this); appear(); } }
44,605
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); repaint(); }
public void setDot(int dot) { if (dot >= 0) { this.mark = dot; handleHighlight(); adjustVisibility(this); repaint(); }
44,606
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); repaint(); }
public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); adjustVisibility(this); appear(); } }
44,607
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc...
/* u.off(); if(block.node.getNodeName().equals("img")) { u.on(); } u.p("-------------"); u.p("BackgroundPainter.paint(" + block + " bounds = " + box); u.p("bg color = " + block.background_color); u.p("canvas = " + c.canvas); */ public static void paint(Context c, Box block) {/* u.off(); if(block.node.getNodeName().equa...
44,608
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc...
public static void paint(Context c, Box block) { Rectangle box = new Rectangle( block.x + block.margin.left + block.border.left, block.y + block.margin.top + block.border.top, block.width - block.margin.left - block.margin.right - block.border.left - bloc...
44,609
public void cancel(Routable r) throws Throwable { Object[] touple = null; Delivery d = null; for (Iterator i = messages.iterator(); i.hasNext(); ) { Object[] o = (Object[])i.next(); Message m = (Message)o[0]; if (m == r) { d = (Delivery)o[1]; ...
public void cancel(Routable r) throws Throwable { Object[] touple = null; Delivery d = null; for (Iterator i = messages.iterator(); i.hasNext(); ) { Object[] o = (Object[])i.next(); Message m = (Message)o[0]; if (m == r) { d = (Delivery)o[1]; ...
44,611
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.trace(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,612
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.trace("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,613
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,614
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,615
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,616
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,617
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
public Delivery handle(DeliveryObserver observer, MessageReference ref, Transaction tx) { log.info(this + " got routable:" + ref); try { if (ref == null) { log.info("Receiver [" + name + "] is rejecting a null reference"); return null; } ...
44,618
public static final String getDefaultType() { // Security reads every property in java.security so it // will return this property if it exists. String tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "jks"; return tmp; }
public static final String getDefaultType() { // Security reads every property in java.security so it // will return this property if it exists. String tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "gkr"; return tmp; }
44,619
public AckInfo(String messageID, String consumerID) { this.messageID = messageID; this.consumerID = consumerID; }
public AckInfo(String messageID, String consumerID) { this.messageID = messageID; this.consumerID = consumerID; }
44,620
public void markRun(int offset, BlockBox previous, BlockBox current) { RelayoutData previousData = get(offset-1); RelayoutData currentData = get(offset); IdentValue previousAfter = previousAfter = previous.getStyle().getCalculatedStyle().getIdent( ...
public void markRun(int offset, BlockBox previous, BlockBox current) { RelayoutData previousData = get(offset-1); RelayoutData currentData = get(offset); IdentValue previousAfter = previous.getStyle().getCalculatedStyle().getIdent( ...
44,621
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
44,622
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
44,623
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(...
44,624
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
44,625
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
44,626
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
private static void processPageBreakAvoidRun(final LayoutContext c, final BlockBox block, List contentList, Boxing.StyleSetListener styleSetListener, int offset, RelayoutDataList relayoutDataList, RelayoutData relayoutData, BlockBox childBox) { if (offset > 0) { ...
44,627
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static void relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { RelayoutResul...
44,628
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,629
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,630
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,631
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,632
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,633
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,634
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
private static RelayoutResult relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { if (checkForPendingInlines(relayoutDataList, start, end)) { Rel...
44,635
public boolean acceptsSource(Object edge, Object port) { // if(port==null) return false; // WorkflowCell cell = (WorkflowCell)((WorkflowPort)port).getParent(); return false; }
public boolean acceptsSource(Object edge, Object port) { // if(port==null) return false; // WorkflowCell cell = (WorkflowCell)((WorkflowPort)port).getParent(); if(port == null) return false; return true; }
44,636
public void connectCells(WorkflowCell from, ActionDescriptor action, WorkflowCell to, ResultDescriptor result) { WorkflowPort fromPort = (WorkflowPort)from.getChildAt(0); WorkflowPort toPort = (WorkflowPort)to.getChildAt(0); resultIdGenerator.checkId(result.getId()); if(result.getId() == 0) result.setId(...
public void connectCells(WorkflowCell from, ActionDescriptor action, WorkflowCell to, ResultDescriptor result) { WorkflowPort fromPort = (WorkflowPort)from.getChildAt(0); WorkflowPort toPort = (WorkflowPort)to.getChildAt(0); resultIdGenerator.checkId(result.getId()); if(result.getId() == 0) result.setId(...
44,637
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Map edges = new HashMap(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
44,638
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
44,639
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
44,640
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
public Collection getActivitiesList() { List l = new ArrayList(); l.addAll(initialActions); l.addAll(stepCells); l.addAll(splitCells); l.addAll(joinCells); Iterator i = l.iterator(); Set edges = new HashSet(); while(i.hasNext()) { WorkflowCell cell = (WorkflowCell)i.next(); //we ...
44,641
protected void checkEquivalent(Message m1, Message m2) throws Exception { super.checkEquivalent(m1, m2); if (!(m1 instanceof JBossMessage) && !(m2 instanceof JBossMessage)) { fail(); } JBossMessage jm1 = (JBossMessage)m1; JBossMessage jm2 = (JBossMessage)m2; ...
protected void checkEquivalent(Message m1, Message m2) throws Exception { super.checkEquivalent(m1, m2); if (!(m1 instanceof JBossMessage) && !(m2 instanceof JBossMessage)) { fail(); } JBossMessage jm1 = (JBossMessage)m1; JBossMessage jm2 = (JBossMessage)m2; ...
44,642
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMessage m = new JBossMessage(new GUID().toString(), true, System.currentTimeMillis() + ...
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMessage m = new JBossMessage(new GUID().toString(), true, System.currentTimeMillis() + ...
44,643
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMessage m = new JBossMessage(new GUID().toString(), true, System.currentTimeMillis() + ...
protected Message createMessage(int i) throws Exception { Map coreHeaders = generateFilledMap(true); Map jmsProperties = generateFilledMap(false); JBossMessage m = new JBossMessage(new GUID().toString(), true, System.currentTimeMillis() + ...
44,644
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException;
public Object registerVariable(WorkflowContext context, WorkflowEntry entry, Map args) throws WorkflowException;
44,645
public JBossSession(SessionDelegate delegate) { this.sessionDelegate = delegate; }
public JBossSession(SessionDelegate delegate, boolean isXA, int sessionType, boolean transacted, int acknowledgeMode) { this.sessionDelegate = delegate; }
44,646
public void close() throws JMSException { throw new NotYetImplementedException(); }
public void close() throws JMSException { sessionDelegate.closing(); sessionDelegate.close(); }
44,648
public void commit() throws JMSException { throw new NotYetImplementedException(); }
public void commit() throws JMSException { if (!transacted) throw new IllegalStateException("Session is not transacted - cannot call commit()"); sessionDelegate.commit(); }
44,649
public MessageConsumer createConsumer(Destination d) throws JMSException { return sessionDelegate.createConsumer(d); }
public MessageConsumer createConsumer(Destination d) throws JMSException { MessageConsumer consumer = sessionDelegate.createConsumer(d); return consumer; }
44,651
public MessageProducer createProducer(Destination d) throws JMSException { ProducerDelegate producerDelegate = sessionDelegate.createProducerDelegate(d); return new JBossMessageProducer(producerDelegate); }
public MessageProducer createProducer(Destination d) throws JMSException { ProducerDelegate producerDelegate = sessionDelegate.createProducerDelegate(d); return new JBossMessageProducer(producerDelegate, d); }
44,653
public int getAcknowledgeMode() throws JMSException { throw new NotYetImplementedException(); }
public int getAcknowledgeMode() throws JMSException { return acknowledgeMode; }
44,658
public boolean getTransacted() throws JMSException { throw new NotYetImplementedException(); }
public boolean getTransacted() throws JMSException { return transacted; }
44,659
public void recover() throws JMSException { throw new NotYetImplementedException(); }
public void recover() throws JMSException { sessionDelegate.recover(); }
44,660
public void rollback() throws JMSException { throw new NotYetImplementedException(); }
public void rollback() throws JMSException { if (!transacted) throw new IllegalStateException("Session is not transacted - cannot call rollback()"); sessionDelegate.rollback(); }
44,661
public Object handlePostDeliver(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode != Session.SESSION_TRANSACTED && ackMode != Session.CLIENT_ACKNOWLEDGE) { Sessi...
public Object handlePostDeliver(Invocation invocation) throws Throwable { MethodInvocation mi = (MethodInvocation)invocation; int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode != Session.SESSION_TRANSACTED && ackMode != Session.CLIENT_ACKNOWLEDGE) { Sessi...
44,663
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
public Object handleRecover(Invocation invocation) throws Throwable { if (trace) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot recover a transacte...
44,664
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
44,665
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
public Object handleRecover(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("recover called"); } int ackMode = getState(invocation).getAcknowledgeMode(); if (ackMode == Session.SESSION_TRANSACTED) { throw new IllegalStateException("Cannot reco...
44,666
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace("acknowledging non transactionally " + d); } try { if (state.remove(d, null)) { if (log.isTraceEnabled()) { log.trace(this + " delivery " + d + " completed and forgotten"); ...
private void acknowledgeNoTx(Delivery d) { checkClosed(); if (log.isTraceEnabled()){ log.trace("acknowledging non transactionally " + d); } try { if (state.remove(d, null)) { if (log.isTraceEnabled()) { log.trace(this + " delivery " + d + " completed and forgotten"); ...
44,668
public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver " + this + "'s messages"); } List messages = state.undelivered(null); for(Iterator i = messages.iterator(); i.hasNext(); ) { MessageReference r = (MessageReference)i.next(); try { ...
public void deliver(Receiver r) { if (log.isTraceEnabled()){ log.trace("attempting to deliver " + this + "'s messages"); } List messages = state.undelivered(null); for(Iterator i = messages.iterator(); i.hasNext(); ) { MessageReference r = (MessageReference)i.next(); try ...
44,670
public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver " + this + "'s messages"); } List messages = state.undelivered(null); for(Iterator i = messages.iterator(); i.hasNext(); ) { MessageReference r = (MessageReference)i.next(); try { ...
public void deliver() { if (log.isTraceEnabled()){ log.trace("attempting to deliver " + this + "'s messages"); } List messages = state.undelivered(null); for(Iterator i = messages.iterator(); i.hasNext(); ) { MessageReference r = (MessageReference)i.next(); try { ...
44,671
public final Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); ...
public final Delivery handle(DeliveryObserver sender, Routable r, Transaction tx) { if (r == null) { return null; } if (log.isTraceEnabled()){ log.trace(this + " handles " + r + (tx == null ? " non-transactionally" : " in transaction: " + tx) ); } MessageReference ref = ref(r); ...
44,672
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, MessageReference ref, boolean delivery) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that does...
44,674
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,675
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,676
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,677
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,678
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,679
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,680
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,681
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,682
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
catch(Throwable t) { log.error("The receiver " + receiver + " is broken", t); } catch(Throwable t) { log.error("The receiver " + receiver + " is broken", t); } catch(Throwable t) { log.error("The receiver " + receiver + " is broken", t); } privatecatch(Throwable t) { log.error("The receiver " + receiver + " is brok...
44,683
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,684
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,685
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
else { try { for (Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (!d.isDone()) { state.add(d); if (!delivery) { ref.acquireReference(); } } } } catch(Throwable t) { log.error(this + " cannot manage delivery, passing responsibility to the sender", t); return new Composit...
44,686
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
private Delivery handleNoTx(DeliveryObserver sender, Receiver receiver, Routable r) { checkClosed(); if (r == null) { return null; } // don't even attempt synchronous delivery for a reliable message when we have an // non-recoverable state that doesn't accept reliable messages...
44,687
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { return (MessageReference)r; } else { //Convert to reference try { ref = ms.reference(r); return ref; } catch (Th...
protected MessageReference ref(Routable r) { MessageReference ref = null; try { return (MessageReference)r; } else { //Convert to reference try { ref = ms.reference(r); return ref; } catch (Throwable t) ...
44,688
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { return (MessageReference)r; } else { //Convert to reference try { ref = ms.reference(r); return ref; } catch (Th...
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { ref = ms.reference(r); return ref; } else { //Convert to reference try { ref = ms.reference(r); return ref; } ca...
44,689
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { return (MessageReference)r; } else { //Convert to reference try { ref = ms.reference(r); return ref; } catch (Th...
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { return (MessageReference)r; } catch (Throwable t) { //Convert to reference try { ref = ms.reference(r); return ref; } ...
44,690
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { return (MessageReference)r; } else { //Convert to reference try { ref = ms.reference(r); return ref; } catch (Th...
protected MessageReference ref(Routable r) { MessageReference ref = null; if (r.isReference()) { return (MessageReference)r; } else { //Convert to reference try { ref = ms.reference(r); return ref; } catch (Th...
44,691
protected void tearDown() throws Exception { DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS"); }
protected void tearDown() throws Exception { DatabaseHelper.runScript(getClass().getResource("/scripts/jdbc/dropschema.sql"), "jdbc/DefaultDS"); }
44,692
public boolean selfTest() { if (valid == null) { Sha160 md = new Sha160(); md.update((byte) 0x61); // a md.update((byte) 0x62); // b md.update((byte) 0x63); // c String result = Util.toString(md.digest()); valid = new Boolean(DIGEST0.equals(result)); } return...
public boolean selfTest() { if (valid == null) { Sha160 md = new Sha160(); md.update((byte) 0x61); // a md.update((byte) 0x62); // b md.update((byte) 0x63); // c String result = Util.toString(md.digest()); valid = Boolean.valueOf(DIGEST0.equals(result)); } re...
44,693
public static Box layout(Context c, Content content) { Box block = null; if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, content); } else { ...
public static Box layout(Context c, Content content) { Box block = null; if (content instanceof AnonymousBlockContent) { return AnonymousBoxing.layout(c, content); } else if (content instanceof TableContent) { return TableBoxing.layout(c, content); } else { ...
44,695
public static void setupAbsolute(Box box) { CalculatedStyle style = box.getContent().getStyle(); String position = LayoutUtil.getPosition(style); if (position.equals("absolute")) { if (style.hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement...
public static void setupAbsolute(Box box) { CalculatedStyle style = box.getContent().getStyle(); String position = LayoutUtil.getPosition(style); if (position.equals("absolute")) { if (style.hasProperty("right")) { //u.p("prop = " + c.css.getProperty(box.getRealElement...
44,696
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
private InlineBox calculateInline( Context c, Node node, int avail, int max_width, LineBox line, InlineBox prev, Element containing_block, InlineBox prev_align ) { // calculate the starting index int start = 0; // if this is another box from the same node as t...
44,697
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r...
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r...
44,699
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = style.getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { r...
public static void setupFloat(Context c, Box box, CascadedStyle style) { if (ContentUtil.isFloated(style)) { //Uu.p("==== setup float ===="); //Uu.dump_stack(); IdentValue floatVal = c.getCurrentStyle().getIdent(CSSName.FLOAT); if (floatVal == IdentValue.NONE) { ...
44,700
public TableUI() { // TODO } // TableUI()
public TableUI() { // TODO } // TableUI()
44,701
public void testNonRecoverableChannel_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } // the channel has no receivers assertFalse(channel.iterator().hasNext()); Message m = MessageFactory.createCoreMessage(0,...
public void testNonRecoverableChannel_1() throws Exception { if (channel.isRecoverable()) { // we test only non-recoverable channels now return; } // the channel has no receivers assertFalse(channel.iterator().hasNext()); Message m = MessageFactory.createCoreMessage(0,...
44,702
public void setUp() throws Exception { super.setUp(); channel = new Subscription(null, null, ms); log.debug("setup done"); }
public void setUp() throws Exception { super.setUp(); channel = new Subscription(null, null, false, ms); log.debug("setup done"); }
44,703
public abstract Image getImage(URL url);
public abstract Image getImage(URL url);
44,704
public QueueBrowser createBrowser(Queue queue) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_TOPIC_SESSION) { throw new IllegalStateException("Cannot create a browser on a TopicSession"); } if (queue == null) { throw new InvalidDestinationEx...
public QueueBrowser createBrowser(Queue queue) throws JMSException { //As per spec. section 4.11 if (sessionType == TYPE_TOPIC_SESSION) { throw new IllegalStateException("Cannot create a browser on a TopicSession"); } if (queue == null) { throw new InvalidDestinationEx...
44,705
public MessageConsumer createConsumer(Destination d) throws JMSException { if (d == null) { throw new InvalidDestinationException("Cannot create a consumer with a null destination"); } ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d, null, false, null, false); ...
public MessageConsumer createConsumer(Destination d) throws JMSException { if (d == null) { throw new InvalidDestinationException("Cannot create a consumer with a null destination"); } ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d, null, false, null, false); ...
44,706