finalize needs to be protected not public else will not get invoked
This commit is contained in:
1 parent
c462123080
commit
3da65be191
1 file changed
+1
-1
@@ -120,7 +120,7 @@ public class Service extends Win32Bindings implements java.io.Serializable
|
||||
Service.throwLastErrorException();
|
||||
}
|
||||
|
||||
public void finalize()
|
||||
protected void finalize()
|
||||
{
|
||||
this.close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user