Community
Participate
Working Groups
public class Hello() { public static void main(String[] args) { int x= 255 int y= 67; System.out.println("Hello, World!"); } } 1. Turn on the "Display ASCII values" preference. 2. Place a breakpoint on line 6 ("System.out") and debug Hello 3. Note that x's label is completely empty in the variables view I've debugged this enough to see that the JDIModelPresentation *is* generating and returning the correct label for x. NOTES:
If we are generating the correct label, why is it not displaying?
This bug is actually much worse than I thought. It's not at all related to the ASCII display preference. We completely bomb when trying to display any string that contains a char > 127. This bug is new to the 2.0 stream. public class Hello() { public static void main(String[] args) { char c= (char) 255; System.out.println("Hello, world!"); // breakpoint here } }
Appears to be a Linux-only SWT or UI bug.
PRODUCT VERSION: 2.0 stream
Fixed by Silenio. We now use memmove to ensure that the bytes are moved in the correct order according to the endianness of the platform. This introduces a limitation on RedHat 6.2, which is fine since this is not a 2.0-supported platform. This has been documented in the swt readme (99.1.11 Non ASCII strings on Linux).