# HG changeset patch # User Jaroslav Tulach # Date 1446131931 -3600 # Node ID c19904646ed80f6e5142f058b0d8245c99341b36 # Parent 267ca1bfeb6f0fb6f09c8203494e5156a9815bca #255866: Documentation fix. Cannot call getClass() from static context. diff -r 267ca1bfeb6f -r c19904646ed8 context/src/main/java/net/java/html/BrwsrCtx.java --- a/context/src/main/java/net/java/html/BrwsrCtx.java Wed Oct 28 19:29:17 2015 +0100 +++ b/context/src/main/java/net/java/html/BrwsrCtx.java Thu Oct 29 16:18:51 2015 +0100 @@ -153,7 +153,7 @@ // called when your page is ready public static void onPageLoad(String... args) throws Exception { // the context at the time of page initialization - BrwsrCtx initialCtx = BrwsrCtx.findDefault(getClass()); + BrwsrCtx initialCtx = BrwsrCtx.findDefault(Periodicaly.class); // the task that is associated with context Periodicaly task = new Periodicaly(initialCtx); // creates a timer