Deprecated methods/classes

Does anyone know if, for the SUN Certified Web Component Developer exam, you are tested on the deprecated classes and methods e.g. HttpSession.putValue(), HttpSession.getValue() etc?

No they are not in the test

Similar Messages

  • Removing deprecated methods from legacy source?

    What does one do about deprecated methods in legacy code?
    As new versions of the compiler seem to keep supporting the deprecated methods (just offering warnings), there is no reason to invest the resources to update the source? I don't mean methods such as:
    java.lang.Thread stop(),
    I am thinking of methods such as:
    java.awt.Window show();
    Will there ever be tangible consequences to not stopping using deprecated methods? Will code with deprecated methods eventually break?
    Edited by: dpxqb on May 7, 2010 9:50 PM

    There's often an "if it ain't broke, don't fix it" mentality around deprecated methods and classes. Whether that's appropriate or not depends on the individual case. Any deprecated method/class may be removed in any future release, but you have to balance the risk of that happening against the cost of replacing it. Some methods/classes will probably never go away--like Vector, for instance. So there's not much benefit to doing a search/replace on a large codebase.
    It depends on your analysis of the various risks and rewards in your particular situation.

  • After changing deprecated methods in Thread Class

    I have changed the deprecated methods suspend() and stop() with JDK1.2.2 methods wait() and thread = null respectively. I wanted to know the affects after changing when I actually run the application.

    For one thing, "thread = null" won't stop the thread. In fact it will have no effect on the thread at all.

  • Deprecated methods in 10.1.3

    Many methods in 10.1.3 are marked as deprecated.
    For example, class oracle.toplink.publicinterface.Descriptor is replaced by ClassDescriptor and RelationalDescriptor where getQueryManager() is deprecated with no replacement method.
    Another example, in oracle.toplink.sessions.Session interface, method containsObjectInIdentityMap is deprecated and no replacement is specified.
    I understand those deprecated methods will probably be removed in the future TopLink release. My question is: will TopLink provide the functions currently implemented in those methods, i.e. replacement methods?
    Thanks.
    Haiwei

    Haiwei,
    Yes the work done in 10.1.3 to add formal support for non-relational mapping (Object-XML and EIS/JCA) did require some refactoring of the descriptor class. In the end the previous Descriptor class was deprecated in place of a new ClassDescriptor hierarchy. This work is backwards compatible but some of the deprecated methods were not properly Java Doc'd with their new replacement.
    getQueryManager() -> getDescriptorQueryManager() - New method on ClassDescriptor
    All of the cache access methods have been refactored into a new IdentityMapAccessor class. This is available from any session using getIdentityMapAccessor().
    Doug

  • How I make deprecated method in JB4

    Hi, i make deprecated method like this:
    * @deprecated
    public String fillCharsToLimit(String value, int limit, char chr, boolean fromFirst) {
    value = value.trim();
    if (value == null || (value.length() == 0 && limit <= 0))
    ;//do st
    (in project properties i enable Show deprecations)
    I except that compiler say me warning.
    Its ignore deprecation in my code, but when I use deprecated method from JDK all is OK, only my method no why?
    Thanks DK

    You don't get a deprecation warning if the deprecated class or method and the code that uses the deprecated class or method are compiled at the same time. See Bug 4216683 http://developer.java.sun.com/developer/bugParade/bugs/4216683.html for details.

  • FInding the Replacements for deprecated methods

    I am new to using the Java environment, having been mostly a VB/VB .NET and web developer...so please forgive me if this is a dumb question:
    I inherited some java code that is an extension to a 3rd party app. It was originally written under JDK 1.2.2 (I think), and I am now trying to recompile under JDK 1.4.2, using the Borland JBuilder X IDE.
    Everything seems to be OK, except that I get two warning messages about deprecated methods:
    getFormComponent().setFormProperties()
    getFormComponent().getAllFormProperties()
    I probably should have checked more, but these names would appear to be standard java classes. What methods should I be using instead? And more importantly, how do I go about looking up the current methods?
    Thanks in advance.

    I was coming to that conclusion as well...unfortunately, the 3rd party SW vendor does not appear to have updated their supplied documentation - all of the code examples still use the deprecated methods, and their HTML help doesn't return anything when I search for the method names.
    Looks like a call to their technical support line...
    THANKS for the prompt reply.

  • File handling deprecated method - which one?

    I have this code, it should basically use the lines of text in a file and use them to construct nodes in a JTree. The compilation error is that the class uses a deprecated method - so does anybody know what method is the problem and what I should use?
    private void createNodes(DefaultMutableTreeNode top)
       DefaultMutableTreeNode anode = null; 
       File theFile = new File("categories.txt");
    try
    DataInputStream din1 = new DataInputStream(new FileInputStream(theFile));     
        //while (din1.available() !=0)
        while (true)
           String topic = din1.readLine().trim();
           //set the string as a tree node
           anode = new DefaultMutableTreeNode(topic);
           top.add(anode);
         din1.close();//close the file handle
         catch (Exception e)
              System.err.println("File input error");
    }//end of method

    If you compile with deprecation it will tell you specifically.
    I think it is:
    javac -deprecation ...
    The only method from below that I think it could be is readLine() in DataInputStream...
    If you are reading text...try:
    BufferedReader br = new BufferedReader(new FileReader(theFile));
    String topic;
    while ((topic=br.readLine())!=null)
        anode = new DefaultMutableTreeNode(topic);
        top.add(anode);
    br.close();

  • DocCheck comments on deprecated methods

    I am using the DocCheck utility to check the comments in my java packages, classes and methods. Methods that are deprecated have a @deprecated tag in the method comment, but DocCheck then complains about missing @params, etc. Is there any way that I can suppress the checking of deprecated methods?

    was just giving the way old doccheck tool a try - found it to be really useful
    and I ran into the problem mentioned here, I wished, doccheck wouldn't check deprecated methods ...
    so, what has happened to
    ericArmstrong wrote:
    I'll add it to the list of desired features, and give it
    a high priority.;-)
    Anyone still using doccheck? Are there any other tools, I mean, maybe doccheck will fail on some javadoc features introduced with Java 5 or 6 or ... 11 ;-)
    I like it! E.g., it gave me hints, to add @see in my getter and setter methods ... cool stuff!
    Merten

  • Deprecated methods in Interfaces

    Hi all,
    I'm implementing an interface containing some deprecated methods. These deprecated methods have to be implemented, of course. If I compile my implementation I get deprecation warnings for these implemented methods. Does anyone know how I can get rid of these warnings? I've added @deprecated flags to my implementation of these methods, but that didn't solve these warnings. I'm using JDK 1.3.1.
    Thanks
    Daniel.

    Technically it's a feature. :p
    but seriously, the whole deprecated thing is a feature, it's too bad that in this case you have to live with it, but there's no way around it.
    besides it doesn't matter if you call a depreciated method as it is still going to work. It just means that some point in the future it will not be supported. And judgeing by sun's past actions, I would say that it's more of a way to encourage people not to use old methods, but I don't think that they will ever remove the depreciated methods from the api.
    The only methods you have to watch out for are the few like those the Thread which are just not implemented at all. Like thread.destroy()

  • Method/Class used in workflow

    Hi all,
    can anyone help me regarding this problem of mine.
    Can you give some notes/documents regarding workflow.
    I need to create a program in work flow, i need a standard program of a method/class that is usually used in creating a notification in workflow.
    thanks a lot.
    regards,
    JC

    Hi,
    Please check the link,
    WorkFlow and SAP Scripts
    Regards,
    Hema.
    Reward points if it is useful.

  • 1.4 deprecated methods

    Are there any methods that have been deprecated as of JDK 1.3 that have been removed in JDK 1.4 / 1.4.2? I can't find a list anywhere. Generally, do we need to worry about Sun completely removing deprecated methods?

    Woohoo! I wonder how long before the move to 1.5 happens.<thinks about how wonderful moving data structures
    consisting of 6 nested hashtables into generics will be/>
    *splort*
    Exactly! I've already thought about that. But, probably no worries--the contract has ended. What is supposed to be the last release is supposed to happen in a couple of days (once they fix a problem with a data file the subcontractor gave us). Our code to parse their text file (one time thing as part of a build) didn't have much error checking, so the error wasn't found until the testers tried to run something else. Then, the first person debugging it tried to find a latent bug in our code (spend a few days on it). They called me up today (I'm on another project now) to see if I could find anything, because the other guy was out for two days. As soon as I saw where the error occurred, I looked at the data files and quickly found that they were corrupted. Our code is still fragile, but if the data file is fixed, that should be sufficient (might as well keep this part fragile, especially if the contract is over--everything else in the code is fragile, too).

  • Deprecated Methods and NoClassDefFoundError

    Hi,
    I wonder if using deprecated methods in a Java program could cause java.lang.NoClassDefFoundError?
    I have a Java program with a few deprecated methods. The program worked well when I last ran it about half a year ago. But it shows java.lang.NoClassDefFoundError (Exception in thread "main"
    ) every time I try to run it recently.
    p/s: I use netBeans to run my program.

    Hi,
    I wonder if using deprecated methods in a Java
    program could cause java.lang.NoClassDefFoundError?
    I have a Java program with a few deprecated methods.
    The program worked well when I last ran it about half
    a year ago. But it shows
    java.lang.NoClassDefFoundError (Exception in thread
    "main"
    ) every time I try to run it recently.
    p/s: I use netBeans to run my program.Hi,
    No, the problems seems to be your classpath, and not the fact that you are using deprecated methods.
    Kaj

  • Hi ,info need on container creation,methods,class,interface....

    hi ppl,
              Can anybody give me information on what is and how to create
    container creation,methods,class,interface....with programs.

    >
    priyank dev wrote:
    > hi ppl,
    >           Can anybody give me information on what is and how to create
    >  container creation,methods,class,interface....with programs.
    Hi Dev,
    Interface is just the skeleton of the class definition.
    If you want to have your own code for all or any of the methods that interface is havings then you can create an instance of that interface and implement those methods with you own code.
    That is the advantage of object oriented programming. And if you want to use the standard method or original method's functionality then you have call the method along with the class which implemented it like below
    class => method1
    For Imore information on interfaces Check this link.
    http://help.sap.com/saphelp_nw04/helpdata/en/c3/225b6254f411d194a60000e8353423/frameset.htm
    For creating classes you can follow this procedure.
    Go with abap dictionary->select database table->provide the table for dev classs eg. V_TDEVC-> go for display option-> select utilities->select contents option-> select create dev class,
    provide the name and short text,software component->create req.no.
    with this dev class will be created.
    Thanks
    Nitesh
    Edited by: Nitesh Kumar on Nov 18, 2008 10:56 AM

  • Deprecated method in Environment class

    Weblogic recommends the following method calls to open a secure connection to a
    server, however the setSSLClientCertificateFromServer method has been removed
    since 4.5. What is the replacement, and if there is none, what is the work around?
    thanks,
    Bob
    Environment e = new Environment();
    e.setProviderUrl("t3s://server2.weblogic.com:443");
    e.setSSLClientCertificateFromServer();
    e.setSSLServerName("server2.weblogic.com");
    e.setSSLRootCAFingerprints("ac45e2d1ce492252acc27ee5c345ef26");
    e.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
    Context ctx = new InitialContext(e.getProperties())

    Did you try whacking your subject into google? You should. The thrid result was:
    http://java.sun.com/j2se/1.5.0/docs/api/deprecated-list.html

  • 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

Maybe you are looking for

  • JSF 1.2 Expert Needed

    I�m a Test Development Manager with Brainbench (www.brainbench.com). We are a provider of high-quality, secure, online, certification tests using computer adaptive testing (CAT). We provide skill-based tests that measure a person's core knowledge in

  • Verizon messaging+

    I am using verizon messages, here's the problem.  Although I clear my "frequent" calls/contacted in my call log, they are still in my messaging app.  I tried clearing messaging cache, still there.  How do I delete "frequent" contacted numbers in mess

  • Microsoft Excel VB Macro Help!

    Hi all, I am currently working on a basic Stock Control sheet where the current stock is on one sheet and then there is another sheet for re-ordering stock. What I need to happen is when I click a button at the end of the row it copies certain cells

  • N97 Facebook App

    I am on the currently latest firmware available, I have all my applications on my F: drive to ensure I have memory available for the phone to use, but increasingly I am finding more and more faults and errors with the facebook application to the poin

  • Add prefix on IP GSM gateway call

    Hi I have a problem with my dial plan I have a call manager on Cisco 3745 and Cisco IP phone and call and call is OK I also have an IP GSM gateway, and I need to add prefix on all outgoing GSM call For example if GSM number is 9002256 or 6220088, I n