[jbosstools-commits] JBoss Tools SVN: r44080 - branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 27 04:25:18 EDT 2012


Author: xcoulon
Date: 2012-09-27 04:25:18 -0400 (Thu, 27 Sep 2012)
New Revision: 44080

Modified:
   branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsJavaApplicationValidatorDelegate.java
Log:
Fixed - JBIDE-12745 - Bad location for problem marker on JAX-RS Application
https://issues.jboss.org/browse/JBIDE-12745

Modified: branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsJavaApplicationValidatorDelegate.java
===================================================================
--- branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsJavaApplicationValidatorDelegate.java	2012-09-27 08:23:41 UTC (rev 44079)
+++ branches/jbosstools-4.0.0.Alpha2/ws/plugins/org.jboss.tools.ws.jaxrs.core/src/org/jboss/tools/ws/jaxrs/core/internal/metamodel/validation/JaxrsJavaApplicationValidatorDelegate.java	2012-09-27 08:25:18 UTC (rev 44080)
@@ -49,7 +49,7 @@
 		if (!application.isOverriden() && applicationPathAnnotation == null) {
 			addProblem(JaxrsValidationMessages.JAVA_APPLICATION_MISSING_APPLICATION_PATH_ANNOTATION,
 					JaxrsPreferences.JAVA_APPLICATION_MISSING_APPLICATION_PATH_ANNOTATION, new String[0],
-					appJavaElement.getSourceRange().getLength(), appJavaElement.getSourceRange().getOffset(),
+					appJavaElement.getNameRange().getLength(), appJavaElement.getNameRange().getOffset(),
 					application.getResource(),
 					JaxrsValidationQuickFixes.JAVA_APPLICATION_MISSING_APPLICATION_PATH_ANNOTATION_ID);
 		}



More information about the jbosstools-commits mailing list