This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 146762
Collapse All | Expand All

(-)a/java.source/src/org/netbeans/modules/java/source/save/Reformatter.java (+8 lines)
Lines 275-280 Link Here
275
    }
275
    }
276
    
276
    
277
    public ExtraLock reformatLock() {
277
    public ExtraLock reformatLock() {
278
        if (controller == null && "text/x-jsp".equals(context.document().getProperty("mimeType"))) { // Nasty hack - see issue #146762
279
            try {
280
                controller = JavaSourceAccessor.getINSTANCE().createCompilationController(javaSource);
281
                controller.toPhase(JavaSource.Phase.PARSED);
282
            } catch (IOException ioe) {
283
                controller = null;
284
            }
285
        }
278
        return null;
286
        return null;
279
    }
287
    }
280
    
288
    

Return to bug 146762