File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Java.Interop/Java.Interop
tests/Java.Interop-Tests/Java.Interop Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ sealed class JniEnvironmentInfo : IDisposable {
192192 public int LocalReferenceCount { get ; internal set ; }
193193 public bool WithinNewObjectScope { get ; set ; }
194194 public JniRuntime Runtime {
195- get => runtime ?? throw new ObjectDisposedException ( nameof ( JniEnvironmentInfo ) ) ;
195+ get => runtime ?? throw new NotSupportedException ( ) ;
196196 private set => runtime = value ;
197197 }
198198
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public void Dispose_ClearsJniEnvironment ()
5858 JniRuntime . SetCurrent ( r ) ;
5959 Assert . AreEqual ( r , JniEnvironment . Runtime ) ;
6060 r . Dispose ( ) ;
61- Assert . Throws < ObjectDisposedException > ( ( ) => {
61+ Assert . Throws < NotSupportedException > ( ( ) => {
6262 var env = JniEnvironment . Runtime ;
6363 } ) ;
6464 } ) ;
You can’t perform that action at this time.
0 commit comments