Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329307 - No quick fixes displayed on problem hover for APT Problems
Summary: No quick fixes displayed on problem hover for APT Problems
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: APT (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Generic inbox for the JDT-APT component CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-02 18:27 EDT by Shane Clarke CLA
Modified: 2019-04-23 16:52 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shane Clarke CLA 2010-11-02 18:27:23 EDT
In JAX-WS Tools in WTP Web Services we're using a number of Java 5 Annotation
Processors for validating annotations.

There are quick fixes for some of the problems and these work fine when clicking
on the light bulb in the editor marker bar or by selecting the entry in the Problems view and selecting quick fix.

There's one area where it doesn't work and that's when hovering over the annotation that's marked in error in the Java Editor.

From debugging and looking at org.eclipse.jdt.internal.ui.text.java.hover.ProblemHover (Line 217 on HEAD) (ProblemInfo.getJavaAnnotationFixes())

the call to hasProblem() returns false because the first argument (org.eclipse.jdt.ui.text.java.IInvocationContext.getASTRoot().getProblems()) returns a zero length array.

This results in the zero length ICompletionProposal array NO_PROPOSALS being returned and therefore no quick fixes get displayed.

If the hasProblem() check returned true the correct quick fix is picked up and displayed on the hover.

Is this a problem with APT Problems getting picked up / reported in the call to IInvocationContext.getASTRoot().getProblems() or is it possibly related to Bug #62081
Comment 1 Walter Harley CLA 2010-11-13 19:01:09 EST
Is it possible you are running into Bug 273088?
Comment 2 Shane Clarke CLA 2010-11-14 16:42:05 EST
Sorry should have noted that this only occurs with "Enable processing in editor" is turned on.

Re Bug 273088 When enable processing in editor is disabled the quick fix does appear on the hover, as well as on the editor marker and in the problems view. Using a marker resolution generator (org.eclipse.ui.ide.markerResolution) to get this to work.
Comment 3 Eclipse Genie CLA 2019-04-23 16:52:07 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.