You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by "August Lammersdorf, InteractiveMesh" <sd...@interactivemesh.com> on 2011/01/16 15:38:49 UTC
VolatileImage buffer disabled by default for not signed web apps !?
Hi,
Pivot 2.0 introduced the 'disableVolatileBuffer' flag (PIVOT-390). Its
default value is true. In case of not signed web apps (JWS, Applet) a
SecurityException will be thrown (and catched) and the default value
remains unchanged: true. So, these apps will never benefit from the
faster VolatileImage buffer. Did I overlook something?
public abstract class ApplicationContext {
public static class DisplayHost extends java.awt.Component {
private boolean disableVolatileBuffer = true;
public DisplayHost() {
...
try {
disableVolatileBuffer =
Boolean.parseBoolean(System.getProperty("org.apache.pivot.wtk.disablevolatilebuffer"));
} catch (SecurityException ex) {
// No-op
}
...
}
}
}
August
Re: VolatileImage buffer disabled by default for not signed web apps !?
Posted by Greg Brown <gk...@verizon.net>.
Thanks for catching that. The default should be false.
On Jan 16, 2011, at 9:38 AM, August Lammersdorf, InteractiveMesh wrote:
>
> Hi,
>
> Pivot 2.0 introduced the 'disableVolatileBuffer' flag (PIVOT-390). Its default value is true. In case of not signed web apps (JWS, Applet) a SecurityException will be thrown (and catched) and the default value remains unchanged: true. So, these apps will never benefit from the faster VolatileImage buffer. Did I overlook something?
>
> public abstract class ApplicationContext {
>
> public static class DisplayHost extends java.awt.Component {
>
> private boolean disableVolatileBuffer = true;
>
> public DisplayHost() {
> ...
> try {
> disableVolatileBuffer = Boolean.parseBoolean(System.getProperty("org.apache.pivot.wtk.disablevolatilebuffer"));
> } catch (SecurityException ex) {
> // No-op
> }
> ...
> }
> }
> }
>
> August