Community
Participate
Working Groups
Build Identifier: M20100211-1343 org.eclipse.jst.jsp.core.internal.util.FacetModuleCoreSupport#getDynamicWebProjectVersion(IProject) has the following documentation "@return -1 if the project does not have the JST Web facet" however upon inspection of the code it appears to return version 2.5 if the project is null, not a faceted project, or does not contain the jst.web facet. Note the implementation appears in org.eclipse.jst.jsp.core.internal.util.FacetModuleCoreSupportDelegate. I am not sure what the intention is so this may just be a javadoc bug but I would assume -1 should be returned instead of 2.5 on a project that doesn't have the jst.web facet. Reproducible: Always Steps to Reproduce: 1. Create a Java project (not a faceted project) 2. Call org.eclipse.jst.jsp.core.internal.util.FacetModuleCoreSupport#getDynamicWebProjectVersion(IProject) 3. Verify a return value of 2.5f
Documentation of FacetModuleCoreSupport has already been changed.Change in documentation of FacetModuleCoreSupportDelegate is still required.
Updated.