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
import java.io.IOException;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.channels.AsynchronousSocketChannel;
public class A{
public AsynchronousSocketChannel client;
public A(AsynchronousSocketChannel client){
this.client=client;
}
public InetAddress test(){
try {
if(client.getRemoteAddress() instanceof InetSocketAddress isa)
return isa.getAddress();
} catch (IOException e) {
}
return null;
}
}
File 2(B.java):
import java.io.IOException;
import java.net.InetAddress;
public class B extends A {
@Override
public InetAddress test(){
return super.test();
}
}
Command:
gradlew run --args="--outputDirectory \"/tmp/specimin328479325\" --root \"/path/to/src/main/java\" --targetFile \"B.java\" --targetMethod \"B#test()\""
The source file A.java is deleted when running the above command.
It is deleted at this point:
at org.checkerframework.specimin.UnsolvedSymbolVisitor.deleteOldSyntheticClass(UnsolvedSymbolVisitor.java:3201)
at org.checkerframework.specimin.UnsolvedSymbolVisitor.updateSyntheticSourceCode(UnsolvedSymbolVisitor.java:3182)
at org.checkerframework.specimin.SpeciminRunner.performMinimizationImpl(SpeciminRunner.java:303)
at org.checkerframework.specimin.SpeciminRunner.performMinimization(SpeciminRunner.java:163)
at org.checkerframework.specimin.SpeciminRunner.main(SpeciminRunner.java:90)
The text was updated successfully, but these errors were encountered:
Fix issue #368 , issue #370 , and issue #361 .
Tests have been added.
One existing test(Issue103) fails, but it was already failing in the
main branch.
File 1(A.java):
File 2(B.java):
Command:
The source file A.java is deleted when running the above command.
It is deleted at this point:
The text was updated successfully, but these errors were encountered: