[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-6928) XModel clears almost all the problem markers in XMLs.

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Fri Aug 27 08:12:11 EDT 2010


XModel clears almost all the problem markers in XMLs.
-----------------------------------------------------

                 Key: JBIDE-6928
                 URL: https://jira.jboss.org/browse/JBIDE-6928
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: common
    Affects Versions: 3.2.0.Beta
            Reporter: Alexey Kazakov
            Assignee: Viacheslav Kabanovich
            Priority: Blocker
             Fix For: 3.2.0.Beta


1. Create any CDI projects.
2. Create new beans.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans>
	<alternatives>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
		<class>org.jboss.jsr299.tck.tests.policy.broken.same.type.twice.Cat</class>
	</alternatives>
</beans>

3. Save it.

If you repeat it many times then you can see that CDI problem markers sometimes disappear.

The problem is in org.jboss.tools.common.model.markers.ResourceMarkers.isOwnedMarker(IMarker m)

It clears almost all the markers even if they were added by other validators. If a validator added markers before XModel validation then the markers will be removed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list