Skip to content

Commit

Permalink
Merge pull request #236 from joe-chacko/trace-bug
Browse files Browse the repository at this point in the history
Fix IOR tracing bug
  • Loading branch information
joe-chacko authored Aug 14, 2024
2 parents 47b4275 + 301b6e0 commit e02a876
Show file tree
Hide file tree
Showing 12 changed files with 404 additions and 509 deletions.
4 changes: 2 additions & 2 deletions testify/src/main/java/testify/annotation/ClassSource.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 IBM Corporation and others.
* Copyright 2024 IBM Corporation and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -38,7 +38,7 @@
@Documented
@ArgumentsSource(ClassSource.Provider.class)
public @interface ClassSource {
Class[] value();
Class<?>[] value();
class Provider implements ArgumentsProvider, AnnotationConsumer<ClassSource> {
private static final String ANNO_NAME = '@' + ClassSource.class.getSimpleName();
Class<?>[] classes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2021 IBM Corporation and others.
* Copyright 2024 IBM Corporation and others.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -549,7 +549,7 @@ private synchronized void processLocateReply(GIOPIncomingMessage msg) {
try {
IOR ior = IORHelper.read(in);
down.setLocationForward(ior, false);
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.PrintObjref(orbInstance_.getORB(), ior));
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.describeIor(orbInstance_.getORB(), ior));

} catch (SystemException ex) {
warned(REQ_OUT_LOG, ex, "An error occurred while reading a locate reply, possibly indicating "
Expand All @@ -563,7 +563,7 @@ private synchronized void processLocateReply(GIOPIncomingMessage msg) {
try {
IOR ior = IORHelper.read(in);
down.setLocationForward(ior, true);
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.PrintObjref(orbInstance_.getORB(), ior));
if (REQ_OUT_LOG.isLoggable(FINE)) REQ_OUT_LOG.fine("Locate request forwarded to " + IORDump.describeIor(orbInstance_.getORB(), ior));
} catch (SystemException ex) {
warned(REQ_OUT_LOG, ex,"An error occurred while reading a locate reply, possibly indicating "
+ "an interoperability problem. You may need to set the LocateRequestPolicy to false.");
Expand Down Expand Up @@ -885,7 +885,7 @@ public void upcallForward(Upcall upcall, IOR ior, boolean perm, ServiceContexts
ReplyStatusType_1_2 status = perm ? ReplyStatusType_1_2.LOCATION_FORWARD_PERM : ReplyStatusType_1_2.LOCATION_FORWARD;
try {
outgoing.writeReplyHeader(reqId, status, contexts);
if (REQ_IN_LOG.isLoggable(FINE)) REQ_IN_LOG.fine("Sending forward reply to " + IORDump.PrintObjref(orbInstance_.getORB(), ior));
if (REQ_IN_LOG.isLoggable(FINE)) REQ_IN_LOG.fine("Sending forward reply to " + IORDump.describeIor(orbInstance_.getORB(), ior));
IORHelper.write(out, ior);
} catch (SystemException ex) {
// Nothing may go wrong here, otherwise we might have a
Expand Down
Loading

0 comments on commit e02a876

Please sign in to comment.