I'm debugging a simple server-client socket application, and I have problems at the line
inputStream = new ObjectInputStream(inStream);
When stepping over this line of code, the debugger flat-out stops working, hanging up the debugged program. When I tried (force) stepping into it, after seeing the window to accept terms and conditions of a decompiler I've arrived at a step when it says "Source code does not match the bytecode" in the file "Launcher.class"
This is the faulty function: (arguments passed are "localhost" and 8080)
public void connect(String host, int port) throws IOException {
if (connected) {
throw new IOException("Already connected.");
}
clientSocket = new Socket(host, port);
outStream = clientSocket.getOutputStream();
outputStream = new ObjectOutputStream(outStream);
inStream = clientSocket.getInputStream();
inputStream = new ObjectInputStream(inStream);
connected=true;
System.out.println("Connected to "+host+" over port "+ port);
}