Skip to content

Commit

Permalink
Return null on tail.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Oct 8, 2024
1 parent d715c0e commit 73e95bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/IKVM.JTReg.TestAdapter.Core/ErrorHandlerInterceptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace IKVM.JTReg.TestAdapter.Core
/// <summary>
/// Generates an implementation of 'com.sun.javatest.TestFinder$ErrorHandler'.
/// </summary>
class ErrorHandlerInterceptor : DispatchProxy
public class ErrorHandlerInterceptor : DispatchProxy
{

static readonly MethodInfo CreateMethodInfo = typeof(DispatchProxy).GetMethods()
Expand Down Expand Up @@ -52,13 +52,14 @@ protected override object Invoke(MethodInfo targetMethod, object[] args)
break;
}

throw new InvalidOperationException();
return null;
}

void error(string msg)
{
logger.SendMessage(JTRegTestMessageLevel.Error, msg);
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected override object Invoke(MethodInfo targetMethod, object[] args)
break;
}

throw new InvalidOperationException();
return null;
}

void startingTestRun(dynamic parameters)
Expand Down
2 changes: 1 addition & 1 deletion src/IKVM.JTReg.TestAdapter.Core/JTRegTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace IKVM.JTReg.TestAdapter.Core
/// <summary>
/// Provides information and accessors for JTReg types, which are dynamically loaded.
/// </summary>
internal static class JTRegTypes
public static class JTRegTypes
{

static readonly string[] libs = Directory.GetFiles(Path.Combine(Path.GetDirectoryName(typeof(JTRegTestManager).Assembly.Location), "jtreg"), "*.jar");
Expand Down

0 comments on commit 73e95bc

Please sign in to comment.