Community
Participate
Working Groups
Normally you can open the declaration by selecting the text of the item you would like to see the declaration of. This works fine with all elements except the right side of a short -> get short Callout. The cause is the wrong creation of the FieldAccessSpec object in the Parser.checkCalloutModifier(CalloutMappingDeclaration calloutBinding) method. If instead of the direct creation with "new" the factory method newFieldAccessSpec(char[] ident, long poss, TypeReference typeReference, int modifiers) is used, the SelectionParser will be able to override the factorymethod and create a SelectionOnFieldAccessSpec for selection usecases. greetings Jan Marc
Created attachment 184521 [details] test & fix This patch contains a test and the fix (plus a little cleanup regarding the different constructors of FieldAccessSpec). Thanks, your analysis was extremely helpful.
The patch has been committed as r1117 f.
Verified for M4 using build 201012150343
Setting the iplog flag to acknowledge the quasi patch in comment 0.