Autumated code transformation from J2SE 1.5 to J2SE 1.4

Hi colleagues !
Is the subject of my topic possible ?

Don't think so. What do you do with classes that didn't exist in 1.4?I think it's possible in theory: implement all those new classes using
Java 1.4 and change the imports accordingly. A bigger (syntactical)
problem is that pooped up for-loop, varargs and generics. Annotations
can simply be ignored. Removal of generics can cause a lot of
explicit runtime casts but you had to cast in Java 1.4 anyway.
Would it be worth all the trouble? Nah, don't think so.
kind regards,
Jos

Similar Messages

  • How to execute a Command Prompt command from J2SE code executing on Windows

    How to execute a Command Prompt command from J2SE code executing on Windows??
    Please help me

    [http://java.sun.com/docs/books/tutorial/getStarted/]
    ~

  • How to specifiy the provider to be Oracle.ManagedDataAccess.Client when creating a dynamic connection string with EF Code First from Database?

    I am trying to use the relatively new Code First from Database with the newest EF (6.x) and on an Oracle database (11g, but I have installed the newest ODTwithODAC). First of all, it works fine as long as the connection string is inside the App.Config file. But when I try to build it dynamically in the C# code (or rather, statically at the moment) it fails. I have it working with a dynamically built connection string when doing Model from Database though, so I'm at a loss right now.
    First, I have created a second constructor for the context class that takes a string and does base(connectionString). Then I build the connection string via
    OracleConnectionStringBuilder oracleBuilder = new OracleConnectionStringBuilder();
    oracleBuilder.DataSource = "TEST.BLA.COM";
    oracleBuilder.UserID = "ABC";
    oracleBuilder.Password = "abc";
    oracleBuilder.PersistSecurityInfo = true;
    string connection = oracleBuilder.ToStrin();
    Now trying to open an EntityConnection by giving to it this provider-specific connection string (or even the static one from the App.Config) doesn't work; I get "keyword not supported: user id"). Trying it by creating a context and giving this connection string doesn't work either. I'm pretty sure that this is because I didn't specify the provider to use; after all, it should use the Oracle.ManagedDataAccess.Client provider and not an SQL Server based one.
    I then tried to get around this by using an EntityConnectionStringBuilder on top and specifying the provider keyword there, but then I get "keyword not supported: provider" when using it in the context constructor, and "the 'metadata' keyword is always required" when using it with the EntityConnection constructor.
    As I said above: I bet it's the provider that I have to specify somehow, but I don't know how. The code that does work is the following:
    using (var context = new Model())
    context.Database.Connection.Open();
    context.Database.Connection.Close();
    When I read context.Database.Connection.ConnectionString, it is exactly the provider-specific connection string I created above, but I don't know where to specify the provider again. Do you know of any way to do this? Certainly there must be one.
    PS: I have also posted this question on http://stackoverflow.com/questions/27979454/ef-code-first-from-database-with-managed-oracle-data-access-dynamic-connection because it is quite urgent and I'd like to use Code First from Database. Otherwise I'd have to go "back" to using Model from Database again, which is not ideal because we have updatable views where the .edmx-file has to be edited after every reload of the model, while with Code First from DB inserting into the view automatically works.

    I am trying to use the relatively new Code First from Database with the newest EF (6.x) and on an Oracle database (11g, but I have installed the newest ODTwithODAC). First of all, it works fine as long as the connection string is inside the App.Config file. But when I try to build it dynamically in the C# code (or rather, statically at the moment) it fails. I have it working with a dynamically built connection string when doing Model from Database though, so I'm at a loss right now.
    First, I have created a second constructor for the context class that takes a string and does base(connectionString). Then I build the connection string via
    OracleConnectionStringBuilder oracleBuilder = new OracleConnectionStringBuilder();
    oracleBuilder.DataSource = "TEST.BLA.COM";
    oracleBuilder.UserID = "ABC";
    oracleBuilder.Password = "abc";
    oracleBuilder.PersistSecurityInfo = true;
    string connection = oracleBuilder.ToStrin();
    Now trying to open an EntityConnection by giving to it this provider-specific connection string (or even the static one from the App.Config) doesn't work; I get "keyword not supported: user id"). Trying it by creating a context and giving this connection string doesn't work either. I'm pretty sure that this is because I didn't specify the provider to use; after all, it should use the Oracle.ManagedDataAccess.Client provider and not an SQL Server based one.
    I then tried to get around this by using an EntityConnectionStringBuilder on top and specifying the provider keyword there, but then I get "keyword not supported: provider" when using it in the context constructor, and "the 'metadata' keyword is always required" when using it with the EntityConnection constructor.
    As I said above: I bet it's the provider that I have to specify somehow, but I don't know how. The code that does work is the following:
    using (var context = new Model())
    context.Database.Connection.Open();
    context.Database.Connection.Close();
    When I read context.Database.Connection.ConnectionString, it is exactly the provider-specific connection string I created above, but I don't know where to specify the provider again. Do you know of any way to do this? Certainly there must be one.
    PS: I have also posted this question on http://stackoverflow.com/questions/27979454/ef-code-first-from-database-with-managed-oracle-data-access-dynamic-connection because it is quite urgent and I'd like to use Code First from Database. Otherwise I'd have to go "back" to using Model from Database again, which is not ideal because we have updatable views where the .edmx-file has to be edited after every reload of the model, while with Code First from DB inserting into the view automatically works.

  • Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    Is there a way to remove a code snippet  from the library of my snippets in Edge Animate CC2014?

    When you click on "My Snippets", it will list down all saved user snippets, which you can right-click and click on "delete" to delete it.

  • SSRS Report Manager error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

    Hi All,
    I am getting error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"
    in one of my Test Environment when trying to run the SSRS 2012 report from report manager.
    Any clue why it is happening.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi All,
    Upon investigation found that there was no space (0 Byte is available) in E drive where underlying SQL DB is residing. 
    Once I cleared the space, report started working and above error was not displaying. 
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • An Error Occurred During Report Processing - Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12019

    When I run the report on production I got the following error message:
    Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the
    request on the server. The status code returned from the server was: 12019
    It hasn’t happen on Dev and Test before.                           
    I googled, The error is described as:
    12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE
    The requested operation cannot be carried out because the
    handle supplied is not in the correct state.
    But I cannot find the solution for that. 
    Has it happend to you before? How to solve that?      

    Same behaviour here, Sharepoint 2013 with SSRS in integrated mode
    Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status
    code returned from the server was: 12019

  • Sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0

    sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0 We got this response(In firebug console) when we try to click on link (after leave webpage for 3 minuts ideal) which is AJAX based. Please reply ASAP because its urgent.

    Hi SP,
    Please check if the following web config appSettins value settings from SSRS server could fix the issue (Note, back up your original web config file before any modification).
    http://stackoverflow.com/questions/10911610/ssrs-webpage-error-status-code-500
    http://srinivasbn.blogspot.in/2013/09/syswebformspagerequestmanagerservererro.html
    http://connect.microsoft.com/SQLServer/feedback/details/782155/ssrs-2012-failed-with-win32-error-0x03e3
    If you have more questions about the SSRS error logs related to this issue, you can post in the SSRS forum for a better assistance with more experts.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Transformation from ods to cube IN BI 7.0

    Hi there, I will appreciate if anybody can help, I want to know if I want to assign the constant value to a field in transformation from ods to cube what is the way out.as i can choose the constant in update in BW3.5 but what is the step in BI 7.0
    thanks
    Soniya

    Go to rule type column right clicj and select rule details. Under rule type u can fuind the option of constant.
    http://help.sap.com/saphelp_nw04s/helpdata/en/e5/f913426908ca7ee10000000a1550b0/content.htm
    KJ!!!

  • How to determine the error code, returned from LDAP server

    I use the next code for connect to LDAP server:
            try{
                ctx = new InitialLdapContext(env, null);
                 //if connection successfull ...
            } catch (NamingException){
                 //if error occured ...
            }Is it possible to determine the numeric error code, returned from server?

    I was just working on using openldap, binding to it and checking for expired passwords and locked accounts and it looks like that an AuthenticationException is thrown in these circumstances and the ctx is null so it is not possible process connection response controls. But you can look at operation attributes if you have password policy enabled and you are looking for these type of errors

  • How do i get a Base code (Material) from a description through BOM?

    Hi,
    the right base code(material) for the production order '68647' is 100827 descriotion 'PIPE BASIC' .
    my requirement is i have an production order and relevent plant, how do i get a basecode ?
    from my previous finding i read that All BOMs will have are associated with the description.
    Targeting this description will always return the right base code for the order.
    but i did not get any idea out of it.
    Please tell me how do i get a Base code (Material) from a description through BOM?
    Thanks in advance.
    Edited by: gulab zehra on Sep 22, 2009 9:17 AM

    Hi Keven,
    I had a look at the example "programmaticbuild2.vi" that you can find at this link:
    in this application the error that eventually comes out from the "BuildTargetBuildSpecification.vi" is written in the error_log.txt through a case structure.
    You can change the code inside the Error case if you want to handle the error in a different way. For example you could connect the error wire to a General Error Handler, that displays a message if an error occurs, or you could light up a led that inform you the error has occurred.
    Best regards,
    Serena M.

  • How to create an Undefined Code Combination from API? (Urgent)

    Hi All,
    I used the following API to create the code combinations in a Inventory custom form.
    SELECT CHART_OF_ACCOUNTS_ID INTO :PARAMETER.CHART_OF_ACCOUNTS_ID
    FROM ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_ID = :PARAMETER.ORG_ID;
    FND_KEY_FLEX.DEFINE(
    BLOCK => 'XX_MRN_TRX_HEADERS',
    FIELD => 'TO_ACCOUNT',
    CODE => 'GL#',
    APPL_SHORT_NAME =>'SQLGL',
    NUM => ':PARAMETER.CHART_OF_ACCOUNTS_ID',
    ID => 'TO_ACCOUNT_ID',
    VRULE => '\\nSUMMARY_FLAG\\nI\\nAPPL=SQLGL;NAME=GL_NO_PARENT_SEGMENT_ALLOWED\\nN\\0GL_GLOBAL\\nDETAIL_POSTING_ALLOWED\\nE\\nAPPL=INV;NAME=INV_VRULE_POSTING
    nN',
    REQUIRED => 'N',
    DINSERT => 'Y',
    VALIDATE => 'FULL',
    USEDBFLDS => 'N');
    This creates the correct ccid if the combination is already available in GL (gl_code_combinations_kfv), But when its a new combination it returns '-1'.
    How can I create an Undefined Code Combination from API in custom forms?
    If any one one can help me on this it'll be a great help.
    Thanks

    Solved by Using FND_FLEX_EXT.GET_COMBINATION_ID.
    Thanks

  • I was in America and you ship over Amercan store now I went to Egypt transformed from Amircan Store to Egypt Store remains the payment method dollar and of possible action Director of through Cards iTunes you if introduced Carte iTunes on your Director of

    I was in America and you ship over Amercan store now I went to Egypt transformed from Amircan Store to Egypt Store remains the payment method dollar and of possible action Director of through Cards iTunes you if introduced Carte iTunes on your Director of ship dollar or is it to Amarcain only Even if there was a deal in dollars and there is the Director of word I want to answer quickly and thank you.   Ihave reedem word

    I'm not entirely sure what your post means. Whether gift cards will become available in Egypt I don't know, I'm just a fellow user, I don't know what Apple might or might not be planning. But as I said, gift cards are country-specific.
    If you are in Egypt then you can only use the Egyptian store. From the US iTunes store terms of use (and other country's stores will be similar) :
    The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance.

  • Tax code length from 2 to 4?

    Hi Experts,
    Do SAP provide a standard way to increase the tax code length from 2 to 4? 
    Thanks,
    Santhosh

    We are keeping our legacy tax codes as such..and now in a position that we may run out of the two digit tax codes.!! Agreed that it's a bad practice. My project manager heard somewhere SAP supports 4 digits tax code. I haven't heard about this before.
    Anyone heard about it? Appreciate your help.
    Edited by: GSAP S - SDT FSS on Jan 25, 2010 7:15 PM

  • Sys.WebForms.PageRequestManagerServerErrorException : An unknown error occured while processing the request on the server.The status code returned from server is 12019 in report viewer

    I am not able to run Report in Report viewer due to the below error:
    Sys.WebForms.PageRequestManagerServerErrorException : An unknown error occured while processing the request on the server.The status code returned from server is 12019 in report viewer
    This report works fine in SSRS tool. but after i deployed into sharepoint 2013 site, it throws error.
    Please advise what needs to be done
    Any help is really appreciated.
    Thanks,
    SP

    Hi SP,
    Please check if the following web config appSettins value settings from SSRS server could fix the issue (Note, back up your original web config file before any modification).
    http://stackoverflow.com/questions/10911610/ssrs-webpage-error-status-code-500
    http://srinivasbn.blogspot.in/2013/09/syswebformspagerequestmanagerservererro.html
    http://connect.microsoft.com/SQLServer/feedback/details/782155/ssrs-2012-failed-with-win32-error-0x03e3
    If you have more questions about the SSRS error logs related to this issue, you can post in the SSRS forum for a better assistance with more experts.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    Thanks
    We are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Transformation from SHOW_SHIPMENT_005 to 856 X12 format using BPEL

    Can someone help me to do Transformation from SHOW_SHIPMENT_005 (generated by Oracle Apps) to 856 X12 format using BPEL. This needs to be consumed by B2B 11g

    Hi,
    Please set property as b2b.setDynamicNameSpace=false.
    To use EDI ecs and xsd files from Oracle B2B 10g version, set this property to true.
    When using EDI ecs and xsd files in Oracle B2B 11g which were used in Oracle B2B 10g, the XEngine may generate dynamic namespace for the translated xml. For example,
    xmlns="NS_31CA8D0F33324F95A0BF15D85539C27E20060518215520" 
    To turn off dynamic namespace generation for inbound EDI messages, set this property to false.
    Thanks
    Satendra Pare

Maybe you are looking for

  • Java client for OSB service

    Hi All, We have to talk to OSB11g proxy service which is created as Any Soap service (url: http://myosb.firmname.com:7001/osb-ws) I have java client applications which need to consume this proxy service built on top of OSB by providing the necessary

  • A button in a region position

    "a button in a region position" - hello, is it possible to place this kind of button among region items? in Button Position options i couldn't find possition i need.. thx, mariam

  • Assignment Profit Center to Plant on material master for Production Order

    Hi Experts Can you help me ! Now I'm trying to lock a profit center to the plant.I've tried searching on the standard menu and customizing but do not get it ? How to assignment profit center to plant or plant to profit center. Regards Dodo M

  • Xcelsius with SAP netweaver connection extremely slow when executing

    Hi everybody, I am building a quite complex Xcelsius dashboard with multiple connections and many components with individual mappings. My initial load time is now around 5 minutes (the netweaver portal loading icon) and the initialization is around 1

  • Adding a lower-third effect - wavy lines with trails plus a titling questio

    Hello All; I saw a cool effect used in a corporate video that I'd like to reproduce. The effect showed a series of lines that moved across the screen in a soryt of curved up/down pattern and then over that was overlaid the title. What is the best and