Community
Participate
Working Groups
I wrote a builder that generates .aj files. The builder runs before the aspectj builder and creates problem markers on java resources. The problem is: these markers disappear after the aspectj-builder has run. If I disable the aspectj builder the markers behave correctly. IMarker marker = res.createMarker(IMarker.PROBLEM); if (marker.exists()) { marker.setAttribute(IMarker.SEVERITY, IMarker.SEVERITY_ERROR); marker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_HIGH); marker.setAttribute(IMarker.USER_EDITABLE, false); marker.setAttribute(IMarker.TRANSIENT, false); marker.setAttribute(IMarker.MESSAGE, e.getMessage()); ...
Same behavior if i define and use my own problem-marker type.
Fixed in latest development build and will be included in the 1.2.0 M2 release.
*** Bug 71061 has been marked as a duplicate of this bug. ***
Bug still in Version: 1.2.0 Build id: 20041115201304 AspectJ version: 1.2.0 code: IMarker marker = res.createMarker("pluginid.marker"); assert marker.exists() : "unable to create marker on resource " + res; marker.setAttribute(IMarker.MESSAGE, msg); if(location.getLineNumber()>=0) { marker.setAttribute(IMarker.LINE_NUMBER, location.getLineNumber()); } else if(location.getCharStart()>=0) { marker.setAttribute(IMarker.CHAR_START, location.getCharStart()); marker.setAttribute(IMarker.CHAR_END, location.getCharEnd()); } marker.setAttribute(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR)); marker.setAttribute(IMarker.PRIORITY, IMarker.PRIORITY_HIGH); marker.setAttribute(IMarker.USER_EDITABLE, false); marker.setAttribute(IMarker.TRANSIENT, false); plugin.xml: <extension point="org.eclipse.core.resources.markers" id="marker" name="mymarker"> <super type="org.eclipse.jdt.core.problem"/> <persistent value="true"/> </extension>
Oops.. I'm very sorry - we were still removing subtypes of JDT problem markers as well as JDT markers themselves. Thanks for the prompt response and the clear test case. This should be fixed now and another build should be uploaded tomorrow morning.
Build uploaded