Deprecated

What does it mean when it says Warning [deprication] show() in java.awt.Dialog() has been deprecated?

I can't speak for the rest of the world, but the way I use @Deprecated is as shorthand for:
1. This method is no longer fully supported.
2. Use it at your own risk.
3. If things go wrong while/because of your choice to use it see point 1.
4. I (the developer of this API) retains the right to drop this method from the API in in any future version WITH NO FURTHER WARNING.
5. However, the method will be retained in the API for backward compatibility reasons until it's retention becomes problematic. Note that "proven bad" methods may be dropped from the API in the very next version. Which in practice usually means you've got 3 months to get your ass off it.
Whomever invented @SuppressWarnings("deprecation") should be summarily flogged!

Similar Messages

  • Deprecation warning for getFontMetrics(java.awt.Font) in java.awt.Toolkit

    Hi all,
    When I use the following code
    JComponent c;
    FontMetrics metrics = getToolkit().getFontMetrics(c.getFont());
    I get this following warning during compilation:-
    warning: getFontMetrics(java.awt.Font) in java.awt.Toolkit has been deprecated
    JDK suggests to use getLineMetrics() of the Font class.
    But there's an issue with that: if I use getLineMetrics(), there is no API method that I can use to get the width of a string as opposed to FontMetrics which provides stringWidth(String str) method for that purpose. In fact all the methods in FontMetrics are not mapped into LineMetrics.
    Could anyone please help or provide me at least some pointers on how to tackle this issue so that I can get rid of the deprecated method along with the existing methods mapped to equivalent APIs? The bottomline is that I should be able to maintain the existing functinality of my application for those part of code that uses getToolkit().getFontMetrics().
    Thank you for your help in advance.
    -Sanjoy Das

    Use Graphics.getFontMetrics(font) instead.
    After creation your frame and calling frame.show();
    You can access it like that
    frame.show();
    frame.getGraphics().getFontMetrics(new Font("Arial",0,10));
    before showing graphics is null.
    Or just create a BufferedImage and ask it for graphics.
    BufferedImage img=new BufferedImage(...);
    img.getGraphics().getFontMetrics(font);
    regards
    Stas

  • Adobe Configurator and deprecated Flash-based panel support in Adobe CC products

    Does Configurator 4.0 (or Configurator 3) support the creation of HTML5-based panels?
    I received the following email from Adobe: 
    Photoshop CC, starting in the middle of 2014, will remove support for Flash-based extensions. All other Creative Cloud products have already marked Flash-based panel support as deprecated at this time, meaning no future enhancements or bug fixes will be coming for Flash-based extensions.
    The current version of Photoshop CC already includes support for a new type of HTML5 based panel. We are currently working on a new version of Adobe Extension Builder designed specifically to support the creation of these HTML5 based panels.  You can download a free preview here: http://labs.adobe.com/technologies/extensionbuilder3/.
    Details about developing HTML5 extensions for Photoshop as well as for other Creative Cloud products are available in the Extension Builder pre-release program here: https://adobeformscentral.com/?f=6V6IgvE0yLQQ7bgadxNXaw .   You can also join the Photoshop developers' prerelease program for details specific to Photoshop.  If you're interested, please let me know and I will get you setup.
    Will the panels created by Configurator 4.0 work in PS CC after the middle of 2014 when support for Flash-based extensions is removed from Photoshop CC?  For that matter, will the panels created in Configurator 3.0 work in PS CC after the middle of 2014?

    I've carefully read all the posts here and would like to give my feedback on the whole question. I'm a professional retoucher and a teacher as well, and during my professional carrer I've built dozens of panels.
    I do really take advantage of boosting my productivity with any customized panel, as automation is something that adds speed, reliability and dramatically reduce errors during repetitive tasks. Therefore, I can't live without it.
    Now, I  understand why Adobe wants to move towards HTML 5, but please give us the ability to keep our work at the same level of efficiency we currently have. Photoshop is not for amateurs, it's a professional software. And professionals must keep their productivity, for sure they can't afford any loss of it, especially in these times!
    Moving from Flash to HTML 5  means rebuilding all the existing panels from scratch: how much this will cost to us in terms of time (and money) if we could have an HTML 5 version of Configurator? And how much, if we don't have a tool like Configurator at all? Three times, ten times as much? Maybe Adobe knows the answer, not me, I'm not a coder. But I'd like to know this answer.
    Further, picture this: I've taught several classes for at least  five intercontinental companies on how to build actions and organize them into panels for improving their productivity. Every time the response was the same: BOOM!
    They had a huge speed improvement in their daily workflows, and started to build dozens of panels by themselves for any possibile use. It was like opening a Pandora's box for them (their words).
    Every one who attended my classes, have taught the same topic inside their company and the reaction was always the same. So now, in every company in which I've taught building panels and actions, there are hundreds of panels for many different uses, all over the world. Of course, as 100% of them were specifically built for internal use, they shared the panels among them, but not outside their company.
    Many of them who are now mid-advanced users, have written to me asking how they could keep their panels working correctly in the next CC version of Photoshop. I have no solution for them, unless many of them become coders. That's a bad answer, I must admit, but no way out right now.
    Their reply to me was very straight: "well, we won't upgrade any copy of Photoshop until we can keep our panels working correctly for sure. For us is much more important being productive and efficient than upgrading to the latest version, if this means to lower our performance, no doubt."
    Adobe wanted to integrate all their softwares into the Creative Cloud. So far so good, I'm for it. But when you decide to integrate everything saying to the world that "it's for the sake of a better productivity", then you must really integrate them. Otherwise people will think that it was only a commercial move. So why we can't build panels for the applications inside Muse, for example? It was introduced to allow people to build  websites quickly and efficiently using HTML 5, taking care about the layout instead of investing too much time in coding.
    Exactly what Configurator allowed to do. Focus on the result with minimal time cost, aka money cost.
    World is running faster, therefore we need to work faster too. And without Configurator we won't. I can't disagree with all the people that won't upgrade Photoshop, if this means that they'll work slower because they can't use their panels carefully made by themselves. Photoshop is a tool for producing ideas and other nice stuff, like any software. The faster it is, the most people will like it, the better will sold. A simple truth. Think about what happened to Apple Finalcut ProX and how many users switched to Premiere. Photoshop has no competitors except new versions of itself.
    And this does not apply only the CC users. Look at the bigger picture: how many users still using CS6 with all their fully working panels won't upgrade to CC if they know they'll reduce their productivity?
    Think about the answer. Carefully.

  • Deprecated API and RFC connection issues in PI 7.1

    Hi all,
    I am new to this Forum..
    I am working in File to Proxy scenario where i am using UDF to implemnt few functions.
    But i am getting the following Error :
    Source text of object Message Mapping: MM_FILE_10_943 | urn://fiat.com/mm/if_10_943 has syntax errors:
    Function sendMonitor, Line 14:
    cannot find symbol symbol  : class CallRFCManager location: class com.sap.xi.tf._MM_FILE_10_943_    CallRFCManager rfc=new CallRFCManager();    ^
    Function sendMonitor, Line 14:
    cannot find symbol symbol  : class CallRFCManager location: class com.sap.xi.tf._MM_FILE_10_943_    CallRFCManager rfc=new CallRFCManager();                           ^
    Function sendMonitor, Line 17:
    cannot find symbol symbol  : variable Constants location: class com.sap.xi.tf._MM_FILE_10_943_         if(rfc.connect(Constants.XISYSTEM)){                             ^ Note: /disk2/sap/TX0/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map9c6141de40a611e0ad290000003d38da/source/com/sap/xi/tf/_MM_FILE_10_943_.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /disk2/sap/TX0/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map9c6141de40a611e0ad290000003d38da/source/com/sap/xi/tf/_MM_FILE_10_943_.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 3 errors
    The code i am using is:
       //write your code here
       // INPUT: activate ; id; descrizione
       AbstractTrace trace;
       String messID;
       java.util.Map map;
       trace = container.getTrace();
       map = container.getTransformationParameters();
       messID = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
       CallRFCManager rfc=new CallRFCManager();
       if (a.equals("true")){
            if(rfc.connect(Constants.XISYSTEM)){     
                  try{
                        rfc.traceMonitor(messID,b,c);
                        trace.addInfo("Ok trace monitor");
                        rfc.disconnect();
                  } catch (Exception ex) {
                        trace.addInfo("Errore in sendMonitor CAUSA:" + ex.getMessage());
                        rfc.disconnect();
            }else{
                      trace.addInfo("Errore in sendMonitor CAUSA: errore sulla connessione ad XI"); 
       return a;
    Pleasae help me ....what is the reason for this ???

    Hi ,
    the package com.fiat.sapiens.udf.* is saved in the IA_JAVA.zip file.
    I imported it in the imported archive and added this jar in the import tab of function library
    i also added ti in the archive used tab in function.
    But still it is showing this Error.
    under IA_JAVA.zip  i have  testJCO.java which has the folowing code:
    package com.fiat.sapiens.xi.udf;
    // Referenced classes of package com.fiat.sapiens.xi.udf:
    //            CallRFCManager
    public class TestJCO
        public TestJCO()
        public static void main(String args[])
            System.setProperty("SAPSYSTEMNAME", "DX0");
            CallRFCManager rfc = new CallRFCManager();
            rfc.connect("XI");
            try
                rfc.schedNR("10", "20", "30", "40", "50", "60");
            catch(Exception e1)
                e1.printStackTrace();
            if(rfc.connect())
                rfc.connect();
                try
                    String a = rfc.checkRARCRE("ZZ");
                    System.out.println(a);
                catch(Exception e)
                    e.printStackTrace();
            System.out.println("");

  • Warning [deprecation] setStatus(int,javax.lang.String)

    warning [deprecation] setStatus(int,javax.lang.String) in HttpServletResponseWrapper
    can I find a jee.jar to remplace j2ee.jar to take the resolution of this problem

    The resolution of this problem isn't to fiddle about with .jar files, but to change the code to call the method now recommended instead of the deprecated method. Or just ignore the warning - the code will still work.
    BTW surely it's java.lang.String?

  • ORA-32004: obsolete and/or deprecated parameter(s) specifiedORACLE instance

    Hi friends,
    i am trying to install BIW 3.0b (win-2000, oracle 9.2.0.1.0 (patch 9.1.0.4.1)& j2sdk 1_4_1)
    while installing database instance i am getting this problem.
    INFO 2007-09-26 15:57:09
    Copying file C:/SAPinst ORACLE KERNEL/keydb.xml to: C:/SAPinst ORACLE KERNEL/keydb.1.xml.
    INFO 2007-09-26 15:57:09
    Creating file C:\SAPinst ORACLE KERNEL\keydb.1.xml.
    INFO 2007-09-26 15:58:14
    Processing of host operation t_HostInfo_SHARED succeeded.
    INFO 2007-09-26 15:58:35
    The 'saploc' share exists at directory 'E:\usr\sap'. Choosing drive E: as SAP System drive.
    INFO 2007-09-26 16:00:26
    Copying file C:/dump/export1/DB/ORA/DBSIZE.XML to: DBSIZE.XML.
    INFO 2007-09-26 16:00:26
    Creating file C:\SAPinst ORACLE KERNEL\DBSIZE.XML.
    INFO 2007-09-26 16:00:26
    Copying file system node C:\dump\export1/DB/ORA/DBSIZE.XML with type NODE to DBSIZE.XML succeeded.
    INFO 2007-09-26 16:00:26
    Processing of all file system node operations of table tORA_filecopy succeeded.
    INFO 2007-09-26 16:00:26
    Copying file C:/SAPinst ORACLE KERNEL/DBSIZE.XML to: C:/SAPinst ORACLE KERNEL/DBSIZE.1.XML.
    INFO 2007-09-26 16:00:26
    Creating file C:\SAPinst ORACLE KERNEL\DBSIZE.1.XML.
    INFO 2007-09-26 16:00:26
    Copying file C:/dump/export1/DB/DDLORA.TPL to: DDLORA.TPL.
    INFO 2007-09-26 16:00:26
    Creating file C:\SAPinst ORACLE KERNEL\DDLORA.TPL.
    INFO 2007-09-26 16:00:26
    Copying file system node C:\dump\export1/DB/DDLORA.TPL with type NODE to DDLORA.TPL succeeded.
    INFO 2007-09-26 16:00:26
    Processing of all file system node operations of table tORA_filecopy succeeded.
    INFO 2007-09-26 16:00:33
    Moving file C:/SAPinst ORACLE KERNEL/DDLORA.TPL to: orig_ddl_ora_tmp.tpl.
    INFO 2007-09-26 16:00:33
    Moving file C:/SAPinst ORACLE KERNEL/changed_ddl_ora_tmp.tpl to: DDLORA.TPL.
    INFO 2007-09-26 16:00:33
    Removing file C:/SAPinst ORACLE KERNEL/orig_ddl_ora_tmp.tpl.
    INFO 2007-09-26 16:02:00
    Package table created
    PHASE 2007-09-26 16:02:10
    SAP Business WareHouse
    PHASE 2007-09-26 16:02:10
    SAP Web Application Server
    PHASE 2007-09-26 16:02:10
    Request common parameters of SAP System
    PHASE 2007-09-26 16:02:10
    Create operating system accounts
    INFO 2007-09-26 16:02:10
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1004 ACCOUNTNAME=biwdev\SAP_LocalAdmin ACCOUNTTYPE=GROUP DESCRIPTION=SAP Local Administration Group MEMBERSHIPSEPARATOR=, OPMODE=CREATE  succeeded.
    INFO 2007-09-26 16:02:10
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1005 ACCOUNTNAME=biwdev\SAP_BWD_LocalAdmin ACCOUNTTYPE=GROUP DESCRIPTION=SAP Local Administration Group MEMBERSHIPSEPARATOR=, OPMODE=CREATE  succeeded.
    INFO 2007-09-26 16:02:10
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1006 ACCOUNTNAME=biwdev\SAP_BWD_GlobalAdmin ACCOUNTTYPE=GROUP DESCRIPTION=SAP Global Administration Group MEMBERSHIPSEPARATOR=, OPMODE=CREATE  succeeded.
    INFO 2007-09-26 16:02:10
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1007 ACCOUNTNAME=ORA_BWD_DBA ACCOUNTTYPE=GROUP CONDITION=YES DESCRIPTION=Database Operator Group MEMBERSHIPSEPARATOR=, OPMODE=CREATE  succeeded.
    INFO 2007-09-26 16:02:10
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1008 ACCOUNTNAME=ORA_BWD_OPER ACCOUNTTYPE=GROUP CONDITION=YES DESCRIPTION=Database Administration Group MEMBERSHIPSEPARATOR=, OPMODE=CREATE  succeeded.
    INFO 2007-09-26 16:02:10
    Processing of all account operations of table t_SAPComponent_Accounts_Accounts_SHARED succeeded (operation CREATE).
    INFO 2007-09-26 16:02:15
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1009 ACCOUNTNAME=biwdev\bwdadm ACCOUNTTYPE=USER DESCRIPTION=SAP System Administrator MEMBERSHIP=biwdev\SAP_BWD_GlobalAdmin,biwdev\Users,Administrators,ORA_BWD_DBA,ORA_BWD_OPER,biwdev\SAP_LocalAdmin,biwdev\SAP_BWD_LocalAdmin MEMBERSHIPSEPARATOR=, OPMODE=CREATE USERPASSWORD=*...  succeeded.
    INFO 2007-09-26 16:02:15
    Changing account ACCOUNTID=S-1-5-21-1844237615-963894560-725345543-1010 ACCOUNTNAME=biwdev\SAPServiceBWD ACCOUNTTYPE=USER CONDITION=YES DESCRIPTION=SAP System Service Administrator MEMBERSHIP=biwdev\SAP_BWD_GlobalAdmin,Administrators,ORA_BWD_DBA,ORA_BWD_OPER,biwdev\SAP_LocalAdmin,biwdev\SAP_BWD_LocalAdmin MEMBERSHIPSEPARATOR=, OPMODE=CREATE USERPASSWORD=*...  succeeded.
    INFO 2007-09-26 16:02:15
    Processing of all account operations of table t_SAPComponent_Accounts_Accounts_SHARED succeeded (operation CREATE).
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:16
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    PHASE 2007-09-26 16:02:17
    Request operating system user information
    INFO 2007-09-26 16:02:17
    Successfully added privileges 'SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege' to account 'S-1-5-21-1844237615-963894560-725345543-1009' on host 'biwdev'!
    INFO 2007-09-26 16:02:17
    Successfully added privileges 'SeServiceLogonRight SeNetworkLogonRight' to account 'biwdev\SAPServiceBWD' on host 'biwdev'!
    INFO 2007-09-26 16:02:17
    Successfully added privileges 'SeTcbPrivilege SeAssignPrimaryTokenPrivilege SeIncreaseQuotaPrivilege' to account 'biwdev\bwdadm' on host 'biwdev'!
    INFO 2007-09-26 16:02:18
    Evaluating all 'tNT_RegistryEntries' table rows succeeded.
    INFO 2007-09-26 16:02:19
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:20
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:21
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:21
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:22
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:23
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:24
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:24
    Creating or updating all NT registry entries from the tNT_RegistryEntries table succeeded.
    INFO 2007-09-26 16:02:53
    Creating directory E:\oracle\BWD\sapdata1\system_1.
    INFO 2007-09-26 16:02:53
    Creating file system node E:\oracle\BWD/sapdata1\system_1 with type DIRECTORY succeeded.
    INFO 2007-09-26 16:02:53
    Processing of all file system node operations of table tORA_SapdataNodes succeeded.
    INFO 2007-09-26 16:02:53
    Processing of all file system node operations of table tORA_DatabaseServerNodes succeeded.
    INFO 2007-09-26 16:02:53
    Processing of all file system node operations of table tORA_SapdataNodes succeeded.
    INFO 2007-09-26 16:02:55
    Copying file C:/dump/master/NT/COMMON/INSTALL/INITSID.ORA to: E:\oracle\ora92\database\initBWD.ora.
    INFO 2007-09-26 16:02:55
    Creating file E:\oracle\ora92\database\initBWD.ora.
    INFO 2007-09-26 16:02:55
    Copying file system node C:\dump\master/NT/COMMON/INSTALL/INITSID.ORA with type FILE to E:\oracle\ora92\database\initBWD.ora succeeded.
    INFO 2007-09-26 16:02:55
    Copying file C:/dump/master/NT/COMMON/INSTALL/INITSID.SAP to: E:\oracle\ora92\database\initBWD.sap.
    INFO 2007-09-26 16:02:55
    Creating file E:\oracle\ora92\database\initBWD.sap.
    INFO 2007-09-26 16:02:55
    Copying file system node C:\dump\master/NT/COMMON/INSTALL/INITSID.SAP with type FILE to E:\oracle\ora92\database\initBWD.sap succeeded.
    INFO 2007-09-26 16:02:55
    Copying file C:/dump/master/NT/COMMON/INSTALL/INITSID.DBA to: E:\oracle\ora92\database\initBWD.dba.
    INFO 2007-09-26 16:02:55
    Creating file E:\oracle\ora92\database\initBWD.dba.
    INFO 2007-09-26 16:02:55
    Copying file system node C:\dump\master/NT/COMMON/INSTALL/INITSID.DBA with type FILE to E:\oracle\ora92\database\initBWD.dba succeeded.
    INFO 2007-09-26 16:02:55
    Processing of all file system node operations of table tORA_ServerConfig_FORMS succeeded.
    INFO 2007-09-26 16:02:57
    Processing of adapt operation tORA_ServerConfig succeeded.
    INFO 2007-09-26 16:02:59
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2007-09-26 16:03:02
    Moving file E:/oracle/ora92/database/initBWD.ora to: orig_init_ora_tmp.txt.
    INFO 2007-09-26 16:03:02
    Moving file C:/SAPinst ORACLE KERNEL/changed_init_ora_tmp.txt to: E:\oracle\ora92\database\initBWD.ora.
    INFO 2007-09-26 16:03:02
    Removing file C:/SAPinst ORACLE KERNEL/orig_init_ora_tmp.txt.
    WARNING 2007-09-26 16:03:02
    PROBLEM: 'E:\oracle\ora92/bin/oradim' not found. CAUSE: Unable to find application via absolute path in filesystem. Application could perhaps be found using environment variable path or is really missing. Trying to call the application nevertheless.
    WARNING 2007-09-26 16:03:02
    PROBLEM: 'E:\oracle\ora92/bin/oradim' not found. CAUSE: Unable to find application via absolute path in filesystem. Application could perhaps be found using environment variable path or is really missing. Trying to call the application nevertheless.
    INFO 2007-09-26 16:03:02
    'E:\oracle\ora92/bin/oradim -new -sid BWD -STARTMODE auto' returned with '20'.
    INFO 2007-09-26 16:03:04
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    INFO 2007-09-26 16:03:06
    Changed working directory to C:\SAPinst ORACLE KERNEL.
    ERROR 2007-09-26 16:03:13
    CJS-00084  SQL Statement or Script failed. Error Message: ORA-32004: obsolete and/or deprecated parameter(s) specifiedORACLE instance started.
    ERROR 2007-09-26 16:03:13
    FJS-00012  Error when executing script.
    Please let me know, what was tha problem.
    Regards,
    satish

    I suggest you upgrade your Oracle installation to 9.2.0.7 or 9.2.0.8 and then try again.
    Markus

  • Need to generate html report on deprecated api

    Hi All,
    How do I write a generic tool that can print a report in html format of all the deprecated methods of a class and their count. Are there any freely downloadble tools that does this. What is the best way to do this if I have to write on my own.
    Thanks & Regards,
    Kumar.

    Yep:
    1) Get hold of the source code for x-doclet tags and tinker around with them so that you can find all the deprecated tags in your system.
    2) Write some code yourself that picks up all your files and searches for instance of the deprecated tag
    3) Use javadoc to generate javadoc. Parse the output HTML using DOM/SAX parsers to find deprecated methods
    Unfortunately, a class file never knows that a method is deprecated - so you cant use reflection to find deprecated methods (nor can you use BECL)

  • How do I find out if a class file has deprecated functions

    Currently I'm having problems with a old Visual Cafe class.
    It is definately using deprecated awt funcions.
    My question is..
    1) Without the source code how do I find out what deprecated functions the CLASS file is using.
    2) Has any deprecated class been truly scrapped ? If so, I cannot find
    it in the JDK API documentation or the java.sun.com search engine..

    Here is what I did, to answer your question. I unzipped the symantec jar and used a decompiler (JAD works fine, or cavaj) to create an entire src tree (you can do this with 1 command). Then, compile using your target version of Java. There are well over 100 warnings (with -deprecation on) ranging from Cafe's use of awt.Component methods (mostly), Thread.suspend in their Timer class, to the use of java.util.Date in their Calendar component.
    Cheers!

  • GetProcessForPID is deprecated; what to use instead?

    I have been using GetProcessForPID to get the ProcessSerialNumber for the running application, as in
    ProcessSerialNumber psn;
    int pid = [[NSProcessInfo processInfo] processIdentifier];
    OSStatus error = GetProcessForPID(pid, &psn);
    I then use this ProcessSerialNumber to create an event tap with CGEventTapCreateForPSN.
    As of OS X 10.9, GetProcessForPID is deprecated.
    What is the recommended replacement function in Cocoa or in Core Foundation?
    Best,
    -Michiel.

    Observe the NSWorkspaceDidLaunchApplicationNotification notification.
    In the callback, get the process serial number as follows:
    NSDictionary* dictionary = [notification userInfo];
    NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"];
    NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"];
    ProcessSerialNumber psn;
    psn.highLongOfPSN = [psnHigh intValue];
    psn.lowLongOfPSN = [psnLow intValue];

  • Error message: AgServerMigration ERROR Using store provider as a session is deprecated.

    Hi.  I'm using a MacBook Pro, OS X 10.6.5.  I have been opening files in Lightroom, editing them, and then doing finishing touches in CS5.  When I save the file in CS5 and close it, my Mac returns the above message in Console eight times:
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    I have no idea what this means, or whether it is a problem.  Does anyone know what this is?
    Thanks.

    I see the same thing and have done for some time. The actual file is being saved back. etc. So, in that respect both Lr and Ps are working fine. IOW, ignore it.

  • AddRequestObject has been deprecated while adding a resouce to a request

    Hi Friends,
    I have created a schedule task to create a request and to add users to it and also to provision a resource to the user. It is creating a request and adding a user successfully.
    But while adding resource to the request by using the correct request key and object key, I am getting a compilation error.
    This is the statment I am giving "requestIntf.addRequestObject(reqkey,objkey);"
    I am getting the compilation error as "addRequestObkect(reqkey, objkey) in Thor.API.Operations.tcRequestOperationsIntf has been deprecated"
    Did research in google but did not find anything. Can you please let me know what I am doing wrong.

    Using API : - you can use tcFormInstanceOperationsIntf api method setProcessFormData
    setProcessFormData
    public void setProcessFormData(long plProcessInstanceKey,
    java.util.Map phAttributeList)
    throws Thor.API.Exceptions.tcAPIException,
    Thor.API.Exceptions.tcInvalidValueException,
    Thor.API.Exceptions.tcNotAtomicProcessException,
    Thor.API.Exceptions.tcFormNotFoundException,
    Thor.API.Exceptions.tcRequiredDataMissingException,
    Thor.API.Exceptions.tcProcessNotFoundException,
    tcAPIException
    Sets the process data associated with an instance of a process in the system. If the process data already exists, then it updates the data with the specified values. In the case of a first-time save, all the required data must be provided. In the case of subsequent saves, only data being updated need be provided.
    Parameters:
    plProcessInstanceKey - The key of the process instance in the system.
    phAttributeList - An array of tcMapping objects, each used to specify the attribute name-value pairs to be used to save data to the form
    Throws:
    tcAPIException - an error code of DOBJ.USR_PASSWORD_DOES_NOT_MATCH_POLICY might be set within this exception. If that's the case, one or many password policy rules were not met for password field in the form.
    tcInvalidValueException
    tcNotAtomicProcessException
    tcFormNotFoundException
    tcRequiredDataMissingException
    tcProcessNotFoundException

  • EJB Stateless Session Bean how to recompile with "-deprecation" 10.1.2.0.2

    I have a EJB SLSB and I can deploy it to OC4J 10.1.2.0.2. However upon deployment OC4J is telling me:
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for detailsCan somebody tell me how I can make OC4J recompile EJBs with -deprecation set to true?

    I suppose you'd be the first to start screaming at
    them for all the bugs in the 10.1.3 production
    release, if the Oracle guys concentrated more on
    getting something out quickly rather than providing a
    reliable product.C'mon, the only reason I'm pushing this is the fact that from the (OTN) website it looks like 10.1.3 has been around for years, whereas the truth is that the actual production date is unknown. What I am experiencing around me is Oracle loosing credibility regarding Java/J2EE with their direct competitors already having J2EE 1.4 support. The project I'm currently involved in was forced to use 10.1.2.0.2 since it is the last production release of the Oracle Application Server. This is J2EE 1.3 technology which is fairly old stuff.
    And... yes I'm amongst other things a developer and well aware of the challenges that come with creating software. Although in our projects we like to keep a relatively clear scope and not cramp as much features as possible in a version, just to satisfy the checklists :-)

  • Error message when posting revaluation "deprecation not posted completely"

    Hi Gurus
    When I am trying to post revaluation to an asset, using AR29, I get an error message APERB027 "deprecation not posted completely".
    I have run AFAB for period 01/2010 and the entry in TABA is correct.
    Can any one help me solve this?
    Thanks
    Gil

    Hi
    I am trying to post revaluation for 31.01.2010 (asset was capilized on 01.01.2010)
    I have ran AFAR, and it didn't have any effect

  • How to find out the destination of an "Adaptive RFC Model - DEPRECATED"

    Hi All,
    How to find out the destination of an "Adaptive RFC Model - DEPRECATED" of an running application
    and Where is the destination created in the server .
    I have got the code of the running project from NWDI .
    Thanks in Advance
    Regards
    Piyas Kumar

    Hi,
    I am not sure I fully understand the question, but as per the guide
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50f7192d-2808-2d10-189b-df3fa5f71abf
    Excerpt from Page 7
    Caveat Confector!1
    ARFC1 destinations were created using the Web Dynpro Content Administrator tool. This tool is
    still available for compatibility reasons, but the destinations it creates are not used by ARFC2
    models!
    Instead, you should use the u201CDestinationsu201D tool found on the Configuration Management screen of
    the NetWeaver Administrator.
    Therefore I think if you look up the application in the WD content Admin, there you can find out what kind of JCO/RFC connections are belonging to it. You can find it on http://<host>:<port>/webdynpro/dispatcher/sap.com/tcwdtools/Explorer
    Browse your application here, and then select the JCO Connections tab on the right hand side.
    I hope this helps.
    Best Regards,
    Ervin

  • Deprecated methods in ABAP OO

    Hello,
    How can I mark a method in my own classes as deprecated? Is there a framework which supports this?
    Kind Regards
    Koen Van Loocke

    Hi Koen,
    As Matt said, really this option doesn't exist.
    I usually add a comment in the description of the method (when Z), some times I insert an icon in this observation, this can be done through the following syntax( @8O\Q ) in description as follow.
    Method Description => "@8N\Q this method should be avoided !"
    Greetings.
    Marcelo Ramos

  • Provide Multi Language Content in Knowledge Management // Class deprecated

    Hello,
    I tried to implement the blog "Provide Multi Language Content in Knowledgle Management" by Thomas Kuri (BridingIT).
    I have problems to import the the following class:
    import com.sapportals.portal.prt.service.usermanagement.IUserManagementService;
    I always get the warning "The type IUserManagementService" is deprecated. I use the following jar file for that:
    j2ee\cluster\server0\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.usermanagement\lib\com.sap.portal.usermanagementapi.jar
    Is that the wrong jar file? Or am I doing something else wrong?
    Thanks for your help!!
    Kirsten

    Hi,
    she's trying to implement the code example from this article:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/207ba610-08ac-2b10-1787-fc477da4b5bf
    In this article, the deprecated class is used. Why? The code obviously is not written for EP7, but for EP6 with EP5 support. In the function: getEP5User is used to retrieve the EP5 user.
    If you're not too experienced or just want to try something / PoC it's OK to just copy & paste some sample code. For using this code in an EP7 portal I would recommend to adapt the code.
    br,
    Tobias

Maybe you are looking for