BUG status: File.deleteOnExit () does not work on open files (win32)?

I'm a bit confused about the status of the below bug:

http://bugs.Sun.com/bugdatabase/view_bug.do?bug_id=4171239
http://bugs.Sun.com/bugdatabase/view_bug.do?bug_id=6357433

Is fixed? I use jdk1.6.0_25 32-bit on a 64-bit windows computer 7 where I create a temporary folder:
 


    File tempDir = File.createTempFile(name, "");
    if (!(tempDir.delete())) {
      throw new IOException("Could not delete temp file" + tempDir.getAbsolutePath());
    }
    if (!(tempDir.mkdir())) {
      throw new IOException("Could not create temp file" + tempDir.getAbsolutePath());
    }
    tempDir.deleteOnExit();
It works fine if the folder is empty. But if I put a test.txt file in the folder created its not deleted on exit. DeleteOnExit() works only on empty folders?

Yes, what I said above.

Tags: Java

Similar Questions

  • simple pass does not work to open emails

    simple pass does not work to open emails

    Duplicate the content of the Post-

    My os is windows7 IE9 browser

    Pass Simple contact support.

  • Bug in AIR, landscape does not work

    First: In my FlashCS6 I export for AIR 3.2 and I test on my Samsung Galaxy S3.

    Now on the bug. In Flash, AIR controls under general we have landscape and full screen, I chose the two of them, now, when you open the application on mobile, turn off the screen and you rotate the phone, the screen turns into portrait orientation.

    If 'push' landscape option does not work.

    Any solution for this?

    Download the SDK you want to try, might as well be AIR 3.6 at this stage. Unzip the package to download a file. The folder can keep its name and its location, but out of habit I've name it correctly and put it in the Flash Pro folder. So, I have an AIR3.6 folder sitting next to Flash Pro CS6. Then go to the Help menu in Flash Pro and choose the option manage AIR SDK. There, you can add in the SDK you just expanded and then choose as the version of the player in the properties panel.

  • Windows Vista does not work - cannot open Control Panel control and IE

    original title: Windows Vista does not work properly.

    Hello

    I have Windows Vista Home Premium running on Lenovo laptop. Recently, I cann't open the browser IE, the same panel. I don't have a Vista CD. But I have the product key provided with the laptop. Please, help me to make it fully operational as before.

    Assuming that you can always connect to your computer in normal mode:

    Run a check of the filesystem to find corrupted files and repair them if possible.

    Start button > Search box type cmd > look up, do a RIGHT click on cmd.exe > click run as
    Administrator
    > in this window type cmd black and white, on the
    flashing fast sfc/scannow > press the ENTER key.
    Note: there is a space between
    'sfc' and ' / '.
    To sit and wait. It will take time.
    When finished, exit the cmd window.
    Reboot (restart your computer)

    After that, check if you can run the computer as well as to access the IE.
    If IE still does not work, use the following tutorials...

    1 Internet Explorer does not start or stop responding
    http://support.Microsoft.com/kb/926449
    Note: It has an auto FixIt application. Use it.

    2. Internet Explorer Add - ons problem when IE hangs or freezes
    http://support.Microsoft.com/mats/ie_freezes_or_crashes/en-us
    Note: there also an Fix It self.

    3. to resolve network connectivity problems in Internet Explorer
    http://support.Microsoft.com/kb/936211

  • 350 laptop G1: Touchpad does not work after open the cover.

    Whenever I close the lid, when I open again the touchpad does not work.

    I have to restart or put the computer to sleep in order until the beginning of touchpad working again.

    I solved my problem!

    I have unistaled the driver PS/2 Synapatics 19.0.12.95

    Thouch pad suite to work without the driver and now I finally can close the lid and open it again and use the touch pad immediately.

  • Windows Defender does not work. cannot open it. some how it was off and I was locked.

    I was struck my melware, and a viruse that is why I believe that windows Defender does not work.  can you help me fix it?

    Friday, July 23, 2010, 02:27:18 + 0000, kittikat27 wrote:

    I was struck my melware, and a viruse that is why I believe that windows Defender does not work.  can you help me fix it?

    Exactly what virus or other malware, have you been hit with? How do you have
    I know? They were removed? How?

    What anti-virus and anti-spyware programs you have installed? Are
    they kept up to date?

    Be aware that Microsoft Security Essentials and safety
    software automatically turn off Windows Defender for you, because
    they contain a lot of the same functionality.

    Ken Blake

  • Bug Flash possible? Does not work on Windows 7, explorer11


    I have a problem with Adobe Flash. It seems is not or to work properly and I'm trying to debug the problem to see if it a bug to Adobe or something else.

    I have two old laptops and new side by side to solve problems, both use the same version of windows 7 home, internet Explorer 11, adobe flash, directx 11, Norton, etc...

    But the newer faster i5 mobile Adobe Flash guard housing on.

    -J' checked (by report) all settings security to explore between all the computers seem to be the same.
    -Flash is enabled in internet explore 11, add-ons
    -latest version of flash has been installed and has been reinstalled (even a copy saved on the disk and run the disk offline).
    -down cache explore 11
    -flushed out of cache from adobe
    -active x of filtering is disabled

    -restart the computer.

    I find it a bit frustrating that what is originally flash malfunction, someone at - it ideas to try?

    on https://helpx.Adobe.com/Flash-Player.html
    It indicates that I installed the latest version

    on the Adobe - Flash Player: settings - global privacy settings panel Manager

    None of the panels is displayed

    but on the http://www.Adobe.com/software/Flash/about/
    It does not display the little saying version information window you have installed x.x.x.x or the red box of adobe bouncing displays it as on my laptop more old. but when you click on the global settings menu it says that you have installed the latest version...

    example: playing a flash game online, www.volvooceanrace.com loading the game asks to open a session, and then you hear sounds and then seems to not load, proceed to others, or crashes. There are 170 000 daily players using this flash game.

    First of all, check that the ActiveX filtering is configured to allow Flash content:

    https://forums.Adobe.com/thread/867968

    Internet Explorer 11 introduced a number of changes both in the way the browser is identified with remote web servers, and how it treats JavaScript for behavior targets specific to Internet Explorer. Unfortunately, this means that content on some sites will be broken until the provider of content changes their site to conform to the new approach to development required by the modern versions of IE.

    You can try to work around these problems by using the compatibility view:

    http://Windows.Microsoft.com/en-us/Internet-Explorer/use-compatibility-view#IE=ie-11

    If it's too inconvenient, using Google Chrome may be a better alternative.

  • Since Firefox 4, the main body of the page does not work or open, shows just a bar area, current update F8 on WVista, that none of the solved problem on F8 help topics

    Problem started when F4 installed.
    Firefox installs apparently without any problems, but when the opening of the center of the screen shows the search bar Google, nothing else, bar does not accept any input. Beam, bars search, tabs, etc all work.
    Tried all the tips and tricks, uninstalled/reinstalled installed F8 still the same problem.

    The problem persists if start you Firefox in Mode safe? http://support.Mozilla.com/en-us/KB/safe+mode

    What is with an empty profile? http://support.Mozilla.com/en-us/KB/basic%20Troubleshooting#w_8-make-a-new-profile

  • Why yxplayer does not work to open on surface rmvb files

    I bought and downloaded Yxplayer on my surface and wish I could open rmvb, flv and ect. files, but I failed. I don't understand why? Please notify.

    Hello, I bought this software too for my Windows Phone 8. This software is also not really work.

    Why it is not a basic requirement in app stores, that publishers offer trial versions of their software to pay? That would solve several problems.

    And again: How can we get a refund of the payment?

  • Bug? : layers.add () does not work correctly when called from the menu (ID/CS6/Win7)

    Hello Devs,

    I am facing a mysterious problem with the layers.add () method.

    I am trying to create n number of layers for my document. So I decided to create a menu for that.

    I created two scripts

    1. for creating menu & menu action.

    2. real script that creates n number of layers.

    When I run the script #2 of ESTK directly it works fine.

    Now when I try to call the same script in the Menu it does work very well. Only the last layer is created.

    Script 1: LayerPopupMenuAction

    #target indesign
    #targetengine createLayerset
    var layerTemplateScript = File(File(getActiveScriptPath()).parent.fsName+"/IntializeTemplate.jsx"); 
    
    var initTemplateHandler = {
        'beforeDisplay' : function(ev)
            {
                ev.target.enabled = (app.documents.length>0);
            },
        'onInvoke' : function()
            {
                app.doScript(layerTemplateScript, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "Initialize Script");
            }
        };
    
    var layerMenuAction = app.scriptMenuActions.add("&Create Layer Set");
    
    for(var init_ev in initTemplateHandler) {
        layerMenuAction.eventListeners.add(init_ev, initTemplateHandler[init_ev]);
        }
    
    var refMenuItem = app.menus.item("$ID/LayerPanelPopup");
    refMenuItem.menuItems.add(layerMenuAction, LocationOptions.AFTER, refMenuItem.menuItems.item(2));
    
    function getActiveScriptPath() {
        // This function returns the path to the active script, even when running from ESTK
        try { 
            return app.activeScript; 
        } catch(e) { 
            return e.fileName; 
        }
    }
    

    Script 2: IntializeTemplate

    #target indesign
    if (app.documents.length == 0){
        alert("Please open a document and try again", "Document Error", true);
        exit();
        }
    
    var templateDoc = app.activeDocument;
    
    var layerNameArray = ["Fixed_Static_Assets", "Absolute_User_Assets", "Relative_User_Assets"];
    CreateLayers(layerNameArray);
    
    alert("Initialization Successful");
    
    
    //--------------------------------FUNCTIONS ARE DEFINED HERE--------------------------------
    function CreateLayers(LayerNameList){
        var layerListLength = LayerNameList.length;
        var layerObject;
        for (var ln=0; ln<layerListLength; ln++){
            layerObject = templateDoc.layers.itemByName(LayerNameList[ln]);
            if (layerObject.isValid==false){
                layerObject = templateDoc.layers.add({name:LayerNameList[ln]});
                //$.writeln('Layer Creation: ' + layerObject.isValid + ' for '+layerObject.name);
                }
            }
        //Merger Default Layer with the bottom layer:
        var defaultLayer = templateDoc.layers.itemByName("Layer 1");
        if(defaultLayer.isValid==true){
            //$.writeln('Default is Valid and will be merged with top most layer');
            layerObject.merge([defaultLayer]);
            }
        }
    

    Any help / advice on this topic will be useful.

    @Marijan Tompa [tomaxxi]: I googled for the solution and I noticed that you have already worked on the same type of script. Please help me if you can.

    Thank you

    Green4ever

    Hi Green4ever,

    I think at a first sight, UndoModes.FAST_ENTIRE_SCRIPT , who, as you may know, can scramble deeply the script steps, especially when one ... try statement catch is used.

    Try to replace FAST_ENTIRE_SCRIPT by ENTIRE_SCRIPT and tell us.

    @+

    Marc

  • my adobe does not work cannot open a pdf file I deleted

    my adobe isn't impossible to open the pdf

    i'm going to demolished it

    typing is not for me phone call is bettr

    http://www.Adobe.com/support/download-install/supportinfo/

  • Session Restore does not work; Firefox opens 4 other tabs instead

    In general, Options, I chose to restore my windows and tabs from last time and set the homepage of Yahoo. It was like that for years. Yahoo is my homepage until I close the browser. From a month or two ago, whenever I close the session is not restored, or is Yahoo my home page more. Instead, open 4 tabs: Welcome to Firefox, Mozilla Firefox Start Page, an explanation of WOT (one of my extensions) and a new tab.

    The first time it happened, I went to the Options and those in general have changed - home page is set to Mozilla instead of Yahoo, and when FireFox starts now open the homepage instead of open my previous tabs. It doesn't matter if it's before a restart of Windows or if I just close the browser and reopen immediately.

    I read many others having problems with the system restore. only a solution has been found and his question was not the same mine - it must also make changes I'm not comfortable doing.

    Any ideas? Given I have spent an hour to research, and nobody don't seems to have solved this, I think that I can go to Chrome... not what I want to do, but it's not good.

    You can check for problems with preferences.

    Delete a possible user.js file and files numbered prefs-# .js and rename (or delete) the file prefs.js to reset all the prefs by default, including the prefs set via user.js and pref which is no longer supported in the current version of Firefox.

  • can you fix my freecell game it does not work or open. Thank you

    Can you fix my freecell game.  It won't open.  Thank you

    Try:

    1. click on Start (lower-left) and then on Control Panel.

    2. click on programs and features.

    3. on the left side of the screen, click on 'Windows turn features on or off".

    4 look for the entry called games & uncheck the box in the box next to it.

    5. click on OK.

    6 reset.

    7. click on Start (lower-left) and then on Control Panel.

    8. click on programs and features.

    9. on the left side of the screen, click on 'Windows turn features on or off".

    10 find the entry called games & tick in the box next to it.

    11. click on OK.

    12 reset.

  • VMware View Manager "service does not work correctly."

    Location:

    I have 2 view connection Server 5.1.1 (VCS01 and VCS02) and VMware vCenter 5.0 1 u1 (VC01). The vCenter server is added to the view configuration and works without a problem. I don't use composer in this configuration, and I have a certificate installed, valid SSL on 3 servers.

    question:

    If I could connect the console administrator from view of VCS01 and I change something of the setting in "View Configuration\Servers\vCenter servers" vCenter server, vCenter server service turns red in the dashboard view admin with the status: 'the service does not work properly. This produces a few minutes later.

    error.PNG

    The setting I changed allowed caching of size on a particular server.

    If I check the log on the second server View (VCS02), I see the following errors:

    714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > VC_OUTAGE:Url [Audit]: https://vc01.DomainName.x:443 / sdk
    2012 11-15 T 14: 11:24.493 + 01:00 WARN (0AFC-0100) VirtualCenter < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] https://vc01.domainname.x:443 / sdk is currently unavailable - attempt to reconnect
    2012 11-15 T 14: 11:25.960 + 01:00 WARN (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] problem in VC operation: "Authorization to perform this operation was denied." [com.vmware.vim25.NoPermission]
    2012-11 - 15 T 14: 11:25.984 + 01:00 INFO (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [Audit] VC_OUTAGE:Url: https://vc01.DomainName.x:443 / sdk
    2012 11-15 T 14: 11:25.984 + 01:00 WARN (0AFC-0100) VirtualCenter < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] https://vc01.domainname.x:443 / sdk is currently unavailable - attempt to reconnect
    2012 11-15 T 14: 11:25.985 + 01:00 WARN attempt to reconnect (0AFC-0100) previous VC < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] didn't work, will wait before trying again.
    2012 11-15 T 14: 11:41.111 + 01:00 WARN (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] without the permission of Sciez VC.
    2012 11-15 T 14: 11:42.566 + 01:00 WARN (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] problem in VC operation: "Authorization to perform this operation was denied." [com.vmware.vim25.NoPermission]
    2012-11 - 15 T 14: 11:42.569 + 01:00 INFO (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [Audit] VC_OUTAGE:Url: https://vc01.DomainName.x:443 / sdk
    2012 11-15 T 14: 11:42.570 + 01:00 WARN (0AFC-0100) VirtualCenter < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] https://vc01.domainname.x:443 / sdk is currently unavailable - attempt to reconnect
    2012 11-15 T 14: 11:42.570 + 01:00 ERROR (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] exceeded maximum number of VC reconnection attempts.
    2012 11-15 T 14: 11:42.571 + 01:00 ERROR (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] permission to perform this operation was denied.
    2012-11 - 15 T 14: 11:43.021 + 01:00 INFO (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [Audit] VC_OUTAGE:Url: https://vc01.DomainName.x:443 / sdk
    2012 11-15 T 14: 11:43.021 + 01:00 WARN (0AFC-0100) VirtualCenter < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] https://vc01.domainname.x:443 / sdk is currently unavailable - attempt to reconnect
    2012 11-15 T 14: 11:44.501 + 01:00 WARN (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] problem in VC operation: "Authorization to perform this operation was denied." [com.vmware.vim25.NoPermission]
    2012-11 - 15 T 14: 11:44.503 + 01:00 INFO (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [Audit] VC_OUTAGE:Url: https://vc01.DomainName.x:443 / sdk
    2012 11-15 T 14: 11:44.503 + 01:00 WARN (0AFC-0100) VirtualCenter < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] https://vc01.domainname.x:443 / sdk is currently unavailable - attempt to reconnect
    2012 11-15 T 14: 11:44.504 + 01:00 WARN attempt to reconnect (0AFC-0100) previous VC < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] didn't work, will wait before trying again.
    2012 11-15 T 14: 11:59.630 + 01:00 WARN (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] without the permission of Sciez VC.
    2012 11-15 T 14: 12:01.072 + 01:00 WARN (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] problem in VC operation: "Authorization to perform this operation was denied." [com.vmware.vim25.NoPermission]
    2012-11 - 15 T 14: 12:01.074 + 01:00 INFO (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [Audit] VC_OUTAGE:Url: https://vc01.DomainName.x:443 / sdk
    2012 11-15 T 14: 12:01.074 + 01:00 WARN (0AFC-0100) VirtualCenter < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] https://vc01.domainname.x:443 / sdk is currently unavailable - attempt to reconnect
    2012 11-15 T 14: 12:01.076 + 01:00 ERROR (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] exceeded maximum number of VC reconnection attempts.
    2012 11-15 T 14: 12:01.076 + 01:00 ERROR (0AFC-0100) < ConfigureHostsCbrc-8f714f2e-55dd-48b3-8a39-ac825f59a6cd-1352984469542 > [ServiceConnection25] permission to perform this operation was denied.

    Once I reboot VCS02, the State turns green again in the view admin console. So I have a workaround, but I wonder if there is a fix or is it a (UN) known error?

    I had similar errors when I enabled cached host and had to give my user VC the privilege to change the configuration advanced options for guests. It's so she can allow the CBRC in advanced settings. (not in the documentation).

    It seems however, that your VC username missing certain necessary rights. I suggest double check for you rights user VC and take a look at your logs of VC. It should give you some info.

  • page navigation does not work

    Hello

    I'm working on adf application using Jdeveloper 11.1.1.1g.

    I have created 3 jspx pages.
    one for the insertion of an employee record in the database table (contains areas, such as name, address, employee ID, status etc...)
    and 2 others looking for a record and update.

    Here, I can insert with success, research, registration of update... But when I use a condition like updating the record only if (status = 'pending'), it does not work...
    I followed a procedure, it is as follows,

    1.I created a search with a name search.jspx page and add a command button to navigate to the router.
    2. I have created two pages plus one for the update and one for the error page.
    3. in the adfc.config.xml, I took all three search.jspx, update.jspx, error.jspx. and search.jspx connected to the other 2 pages using the router .
    4 inside of the router, I added a case as _ #{data.untitled1PageDef.EmpDetailsView1.collectionModel.Status == 'pending'} _ then result is updated (where empdetails is my view object). or else result is error.

    but when I run this application, it always goes to the error page, I mean that the condition is never satiafied.
    so if anyone can tell where I'm wrong, it would be appreciated.

    Hi Helen,

    I see some corrections in your Code
    Change the status of getName() in getStatus_Val() getter in your bean... "In your change of binding Jspx =" #{bean.name} "in binding =" #{bean.status_Val} ".
    {Change if your case of status_val.equals ("pending") if (status_val.getValue ()! = null & {status_val.getValue (m:System.NET.SocketAddress.ToString (.equalsIgnoreCase ("pending"))))}
    Now look for the same thing...

    Kind regards
    Suganth.G

Maybe you are looking for

  • used to synchronize iPod

    I had problems syncing my iPod 160 gig since the installation of iTunes 12. First is gave me the nonsense of duplicates of files and so I had analyzed and repaired iPod. Then, he would do nothing. So I restored it and now I have a Clipboard. No music

  • Outlook Ex, loading problem

    I use outlook express and I started to have a problem that I can't fix.  I can open OE and everything works fine.  However, if I close OE doen and try to come back later, in it because it is opening gives me an error that it cannot connect to the POP

  • Vista does not accept my password

    I have not changed my password, but Vista says now the password is wrong and I can not connect. Even stranger, when I try to account for my wife after you type the first 3 letters of the password it goes back to all of the photos for users. Any ideas

  • HP Pavilion 15-p225na: product number Unknow Driver Hp Pavilion 15-p225na ACPI\HPQ6007: M3H44EA #ABU Please HELP! =(

    Hi I have a problem with a missing driver for something on my laptop, it just says: Unknow driver in Device Manager, the hardware id is ACPI\HPQ6007 and my laptop model number etc. is the product number Hp Pavilion 15-p225na: M3H44EA #ABU Please HELP

  • Try to install windows 7, error code 0x6.

    Original title: error code 0x6 When I try to install windows 7, it's section updated, but when he says his self-administered temporary files it gives me an error 0 installation code x 6. What can I do to solve this problem, I need to get back on my c