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).

Similar Messages

  • 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 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()

  • 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

  • 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.

  • 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 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

  • 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

  • Deprecated methods in java.lang.thread

    Hi,
    I am getting the followng warning message when i run my code:
    The method void stop() in class java.lang.Thread has been deprecated,
    can anyone suggest an alternative method to the deprectaed stop method, i can't seem to find one.
    Thanks in advance

    The stop() method in thread has been deprecated because it is inherently dangerous. The suggested action now is to simply modify a variable inside the thread to tell it to stop running, and the thread should periodically check the variable to see when it should stop. There's good description of why stop() and a few other methods in Thread have been deprecated at..
    http://java.sun.com/j2se/1.4/docs/guide/misc/threadPrimitiveDeprecation.html

  • Deprecated methods in IPCItemReference of IPC

    Hello friends,
    I am upgrading ISA 3.0 to ISA 5.0.
    In 3.0 in my java class they have used IPCItemReference's setter methods,
    but when i have complied in new ISA 5.0, its says methods deprecated.
    But still there must be some other methods given in this class by SAP in newer version, which i couldnt found.
    How to make this code work in ISA 5.0
    code in 3.0:
         public static IPCItemReference createItemReference(
              HeaderData header,
              ItemData item) {
              IPCItemReference ipcItemReference = new IPCItemReference()
              ipcItemReference.setDocumentId(header.getIpcDocumentId().getIdAsString());
              ipcItemReference.setItemId(item.getTechKey().getIdAsString());
              ipcItemReference.setHost(header.getIpcHost());
              ipcItemReference.setPort(header.getIpcPort().trim());
              ipcItemReference.setSessionId(header.getIpcSession());               
              return ipcItemReference;
    Thanks in advance,
    Niraja

    im out of that project

  • Deprecated Methods in CE 7.2

    Hi,
    What are the methods that got deprecated in CE 7.2 when compared to CE 7.1
    Regards
    V. Suresh Kumar

    Every Java API javadoc has a 'deprecated' list, and so have the NWCE 7.2 API's
    For NWCE 7.2 Web Dynpro, check http://help.sap.com/javadocs/nwce/current/wdr/com.sap.wdr/index.html and from the top select the 'deprecated' link.
    FYI, all API's can be accessed via http://help.sap.com/javadocs/
    Best regards,
    Robin

  • RE: deprecated method - replacement

    I am having a problem converting the -deprecated event handler.
    HELP <ME> PLEASE!
    Does anyone know the best way to convert the mouseDrag method so
    that it can still inherit values from the class.
    ::EXAMPLE BELOW::
    public class GRABandDRAG extends Applet
    implements Runnable {
    public boolean mouseDrag(Event event, int i, int j) {
    mouseX = i;
    mouseY = j;
    dragged = true;
    int k = (j - oldy) / dragPixels;
    int l = (i - oldx) / dragPixels;
    if(l != zoneW && W != 1) {
    panRight(l - zoneW);
    zoneW = l;
    return true;
    }

    Have your Applet class implement java.awt.event.MouseMotionListener and then add yourself to the MouseMotionEvents list via
    // in the applet Constructor
    this.addMouseMotionListener( this );
    Then in your mouseDragged function, use the code you've got. You'll have to get the x and y cordinates from the MouseEvent that is passed in instead of the x / y that would normally used via mouseDrag.

Maybe you are looking for

  • Car Bluetooth connection with MAPS and iPhone 5.

    I have my iPhone Bluetooth connected to my new Toyota Camry and it indicates such on the phone and the car.  However, in going to MAPS navigation, there is no voice, only written directions.  Initially the voice worked, but now it doesn't.  Toyota sa

  • DR Server Setup using GLVM/DB2 HADR and HACMP/XD.

    We have CI/DB of SAP ERP SR3 and SAP BI 7.0  SR3 based on AIX 6.1 / DB2 9.5 installed on two separate LPAR's ( one LPAR has ABAPJAVA ERP CI/DB and otherABAPJAVA BI CI/DB) in P570 system at main site. DR site is 20Kms away from main site IBM has propo

  • Camera function

    My camera won't turn on. I get an error message that reads "Could not start camera.  Close other applications and try again".  But I don't have any other applications open. Ideas??  Thanks.

  • TS1398 OS 7: can't use a WIFI network cause can't find "accept cookies"

    I just installed OS7 in my iphone. After that the WIFI network in my hotel is not working anymore. It displays the following message: - "you would not be able to log in until you enable cookies in your web browser" The problem is that if I go to <set

  • Coding in Update Rules

    Hi, I need generate the report from the following two cubes, Multiprovider does not provide the solution. Here is the two cubes, CUBE 1 - 0CATS_C01 - Time sheets Approved 0NETWORK Network 0R_ACTIVITY Activity Number CUBE 2 - 0PS_C04 Project Systems 0