Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 529153

Summary: Adding KeyListener to Text breaks clustering
Product: [RT] RAP Reporter: Linuxhippy <linuxhippy>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 3.4   
Target Milestone: 3.5   
Hardware: PC   
OS: Linux   
See Also: https://git.eclipse.org/r/#/c/114708/
Whiteboard:

Description Linuxhippy CLA 2017-12-23 04:38:09 EST
Adding a KeyListener to a Text breaks session serialization, because org.eclipse.swt.widgets.Text$1 is not serializeable.
Comment 1 Ivan Furnadjiev CLA 2018-01-04 04:39:36 EST
Clemens, the JUnit test is green for me event without your modification:
---
@Test
public void testIsSerializable_withKeyListener() throws Exception {
  text.setText( "foo" );
  text.addKeyListener( mock( KeyListener.class ) );

  Text deserializedText = serializeAndDeserialize( text );

  assertEquals( text.getText(), deserializedText.getText() );
}
----
Could you provide a test case that demonstrates the problem?
Comment 2 Ivan Furnadjiev CLA 2018-01-04 04:43:26 EST
... nevermind... I created a test for it.
Comment 3 Ivan Furnadjiev CLA 2018-01-04 04:49:44 EST
Gerrit change updated with a test case.