[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1187) Properties from superclass of a library class not recognized by autocomplete, validator or F3

Victor Rubezhny (JIRA) jira-events at lists.jboss.org
Fri Oct 26 14:42:01 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1187?page=comments#action_12384649 ] 
            
Victor Rubezhny commented on JBIDE-1187:
----------------------------------------

Sorry, Gavin. Now I see it. 

But...

 Home class  that contains the getter "E getInstance()" in our example is resolved as BinaryType (org.eclipse.jdt.internal.core.BinaryType). If you'll look into its source you'll see the following method:

/*
 * @see IType#resolveType(String)
 */
public String[][] resolveType(String typeName) {
	// not implemented for binary types
	return null;
}

So, when we're trying to resolve the return type for "E getInstance()" getter (to find its properties) we're always getting null and no properties off course. 

I don't have any ideas how to extract properties from BinaryType.

Next point is the name of  "getInstance()" signature's return type: "E". It seems that it is like "raw type" identification, but not the real type and we have no possibility to convert it to real type name to see its properties.


PS: The reason why we're getting the Info-marker on "instance" property is another bug. There should be a message like "name cannot be resolved", but not "instance cannot be resolved". Will consult with Alex in Monday.


> Properties from superclass of a library class not recognized by autocomplete, validator or F3
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-1187
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1187
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Seam
>            Reporter: Gavin King
>         Assigned To: Victor Rubezhny
>             Fix For: 2.0.0.CR1
>
>
> To reproduce, run "Seam Generate Entities", and look at the XxxxEdit pages.
> EL expressions like #{xxxHome.instance} are flagged with a warning when they should not be.
> Well, XxxxHome properties are recognized, as are EntityHome properties, but Home properties are not recognized.
> It seems to be a prob that properties on superclasses of binary classes are not detected.

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

        



More information about the jbosstools-issues mailing list