@@ -0,0 +1,1852 @@
+package com.itmill.toolkit.tests.tickets;%0D%0A%0D%0Aimport com.itmill.toolkit.data.util.ObjectProperty;%0D%0Aimport com.itmill.toolkit.ui.Button;%0D%0Aimport com.itmill.toolkit.ui.TextField;%0D%0Aimport com.itmill.toolkit.ui.Window;%0D%0Aimport com.itmill.toolkit.ui.Button.ClickEvent;%0D%0A%0D%0Apublic class Ticket1806 extends com.itmill.toolkit.Application %7B%0D%0A%0D%0A    public void init() %7B%0D%0A        final Window main = new Window(getClass().getName().substring(%0D%0A                getClass().getName().lastIndexOf(%22.%22) + 1));%0D%0A        setMainWindow(main);%0D%0A%0D%0A        final ObjectProperty prop = new ObjectProperty(%22%22);%0D%0A        final TextField tf1 = new TextField(%0D%0A                %22Buffered TextField bound to ObjectProperty%22);%0D%0A        tf1.setWriteThrough(false);%0D%0A        tf1.setReadThrough(false);%0D%0A        tf1.setPropertyDataSource(prop);%0D%0A        main.addComponent(tf1);%0D%0A        main%0D%0A                .addComponent(new Button(%0D%0A                        %22This button does nothing (but flushes queued variable changes)%22));%0D%0A        main.addComponent(new Button(%22Commit the field to property%22,%0D%0A                new Button.ClickListener() %7B%0D%0A                    public void buttonClick(ClickEvent event) %7B%0D%0A                        tf1.commit();%0D%0A                    %7D%0D%0A                %7D));%0D%0A        main.addComponent(new Button(%22Show property value%22,%0D%0A                new Button.ClickListener() %7B%0D%0A                    public void buttonClick(ClickEvent event) %7B%0D%0A                        main.showNotification(%22'%22 + prop.getValue() + %22'%22);%0D%0A                    %7D%0D%0A                %7D));%0D%0A        main.addComponent(new Button(%22Show field value%22,%0D%0A                new Button.ClickListener() %7B%0D%0A                    public void buttonClick(ClickEvent event) %7B%0D%0A                        main.showNotification(%22'%22 + tf1.getValue() + %22'%22);%0D%0A                    %7D%0D%0A                %7D));%0D%0A    %7D%0D%0A%7D

Test for #1806: Unexpected behavior with i-modified-class