You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Troy Beecroft (JIRA)" <de...@beehive.apache.org> on 2005/09/14 23:00:54 UTC

[jira] Created: (BEEHIVE-929) Compiler check for base type agreement between the type and typeHint attributes of an action output annotation

Compiler check for base type agreement between the type and typeHint attributes of an action output annotation
--------------------------------------------------------------------------------------------------------------

         Key: BEEHIVE-929
         URL: http://issues.apache.org/jira/browse/BEEHIVE-929
     Project: Beehive
        Type: Improvement
  Components: NetUI  
    Versions: TBD    
    Reporter: Troy Beecroft
    Priority: Minor


Tools can use the typeHint attribute on an action output annotation to preserve information about parameterized types.  Such tools might jointly manage both the type and typeHint attribute to keep them in synch.  Even so, someone could change one and not the other either directly in source or via a property sheet.  In such cases it would be really handy if there was a compiler check to see that both attributes have the same base type.

As an example, the following annotation would pass:

@Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.ArrayList<businessObjects.Customer>

while this one would not:

@Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.List<businessObjects.Customer>


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


[jira] Assigned: (BEEHIVE-929) Compiler check for base type agreement between the type and typeHint attributes of an action output annotation

Posted by "Rich Feit (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-929?page=all ]

Rich Feit reassigned BEEHIVE-929:
---------------------------------

    Assign To: Rich Feit

> Compiler check for base type agreement between the type and typeHint attributes of an action output annotation
> --------------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-929
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-929
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Versions: TBD
>     Reporter: Troy Beecroft
>     Assignee: Rich Feit
>     Priority: Minor

>
> Tools can use the typeHint attribute on an action output annotation to preserve information about parameterized types.  Such tools might jointly manage both the type and typeHint attribute to keep them in synch.  Even so, someone could change one and not the other either directly in source or via a property sheet.  In such cases it would be really handy if there was a compiler check to see that both attributes have the same base type.
> As an example, the following annotation would pass:
> @Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.ArrayList<businessObjects.Customer>
> while this one would not:
> @Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.List<businessObjects.Customer>

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


[jira] Closed: (BEEHIVE-929) Compiler check for base type agreement between the type and typeHint attributes of an action output annotation

Posted by "Rich Feit (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-929?page=all ]
     
Rich Feit closed BEEHIVE-929:
-----------------------------

    Resolution: Fixed
     Assign To:     (was: Rich Feit)

Fixed with revision 355298.  I submitted an automated compiler test for this (actionOutputTypeHintMismatchWarning) -- closing.

> Compiler check for base type agreement between the type and typeHint attributes of an action output annotation
> --------------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-929
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-929
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Reporter: Troy Beecroft
>     Priority: Minor
>      Fix For: 1.1

>
> Tools can use the typeHint attribute on an action output annotation to preserve information about parameterized types.  Such tools might jointly manage both the type and typeHint attribute to keep them in synch.  Even so, someone could change one and not the other either directly in source or via a property sheet.  In such cases it would be really handy if there was a compiler check to see that both attributes have the same base type.
> As an example, the following annotation would pass:
> @Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.ArrayList<businessObjects.Customer>
> while this one would not:
> @Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.List<businessObjects.Customer>

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


[jira] Updated: (BEEHIVE-929) Compiler check for base type agreement between the type and typeHint attributes of an action output annotation

Posted by "Rich Feit (JIRA)" <de...@beehive.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-929?page=all ]

Rich Feit updated BEEHIVE-929:
------------------------------

    Fix Version: 1.1

> Compiler check for base type agreement between the type and typeHint attributes of an action output annotation
> --------------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-929
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-929
>      Project: Beehive
>         Type: Improvement
>   Components: NetUI
>     Reporter: Troy Beecroft
>     Assignee: Rich Feit
>     Priority: Minor
>      Fix For: 1.1

>
> Tools can use the typeHint attribute on an action output annotation to preserve information about parameterized types.  Such tools might jointly manage both the type and typeHint attribute to keep them in synch.  Even so, someone could change one and not the other either directly in source or via a property sheet.  In such cases it would be really handy if there was a compiler check to see that both attributes have the same base type.
> As an example, the following annotation would pass:
> @Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.ArrayList<businessObjects.Customer>
> while this one would not:
> @Jpf.ActionOutput(name="customers", type=java.util.ArrayList.class, typeHint="java.util.List<businessObjects.Customer>

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