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.
}
public ExtraLock reformatLock() {
if (controller == null && "text/x-jsp".equals(context.document().getProperty("mimeType"))) { // Nasty hack - see issue #146762
try {
controller = JavaSourceAccessor.getINSTANCE().createCompilationController(javaSource);
controller.toPhase(JavaSource.Phase.PARSED);
} catch (IOException ioe) {
controller = null;
return null;