Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #325464 +++ STEPS: 1. create a SWP 2. create a JS file using the new JS file wizard 3. add a single double quote to the document (syntax error) RESULTS: 1. without saving the document the syntax validation error should be reported by its not CAUSE: this is because in NewJSFileWizardPage@#addFileComment the line: "cu.becomeWorkingCopy(new NullProgressMonitor());" (added by Bug 268125) This causes the working copy to be created without a problem requester. Then when CompilationUnitDocumentProvider#createFileInfo is called there is a bit of code that reads: /* * Use the deprecated method to ensure that our problem requestor is * used; it is the only way to have as-you-type IProblems from * reconciling appear in the annotation model. */ if (JavaModelUtil.isPrimary(original)) original.becomeWorkingCopy(requestor, getProgressMonitor()); This attempts to set up the working copy again using the correct requestor, problem is in CompilationUnit#becomeWorkingCopy(IProblemRequestor, IProgressMonitor) if the PerWorkignCopyInfo already exists then nothing is done.
Created attachment 179903 [details] patch
Committed to R3_2_2_patches