facebook

problem while migrating from blue 8.6.1 to 9.1

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #320394 Reply

    I am facing some deprecated method problems in myEclipse Blue 9.1.

    My project is almost 5 yrs old. It was running on IBM WSAD 5.1.1 initially and was migrated to RAD 7 first and than finally to My Eclipse Blue 8.6. It is working fine in here. I have just migrated it to V 9.1. It is showing errors in all map.put methods where previously used map.put(int, obj) is not accepted, instead of which method is expecting map.put(obj, obj). How do I compel this version to use it any way, else there will be a hell lot of change in the entire project. Please help.

    Attachments:
    You must be logged in to view attached files.
    #320397 Reply

    support-tony
    Keymaster

    saikatbarman,

    It looks like you may have your java level at 1.4. Map has never had a put(int, obj) method but Java 1.5 introduced autoboxing, where primitives, such as int, would be automatically wrapped in the appropriate object (Integer, in this case), if needed.

    You can set the java compliance level to default to 1.5 (or 1.6) using Window->Preferences->Java->Compiler, or you can set it on a per project basis by right clicking on the project and selecting Properties->Java Compiler.

    Let us know if this works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: problem while migrating from blue 8.6.1 to 9.1

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in