You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Resource Leak Checker issues this error message:
ConnectingSockets2.java:9: error: [reset.not.owning] Calling method connect resets the must-call obligations of the expression serverSocket, which is non-owning. Either annotate its declaration with an @Owning annotation, extract it into a local variable, or write a corresponding @CreatesMustCallFor annotation on the method that encloses this statement.
serverSocket.connect(isa);
^
However, it is illegal to annotated the declaration of serverSocket as @Owning, and I think the code should be legal.
The text was updated successfully, but these errors were encountered:
Consider the following code (which is checked in as
ConnectingSockets2.java
):The Resource Leak Checker issues this error message:
However, it is illegal to annotated the declaration of
serverSocket
as@Owning
, and I think the code should be legal.The text was updated successfully, but these errors were encountered: