Why can't we have a real 'finalise'

Hi :)
As we know, all advice about the 'finalise' method is to never
use it, don't override it, pretend it doesn't exist, and if you ever
actually do write code in it, make sure it doesn't throw an exception,
and make sure (can't remember if this is just a 'myth') that it
executes in a very small time period.
Now, i don't have a problem with the requirement for this implementation,
but why can't we have a 'finalise' method that we can implement code
in.
Personally, I would love to have such a method where I can close my
resources, even do other things to conceptually 'end' my objects life.
Consider how ridiculous it would be if an OO language said: "yes,
there is a constructor, but don't write code in it ..., oh, you wan't to
'initialise' your object you say? well, create a pattern or interface or
whatever, implement an 'init' method, and always call that'. Anyone
who had a programming language tell him that would drop it for
a more sensible one.
So come on ... we have a method (even as many as we feel like, assuming
signatures) to 'establish' our object, why are we disabled and disallowed the
option of having one to finalise it (even; not sure of the appropriateness: ones
matching the constructor signatures).
who's with me? :) !

Where is your problem ?
Use a finally clause...Hence the fragileness. Out of the population of
developers, what percentage do you suppose remember to
do that? It would be MUCH better for the VM to take
care of it, destructing/finalizing objects either as
soon as they are no longer strongly reachable (hard to
implement), or at least at SOME point before the app
dies (the GC COULD have been designed to GUARANTEE
running before app termination)What I mean was that you can do something (clean up used connections, streams etc.) but let the GC do the rest. By the way it isn't guaranteed that the GC will run a full garbage collection before you close.

Similar Messages

  • Why can´t i have more than one initiator task on my bpm process

    Hi All.
    I am working with BPM 11g and would like to know:
    Why can´t i have more than one initiator task on my bpm process
    In this case, i will have two separeted process where each has its initiator task?
    Regards,
    Diovani

    Hi Diovani
    Two different processes can have different task initiators...task initiator means creation of a process instance which can happen only once

  • Just to version 7.Like all updates,ad-ons get disabled.The ad-ons that was disabled,where I am not able to open my emails.Why can't FireFox have updates without disabling ad-ons we need to work with?

    Just to version 7.Like all updates,ad-ons get disabled.The ad-ons that was disabled,where I am not able to open my emails.Why can't FireFox have updates without disabling ad-ons we need to work with?

    ''guigs2 [[#answer-672422|said]]''
    <blockquote>
    NoScript stops cookies, please disable this addon/extension as well as make sure that the language en-us is installed.
    # 1) Open up the Firefox Preferences tab. You can do this by typing about:preferences in the URL bar.
    # 2) Click "Content"
    # 3) Next to "Languages", click "Choose"
    # 4) Select "English/United States [en-us]", click "Add"
    # 5) re-open "about:accounts"
    # 6) Click "Get Started"
    </blockquote>
    Thank you for replying. Unfortunately, I already did all of these things. As you can see from the below screenshot, the language is already set. Also, this screenshot was taken in Safe Mode, so NoScript is not enabled. About:accounts still says I need to enable cookies for some reason. So, this solution didn't work....

  • Why can't i have the Facetime App on my iPhone 4?

    Why can't I have the Facetime App on my iPhone?

    Very Vague question.
    Why do you think that you cannot?
    Tap contacts, pick the contact you want to call, scroll down to the facetime button.
    What is your issue?

  • Why can´t i have siri on my ipad 2

    why can´t i have siri on my ipad 2
    i think it have enought power and it has able to use a mobile 3g network connection.

    No, Siri support is only for iPad 3, iPhone 4S, iPhone 5 and iPod touch 5th generation.

  • Why can't we have superdrive and retina display and HDMI in one macbook pro?

    Its good to have a lighter macbook pro for those who don't need the superdrive....BUT, What about those (like myself) who desperately want a superdrive in their macbook pro and also the retina display!!  And, Why can't we have a regular HDMI in macbook pro with a superdrive....this is so frustrating!  Whats wrong with apple!

    I might actually buy a windows laptop.  So sad.
    No need, as long as Apple continues to offer a notebook line-up that includes built-in optical drives, to buy a Windows machine... yet.
    As I said, the only thing that I use my SuperDrive for now is backups of all those digital software deliveries, documents, etc. If I finally break down and buy an external Blu-ray drive, I won't use the SuperDrive at all. But right now I have almost 12 years of back-ups on DVD, both single and dual layer - so, for now, I need my optical drive.
    I'm hoping that - one day - Apple will sell MacBook Pros with Blu-ray drives. Hey, I can wish, right?
    Clinton

  • Why can I not have the MAC app store application with my software update?

    Why can I not have the MAC app store application with my software update?

    You need to be running v10.6 Snow Leopard.
    http://www.apple.com/mac/app-store/
    You can upgrade to Snow Leopard for $29.00 if your Mac meets the minimum requirements.
    http://www.apple.com/macosx/specs.html
    http://store.apple.com/us/product/MC573Z/A?mco=MTY3ODQ5OTY

  • Why can't I have more than one iTunes linked t my iPod

    I have Macs for years, all sorts, I currently actively use, iMac g417,iMac g5 20, iMac intel 24. G4 Mac Mini,Intel Mac Mini, G5 tower, G4 Tower, powerbook g4 and mac book. Yes I know but I work from home with Mac all day...
    I have thousands of songs, all legal, I'm old and have huge CD collection.. I have them spread around the Macs.
    I want to add different playlist from different iTunes to my iPod, just want to drag and drop. Don't care about iTunes store, my CD, my Macs, My iTunes, My Ipod, Not pirating any thing here, WHY CAN I NOT SIMLY DO THIS. I'm forced to go with another player that does not have these retrictions

    Hi Dean, I have no problems using my iPod simultaneously with my notebook and desktop (iBook G4 & iMac G5). All you need to do is un-check the "sync" iPod with iTunes box, or check manually manage music... whatever it is. As long as you are manually managing everything, it should not give you any problems. You can drag and drop to your heart's content! A few notes: MP3 CD's... are amazing, because you don't actually have to import them to your computer, you can just drag and drop the tunes onto your iPod. It might be to your advantage to back up your music libraries on MP3 CD's, the initial process is slightly tedious, but well worth it because you can always create CD's in the future if necessary and free up GB of your hard drive (I'm sure you already thought of this though, you sound pretty savvy.) The ONLY problem I do encounter is sometimes the iTunes on my G5 will just close on me. The trick is to only MANAGE the music from the initial iTunes regardless of where you ADD music from... if that makes sense. Alright, good luck and if you have any questions or anything needs clarifying, just drop me a line (or reply or whatever) Good Luck!
    P.S. I am using the newest iPod Video 80GB, I don't know if that will make a difference or not, but both my sisters have different Nano's and they work the same way that mine does.

  • Why can't itunes have DVD extras avaliable to download??

    How come on every site out there that that makes movie available to download, there are not any extras or special features that are avaliable? I don't think i am a minority out there when i say that the only reson i buy DVDs is specifically for the extras or the commentaries, other wise i would just Nextflix them. So why can't itunes make them avaliable? Like if you buy the movie then they can have the commenary build in like as dvds have them build into the audio tracks. Or maybe the other extras can be a free extra dowload avaliave to people that purchase the movie. Otherwise i'm not paying $14.00 to download a movie that does not contain the special features that the DVD would have contained.
      Mac OS X (10.4.7)  

    iTunes movie downloads only have what the studios allow.
    I am sure that the studios make more money with DVD sales also , that could be why no extras in iTunes.
    I won't download movies because of the low quality. A 2.5" screen for 2 hours, hahaha.

  • Why can't I get a real estimate for outage restoration?

    I'm part of a group outage (12) in the Malvern PA area. We've been down for close to 3 days now. The estimated restoration time keeps getting bumped by 16 hours - I.e. it's not real; it's made up/automatic. I need to be able to plan meetings, etc (I work from home) and the total lack of any *real* estimate screws me over. At least the power company tries to give real estimates. I have no idea if it will 5 hours until I'm back on or 5 more days - or more. While I've loved FiOS, this makes it hard to recommend it - or even argue when asked why I don't switch.
    Some service reps wouldn't even tell me if it was a group outage or if affected a few people or the entire area - just "all I can say is your estimated restoration time is latest-16-hour-number and I think it will be on long before then" - that really burned me with family/work until I stopped believing it.

    Maybe it's time to host a race.  See if Comcast can install faster than Verizon can repair.
    Good Luck.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Why can't i have two libraries on the same itouch?

    i have music on two different computers that i want on my itouch. I can't transfer the music from one computer to the other. Why isn't my itouch letting me have multiple libraries on it? it should let me put all the music i want on it from any computer if it is authorized by my account

    Because it wasn't designed to work that way. Send your feedback to Apple.
    http://www.apple.com/feedback/ipodtouch.html
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Why can't we have a single point of contact who de...

    Three weeks ago our house was hit by lightning and our broadband connection went on the blitz (a Linnit technical term).
    The telephone stopped working. I did an on-line check and the connection registered a fault. The on-line system logged the fault with the teachnical team. So far so good...
    I received a call from the tech team advising an engineer was coming out to us, if the fault was with our equipment we would be charged. That's fair. Engineer called. My phones were fine, BUT the BT router was where the fault lay said the engineer. We would need to raise another fault report because he only dealt with telephone AND as he was a subcontractor he would bill for the work... He disconnected the router so the phone would work and left.
    I work virtually, which means that I can work from my home, so I need the internet even more than my family want the telephone. I plugged the internet back in so that I could continue to work and called BT again from my mobile. Speaking to a very polite guy in Delhi I was asked to describe my phone socket, unplug the router from the office, carry it downstairs to the kitchen where the main socket is, plug the router in there, reconnect, try again, all sorts of stuff before finally being advised that it was probably just the 'microfilter' and that as they were very inexpensive it might be faster for me to go out and buy one and plug it in myself rather than have another engineer come out to us.
    So I did just that. In fact, as the microfilters are less than a fiver, I got two... brought them home and plugged one in... didn't work.
    Called Delhi again. Spoke to someone else who was, again, very polite. They tried to get me to unplug and plug things in and out again, but I politely declined this time explaining that now the poor internet connection that we did have was running so slowly I am having to commute in to work over Christmas. He sympathised and told us that he would escalate the issue. That was before Christmas. Since then I received a text on my phone on Christmas Day telling me they couldn't reach me!!! 
    Today I called again to BEG someone to please come out and fix things for us. We aren't technical. We cannot act as pseudo engineers. We pay BT one bill each quarter for a service. Why on earth can't BT provide me with a single point of contact when I have an issue. And if that point of contact could understand me and explain things to me in words and phrases that I understand that would be perfect!
    Last year I cancelled three mobile contracts that we'd had since the early 90's with O2 because they were so unhelpful.
    BT aren't the cheapest broadband provider but we've stayed with them out of 20+ years loyalty and the understanding that we had a one-stop-shop. Now, it looks as though I'll be shopping around for another domestic broadband provider for 2012.

    Thank you for being so helpful and constructive.
    I tried to look at the ASDL settings, john46 but it's asking me for my HomeHub password... the only password I have is for our wireless network and that one doesn't work. 
    I can't test the phone line right now because I'll have to disconnect the internet and I'm currently working on another computer whilst chatting on this one with you. However I will do that later. I'll also look at the RogerB link you provided. 
    Truth is, we're pensioners who use the internet but we havent a grain of technical understanding between us. We're old fashioned enough to admit that we just want someone who knows what he's doing to come here and fix it for us. It's already cost us £130 for an engineer to come out from OpenReach to tell us the phone line is OK and it's the router causing the problem. Best case scenario is that another BT engineer who knows about broadband comes out and does it because the last BT person that I spoke to in Delhi did actually confirm that there is a fault on the BT side. I'm getting so frustrated right now I'll probably call out an independant I find in Yellow Pages and get charged an arm and a leg again and I'll then cancel with BT in a fit of pique.

  • Why can you not have the same Siri voice used in the US version in the UK and Global search should be available

    I have just recently purchased the new iPhone 4s and it is great.
    I am now using Siri a lot,however I don’t like the fact that in the UK only the man's voice is available.
    I think we should have a choice of a Lady / a man assistant and not just a man who's voice is the same/ very similar to the one used for voice control on the iPhone 4.
    Now that we all know that Siri is useless without an internet connection then why only allow Siri to search for items, businesses, addresses etc only in the country you’re in i.e. the UK.
    Where if you just go onto the internet or use the built in maps application you can search anything you   self without restriction.
    I think Apple should really consider thinkingabout this in there next software update for the iPhone 4s.
    Thishan

    we're all users on this forum, so we cannot answer any of your questions.  Feedback goes here:  http://www.apple.com/feedback/iphone.html

  • Firefox 4 sucks! Why can't I save my tabs when closing Firefox, & why can't I have a red X to stop a slow page from loading?

    NOT FASTER!! MUCH SLOWER!!
    When I close Firefox, I can no longer save my tabs. WHAT GIVES?
    When a new page isn't coming up, I can no longer stop it from loading & try again.
    WHY do my tabs need to be above the toolbars?
    I've loved using Firefox & have used it exclusively for about the last ten years, but if this is how it's always going to be now, I'm going to look for a new browser!
    ''moderator edited the title of this thread''

    The described fix seems to work fine, and I appreciate the fast response.
    Firefox developers, I've been a developer myself. Setting the default to not save tabs in Firefox 4 is going to make a lot of people VERY angry.
    I'm a fairly educated user. After upgrading, the first thing I did was to check Preferences and try to make sure all settings were good to maintain what I've been accustomed to doing. I didn't take the Firefox 4 tour, but shut down the application to make sure caches were emptied. There was no warning about my multiple tabs, but it was too late to stop the process. When I opened it again, all my tabs were gone, some of which related to material or local logins that I will have a hard time re-creating.
    If my wife had done this, you would have heard her swearing without benefit of phone or online chat window, no matter where your labs are. :-)
    For everyone's sanity, please don't turn off the Preserve Tabs on Logout function without warning.

  • I am tired of trying to run a PDF convert. Why can I not have a shortcut on my desktop,PLEASE!!!!!!!!!!!!!!!!

    Question in title

    Well, nobody can answer WHY Adobe do things, or don't do things, but if you would like us to try and help you work the PDF convert, please answer these questions.
    1. What sort of PDF convert are you trying to run? What are you trying to convert FROM and TO?
    2. Exactly what PDF convert have you purchased, or subscribed to? Please give exact product name from your receipt.
    3. How are you trying to use this software or service? Please be detailed.
    4. What exactly happens when you try this? Please be detailed.

Maybe you are looking for