#255866: Documentation fix. Cannot call getClass() from static context.
authorJaroslav Tulach <jtulach@netbeans.org>
Thu, 29 Oct 2015 16:18:51 +0100
changeset 1012c19904646ed8
parent 1011 267ca1bfeb6f
child 1013 170c4f72938f
#255866: Documentation fix. Cannot call getClass() from static context.
context/src/main/java/net/java/html/BrwsrCtx.java
     1.1 --- a/context/src/main/java/net/java/html/BrwsrCtx.java	Wed Oct 28 19:29:17 2015 +0100
     1.2 +++ b/context/src/main/java/net/java/html/BrwsrCtx.java	Thu Oct 29 16:18:51 2015 +0100
     1.3 @@ -153,7 +153,7 @@
     1.4      // called when your page is ready
     1.5      <b>public static void</b> onPageLoad(String... args) <b>throws</b> Exception {
     1.6          // the context at the time of page initialization
     1.7 -        BrwsrCtx initialCtx = BrwsrCtx.findDefault(getClass());
     1.8 +        BrwsrCtx initialCtx = BrwsrCtx.findDefault(Periodicaly.<b>class</b>);
     1.9          // the task that is associated with context 
    1.10          Periodicaly task = new Periodicaly(initialCtx);
    1.11          // creates a timer