incubator-imperius-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeraj Joshi (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IMPERIUS-20) No type match between String and CharSequence
Date Mon, 22 Dec 2008 19:24:46 GMT

    [ https://issues.apache.org/jira/browse/IMPERIUS-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12658632#action_12658632
] 

Neeraj Joshi commented on IMPERIUS-20:
--------------------------------------

Committed patch. Thanks David sorry for the delay

> No type match between String and CharSequence 
> ----------------------------------------------
>
>                 Key: IMPERIUS-20
>                 URL: https://issues.apache.org/jira/browse/IMPERIUS-20
>             Project: Imperius
>          Issue Type: Bug
>         Environment: WIndows
>            Reporter: David Wood
>            Assignee: Bill Stoddard
>         Attachments: TypeResolver.java.patch
>
>
> The policy below does not parse and gives an error message on append() because it thinks
String does not match CharSequence, which is what StringBuilder.append() is declared to accept.
 This points out a general problem of matching types against super classes.  I have a patch
for TypeResolve for String, but this may need to be handled more generically.
> Import Class java.lang.StringBuilder:stringBuilder;
> Strategy Execute_All_Applicable;
> Policy 
> {
> Condition 
> {  
>      4 == 4
> }
> Decision 
> {   
> 	stringBuilder.append("O1")
> }
> }:2;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message