[svn] 4136: Find loop variables initialized with "weak" types, e.g., NULL or VOID, and

Revision: 4136
Author: [email protected]
Date: 2008-11-18 14:50:38 -0800 (Tue, 18 Nov 2008)
Log Message:
Find loop variables initialized with "weak" types, e.g., NULL or VOID, and
use the variable type used within the loop to normalize the local's type.
Modified Paths:
flex/sdk/trunk/modules/asc/src/java/adobe/abc/GlobalOptimizer.java

Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

Similar Messages

  • Variable initialized with wrong message type

    Hi,
    I have a BPEL process variableA of Message type A as defined in the partnerlink WSDL file. This variable get initialized during operation A from the partnerlink. The WSDL has another message type B defined for another operation B.
    During runtime when operation A is called variable A gets initialized with message type A, however when operation B is invoked with mesage type B variableA gets initialized again with the content of message type B even though it's defined to be of message type A. Below are the snippets from the WSDL and BPEL process file
    WSDL file ..
    <message name="MessageTypeA">
    <part name="payload" element="mpx:MessageARequest"/>
    </message>
    <message name="MessageTypeB">
    <part name="payload" element="mpx:MessageBRequest"/>
    </message>
    <portType name="MutilPort">
    <operation name="A">
    <input message="tns:MessageTypeA"/>
    </operation>
    <operation name="BA">
    <input message="tns:MessageTypeB"/>
    </operation>
    </portType>
    Process BPEL file
    <variable name="VariableA"
    messageType="tns1:MessageTypeA"/>
    <variable name="VariableB"
    messageType="tns1:MessageTypeB"/>
    <pick name="Pick_2" createInstance="yes">
    <onMessage portType="tns1:MutilPort" operation="square"
    variable="VariableA" partnerLink="Multiplex">
    <sequence name="Sequence_1">
    <assign name="Assign_2">
    <copy>
    <from variable="VariableA" part="payload"
    query="/ns1:MessageARequest/ns1:Operand1"/>
    <to variable="ResponseVariable" part="payload"
    query="/ns1:AllOpProcessResponse/ns1:Result1"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    <onMessage portType="tns1:MutilPort" operation="addition"
    variable="VariableB" partnerLink="Multiplex">
    <sequence name="Sequence_2">
    <assign name="Assign_1">
    <copy>
    <from variable="VariableB" part="payload"
    query="/ns1:MessageBRequest/ns1:Operand5"/>
    <to variable="ResponseVariable" part="payload"
    query="/ns1:AllOpProcessResponse/ns1:Result1"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    </pick>
    Please can anyone shed some light on why and how this can happen and where is it going wrong.
    Thanks,
    Shishir

    Looks like the destination which is used by your EG has default settings,
    particulary the RedeliveryLimit param. If it is set to -1 (default setting)
    WL will try to redeliver the message forever in case of any error. Just set
    it to something else. You can also specify an ErrorDestination and hadle
    error messages specifically in it.
    Denis.
    <Gunjan Shukla> wrote in message news:[email protected]..
    Hi,
    We are using WLI 8.1, in one of our applications I have a message broker
    channel configured to listen to rawdata type messages. A jms event
    generator is configured to publish messages, which are sent to a jms
    topic, on this channel.
    We have no control over type of messages sent by client applications, when
    some client application sends an ObjectMessage instead of BytesMessage,
    following error is thrown
    ####<Jun 1, 2006 10:47:14 AM GMT-07:00> <Error> <WLW> <P931467> <cgServer>
    <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>>
    <BEA1-004324CB0C4F26C12C0A> <000000> <Cannot publish non-BytesMessage to
    channel of type RAWDATA>
    ####<Jun 1, 2006 10:47:14 AM GMT-07:00> <Error> <WLI-Core> <P931467>
    <cgServer> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'>
    <<anonymous>> <BEA1-004324CB0C4F26C12C0A> <BEA-489048> <Not a
    BytesMessage>
    server keeps throwing this exception and fills the logs and ultimately
    server needs to be re-started.
    Can somebody point me to whether its possible to catch these exceptions in
    a process?
    Or alternatively is it possible to somehow ignore the messages with
    mismatched message type?
    Any ideas are greatly appreciated.
    Thanks and regards,
    Gunjan

  • The TV was setup initially with signal type of cable. How do I change it from cable to antenna?

    The TV was setup initially with cable. We have now moved it and need to change the signal type to antenna but when I go to Channel Settings to do that it is grayed/locked out. What do I need to do to change the signal type to antenna?

    savra wrote:
    My HP Officejet Wireless 6500 says it is not connected.  I have attempted to connect it but when I try to enter the network key or password the keyboard only enters letters not numbers.  How do I switch to numbers?  I can pick the network but not enter passcode .   When I try it locks up and can not be shut off.  I have tried both having the printer connect by cable to computer and not connected.  It prints fine but I can not find the ink levels since it says it is not connected to computer.  Which should I do connect it by cable or not?  I am using a pc not a notebook. 
    Keep pressing the same button over and over and watch the magic.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • Why won't Family Locator find a precise location with iPhone 5S? I set it up and it says it can only provide an area location.

    Why won't Family Locator find a precise location with iPhone 5S? I set it up and it says it can only provide an area location.

    lewismatt
    Great question! This is a feature not available yet in the iphone devices. Precise location is not available, only course location. Learn more about the feature https://wbillpay.verizonwireless.com/vzw/nos/safeguards/SafeguardProductDetails.action?productName=familylocator .
    JorgeO_VZW
    Follow us on Twitter @VZWSupport
    If my response answered your question please click the �Correct Answer� button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Loop at table with unspecified type but with where-condition

    Hi,
    Doing a loop over an internal table with unspecified type and in addition using a condtion may be done as follows: Thereby the
    condition would be "... WHERE parentid EQ i_nodeid" if the type of <it_htab> would be static. However dynamic specification of a component through bracketed character-type data objects is not possible.
    FIELD-SYMBOLS: <it_htab> TYPE STANDARD TABLE,
                                    <wa_htab> TYPE ANY,
                                    <parentid> TYPE rsparent.
      ASSIGN me->ref_htab->* TO <it_htab>.
      LOOP AT <it_htab> ASSIGNING <wa_htab>.
        ASSIGN COMPONENT 'PARENTID' OF STRUCTURE <wa_htab> TO <parentid>.
        CHECK <parentid> EQ i_nodeid.
      ENDLOOP.
    Since you have to loop over the whole table and to check within the loop whether the condition is fullfilled, this is rather bad for performance.
    Questions: Are there any tricks to do this better?
    Best Regards and Thank you,
    Ingo

    >
    Lalit Mohan Gupta wrote:
    > you can put the condition in the where clause....
    only if you have the upcoming 7.0 EhP2 (Kernel 7.02 or 7.20) the following dynamic where works:
    DATA cond_syntax TYPE string.
    cond_syntax = `parentid = i_nodeid`.
    LOOP AT <it_htab> ASSIGNING <wa_htab>
                           WHERE (cond_syntax).
    in older releases you would have to use program generation to achieve a dynamic where... .
    Kind regards,
    Hermann

  • How to find a Sales document with Certain type and having a certain Matnr ?

    How can I find a sales document with a certain type and having a certain materail.
    is there any table to find that ??
    Thanks
    Venkat

    Hi Venkat,
    I found this table interesting. Pls. check with the table VBAP_VAPMA, it has the data of the header along with the items.
    Reward if it helps.
    Regards,
    Sreekanth

  • How do i restrict access to clients coming in with weaker SSL keys ( 56 bits or les ) and redirect them to a special page ?

    I tried the "ssl-check" PathCheck directive. Doesn't seem to do anything.

    Hi,
    To restrict access(56 bits or less). follow the below steps.
    1. Go to your Webserver instance ServerManager
    2. Click Preferences Tab ------> Encryption Preference
    ------> There disable "DES with 56 bit
    encryption and MD5 message authentication."
    for SSL 2.0 ciphers or SSL3.0 Ciphers. Which ever
    needed.
    3. Save and Restart the Webserver instance.
    The above steps are for 4.x version.
    Thanks,
    Daks.

  • I just upgraded to Mavarick.  I can no longer find my mailboxes in my e-mail.  I read to go to 'finder'/ go go to folder the type in ~/Library which I did and I eventually found all my mailboxes.  But I want them to be available from my e-mail.  How ?

    I just upgraded to Mavarick.  I can no longer find my mailboxes in my e-mail.  I went to 'finder', under 'go'> go to folder / mail and eventually I found all my missing mailboxes.  But I want them to show up as they used to, in my e-mail.  How do I get them back?

    .........and just wasted more time clicking on the 'chat online' link which of course does nothing.
    I'll be spending time searching for an alternative ISP instead. Absolutely sick of this.

  • Issue with - "cannot find symbol - variable JOptionPane"

    need some help, got the below loop and want it to be able to loop by the number input by the input dialog. when i compile it i get an error in BlueJ. the error is "cannot find symbol - variable JOptionPane". Any help. have tried a few things however cannot get this to work at all. any suggestions?
    public void numberLoop()
    String qA = JOptionPane.showInputDialog(null,"How many times should this be completed (e.g. 1,2,3,4)?","Question",JOptionPane.QUESTION_MESSAGE);
    int qA2 = Integer.parseInt(qA);
    for (int startNum = 1; startNum <= qA2; startNum++)
    System.out.println(startNum + " squared is " + (startNum * startNum));
    }

    never mind i fixed it. forgot the below.
    import javax.swing.JOptionPane;
    LOL

  • Recently in the Bahamas where I helped a friend with his new iPad. We could not find Bahamas in initial setup so we used United States and could not enter Visa/MC billing address in Bahamas. iTunes rejected, billing info is not what's on file. What to do?

    Recently in the Bahamas where I helped a friend with his new iPad. We could not find Bahamas in initial setup so we used United States and could not enter Visa/MC billing address in Bahamas. iTunes rejected, billing info is not what's on file. What to do?

    Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app.  I am certain other applications also need this information.  Although lengthy, I could not find a more comprehensive place to retrieve this information.  Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
    Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
    When a solution is found please mark the post that solves your issue.
    Every problem has a solution!

  • Form with loop variable

    I have a form that has text boxes where the name is created
    dynamically with a loop variable.
    <cfset formcounter = 1>
    <cfoutput query="ViewParts">
    <input type="hidden" name="RecordID#formcounter#"
    value="#RecordID#">
    <cfset formcounter = formcounter + 1>
    </cfoutput>
    <cfoutput><cfset formcountermax =
    #formcounter#></cfoutput>
    on the page it submits to I have:
    <cfloop from="1" to="#formcountermax#"
    index="loopcount">
    <cfif form.Qtyshipped1 NEQ "0" AND form.Qtyshipped1 NEQ
    "">
    <CFQUERY NAME="InsertQty" DATASOURCE="mydatasource">
    INSERT INTO InvoiceTable
    InvoiceID,
    QtyShipped,
    RecordID
    VALUES
    '#GetLastInvID.InvoiceID#',
    #form.Qtyshipped1#,
    #form.RecordID1#
    </CFQUERY>
    </cfif>
    Instead of the "1" at the end of the inserted variables, I
    want it to be my loopcount. I just don't know how to name it so
    that is possible.

    Mark, try using the values I placed below, I believe that
    should work. Also, I didnt see a close tag for your <cfloop>
    so I left it out as well.
    <cfloop from="1" to="#formcountermax#"
    index="loopcount">
    <cfif form.Qtyshipped1 NEQ "0" AND form.Qtyshipped1 NEQ
    "">
    <CFQUERY NAME="InsertQty" DATASOURCE="mydatasource">
    INSERT INTO InvoiceTable
    InvoiceID,
    QtyShipped,
    RecordID
    VALUES
    '#GetLastInvID.InvoiceID#',
    '#evaluate('form.Qtyshipped' & '#loopcount#')#',
    '#evaluate('form.RecordID' & '#loopcount#')#'
    </CFQUERY>
    </cfif>

  • Initalizing loop variable - best practice?

    Hello All,
    What do people think is the best way to initalise a variable that is going to be assigned in a loop and used afterwards.
    For instance say I had a vector of objects of some class (lets say class "Bean") and I want to find a bean in that Vector with a specific attribute value. I set up a loop variable, myBean, of type Bean and then test each object by assigning it to myBean:
    Iterator it = myVector.iterator(); //1
    while (it.hasNext()) {  //2
    myBean = (Bean)it.next(); //3
    if (myBean.getMyAttribute() == testValue) break; //4
    myBean.doSomething(); //5
    The question is how do I best set up myBean? I would like to simply place the line:
    Bean myBean;
    before the loop, except this is bad practice as the variable may never be initalised, I know it will in this simple case but in general its bad to leave null variables around.
    I could use:
    Bean myBean = new Bean();
    but that is creating an object for no reason, and if I set up the variable in the loop (Bean myBean = (Bean)it.next()) it will not be available to me after the loop has terminated?
    So is there a way to do this that doesn't require creating a useless object?
    cheers
    matt

    It's not clear whether you need to use myBean outside the while loop or not. If you are not going to use myBean outside the loop,
    while (it.hasNext()) { //2
       Bean myBean = (Bean)it.next(); //3
       if (myBean.getMyAttribute() == testValue) break; //4
       myBean.doSomething(); //5
    }If you are going to use myBean outside the loop, you must declare it outside the loop. But you can set it to null so you don't needlessly create an object.
    Bean myBean = null;
    while (it.hasNext()) { //2
       myBean = (Bean)it.next(); //3
       if (myBean.getMyAttribute() == testValue) break; //4
    if(myBean != null) myBean.doSomething(); //5

  • What is the scope of implicit loop variables?

    Hi,
    I'm facing some strange error from the ABSL editor (syntax checker).
    In ABSL the loop variables are implicit and don't have to be declared in the head section of the script.
    My question now is simple: How is the scope/visibility of such loop variables specified ?
    There's a complete code snippet below.
    In line no.9, there's the first time use of implicit loop variable 'task_inst'.
    Because of type inference, it will be typed as MasterDataWanneBe/Tasks (which is my own BO type).
    In line no.20, I want to use the same variable name in a different loop, outside the parenthesis/scope of the first first use.
    Now the ABSL syntax checker complains about incompatible types (see code snippet)
    Thus the type inference should result in the, (lets say 'local') type Project/Task, which is the one I was querying for.
    To me it looks like, that loop variables implicitly get a global scope (hopefully bound to this ABSL file only).
    I would like to see the scope/visibility of loop variables restricted to the parenthesis.
    In other words only inside the loop.
    Hint
    I heard (from little sparrows), that local variable scoping is not possible because of underlying
    generated ABAP code. If so, than it would be helpful to print warnings, in case of types are compatible
    but used in different scopes. Think about the unintended side effects.
    import ABSL;
    import AP.ProjectManagement.Global;
    var query_tasks;
    var query_tasks_param;
    var query_tasks_result;
    foreach (empl_inst in this.Employees) {
         foreach (task_inst in empl_inst.Tasks) {
             //   ^^^^^^^^^  first time use
              task_inst.Delete();
    // ===========================================================================
    query_tasks = Project.Task.QueryByResponsibleEmployee;
    query_tasks_param = query_tasks.CreateSelectionParams();
    query_tasks_result = query_tasks.Execute(query_tasks_param);
    foreach (task_inst in query_tasks_result) {
          // ^^^^^^^^^ Error: 4
          // The foreach loop variable is already inferred to an incompatible type:
          // Node(MasterDataWanneBe/Tasks). Expected Node(Project/Task)

    Yes, variable declarations in ByD Scripting Language indeed have (snippet) global visibility. In the FP 3.0 release the variables can be declared anywhere in the snippet (not only in the beginning, as with FP 2.6), however still not within code blocks, i.e. within curly braces ({}). Therefore variable name shadowing is still not supported and because of the global visibility of variables they cannot be reused for a different type, later in the same snippet. This is because of the statically typed nature of ByD Script, despite the type inference convenience.
    Kind regards,
    Andreas Mueller

  • Regarding apple loops that come with GB

    I recently had help with reindexing my apple loops. After deleting all my loop indexes for both the Apple loops that came with GB and the ones I've bought from other sites, I dragged all the loop folders back into GB. I had no problems with dragging the user loops (the ones I bought) and reindexing them. However, for some reason, the apple loops folder that came with GB will not reinstall. The window comes up after I drag it into GB that it is reindexing and then the window comes up with me needing to sign in to ok the process. But when the reindexing is done and I go to show all to see if the apple loops are there, the only ones I can see under show all are the ones that I bought and downloaded. What is weird is that my apple loops that came with GB are on my hard drive as when I click on that folder (Mac hd/library/audio/apple loops/apple/apple loops for garageband) they are all showing there. I can click on them and the demo plays. When I check in the same path but choose apple loops index instead of apple loops, there are no indexes to be found (as should be as I dragged them earlier to trash), but obviously it means the reindexing wasn't done even though the window showed that the process was taking place. I still have all the indexes removed from both apple loops and user loops in my trash. I don't want to delete them in case I need to put something back to fix this problem.
    Any help for me with this? I did do disk utility/repair permissions, but that doesn't seemed to have helped that problem as the list when it was finished did not include anything for GB. I really need to get these loops back in as I already have songs done for leading worship that need those loops.
    Again, any help would be needed and much appreciated.
    Steve

    Let me know how it went if you do
    i can't say i'm any clearer on the issue. another intel mac lists the premissions as
    system Read/Write
    admin Read/Write
    everyone read Only
    and a PPC shows
    me
    system
    admin
    others
    all as Read/Write
    maybe I should now remove myself from having permission to do it
    without a more solid knowledge base from which to draw, it just seemed like a good idea. before i made a change like that and left it, i'd want to do a bit of reading on why permissions should/would be set the way they are. iow, find out if there's a reason i'm not listed, and granted full access as an admin.

  • Charateristic variable with Processing type "replacement path"

    Hi all
    I am using BI 7.0;
    I have a characteristic ZPL_CNT in one dimensions of a Cube;
    now i want to use the value of  the ZPL_CNT as column in Query.
    So i created a formula and a formula variable with replacement path of processing type:
    setting:
    i created a new formula "Calculated MBZ"
    the formula variables is "ZMBZ" and inserted the variables into "Calculated MBZ"
    Reference characteristic: ZPL_CNT
    Processing type : Replacement path
    Replace variable with: Attribute value
    Attribute: characteristic Reference (constant 1)
    But i find the value in Query incorrect
    Can anyone help me solve this problem?
    Thanks!

    Hi Dragon,
    Can you not drag and drop this characteristic directly in the columns...have I misunderstood something?
    I think when you use replacement path in the formula variable , the fromula variable tries to find the reference characteristic value at each record level in the report and then replaces it with attribute value as defined and may be in your case as the characteristice is not defined in the row , it has problems to identify which value of the characteristic it has to replace.
    Regards,
    Sunmit.

Maybe you are looking for

  • HT1369 my iPod nano 4th generation is not recognized by iTunes.

    I have always used iTunes with this iPod.  I have Christmas music on it and I want some other music.  This is only used for music on the Bose. It worked before Christmas but there has been updates to iTunes since then so don't know if thats the probl

  • AP Discount on Vendor Payment

    Hi FI Gurus, Can you please help with the below.... When I run Payment program for Vendor (Transaction F110), system is taking/considering the discount amount even after the expiry of the cash discount period (as per vendor/invoice payment terms). Id

  • Problem with setting tooltips for items of a JCombobox

    hi guys, I want to set tooltips for items of JComboBox & the code that i have written is given below , but the tooltip text is set for all the items of Nonitindustrycombo but the tooltips remain the same even for Nonitdesgcombo's items. Is that we ne

  • Trackpoint BUTTON differences between the X220 and X201

    Hello, Has anyone noticed that the X220 trackpoint buttons have substantially less travel than the X201's? I find my thumb starts to hurt after half an hour of using the X220, wheras I could use my X201 all day without a problem. It's gotten so bad t

  • Web service proxy deployment

    Hi , I am using JDI environment to develop a webdynpro dc that use web service model . after the proxy generation and the local tests I want to deploy the webdynpro application to development environment and test environment , but the proxy client st