I am currently trying to perform some regex on the result of a DatagramPacket.getData()
call.
Implemented as String myString = new String(thepkt.getData())
:
But weirdly, java is dropping the end quotation that it uses to encapsulate all data(see linked image below).
When I click the field in the variable inspector during a debug session and don't change anything, when I click off the variable field it corrects itself again without me changing anything. It even highlights the variable inspection field in yellow to signal change. Its values are also displaying like it is still a byte array rather than a String object
https://i.stack.imgur.com/i5tad.png
It's throwing off my regex and I can't see anything that would cause it. It's a client server simulation and on the client side, the getData returns the data no problem.