Hi everyone,

I am using 5.2.1-SNAPSHOT.

I found a new thread in page class has problem to access the persisted
fields, for example:

    @Persist
    @Property
    private String field;

    public void onSubmit() {
        try {
            Thread thread = new Thread() {
                public void run() {
                    System.out.println("field = " + field);
                }
            };
            thread.start();
            thread.join();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }

The field is always null when printing it out within run method; a
workaround is to define a local variable then access this variable in
new thread.


I am wondering whether it's an expected behaviour or not.

Regards,
Yunhua

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to