<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Feeling

        三人行,必有我師焉

       ::  :: 新隨筆 :: 聯系 ::  :: 管理 ::
      185 隨筆 :: 0 文章 :: 392 評論 :: 0 Trackbacks
    JDK1.6的File.createTempFile方法有bug,在我的機器上第一次調用該方法需要耗時5秒時間,換了好幾個1.6的版本均有該問題。JDK1.4,1.5則無此問題。

    不一定所有的機器都有此問題,不過這兒肯定是有問題的,起碼在我的機器上有問題。
    posted on 2012-01-13 15:51 三人行,必有我師焉 閱讀(1633) 評論(2)  編輯  收藏

    評論

    # re: JDK1.6的File.createTempFile方法有bug 2012-01-13 15:57 小明
    stackoverflow有類似的問題:
    http://stackoverflow.com/questions/2608763/why-does-first-call-to-java-io-file-createtempfilestring-string-file-take-5-se

    有人提到是因為用戶屬于guest group的原因:
    As noted as a comment on one of the answers below, I noticed this time is actually spent in the first invocation of SecureRandom.nextLong(). Also, I found that this behavior only occurs when a user has the "Guest" group associated with them. I can execute this test with a user and have it run in less than 100ms and then re-execute the same test with the same user account after just adding that user to the "Guests" group (without removing any other group associations from the user had in the previous run).

    你可以驗證一下  回復  更多評論
      

    # re: JDK1.6的File.createTempFile方法有bug 2012-01-13 17:13 三人行,必有我師焉
    @小明
    Thanks.   回復  更多評論
      


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    GitHub |  開源中國社區 |  maven倉庫 |  文件格式轉換 
    主站蜘蛛池模板: 亚洲毛片基地4455ww| 亚洲人成网7777777国产| 在线aⅴ亚洲中文字幕| 免费A级毛片无码A∨免费| 久久久久亚洲Av无码专| 97av免费视频| 亚洲精品午夜视频| 67pao强力打造高清免费| 亚洲视频在线播放| 免费无码又爽又刺激高潮视频| 亚洲处破女AV日韩精品| 久久免费观看国产精品| 亚洲美女精品视频| 毛片免费全部播放一级| 亚洲成a∨人片在无码2023| 四虎永久在线精品免费影视| 日本中文字幕免费看| 国产亚洲精品看片在线观看| 国产午夜成人免费看片无遮挡| 久久精品国产精品亚洲艾草网| 24小时在线免费视频| 亚洲最大中文字幕无码网站| 国产成人高清精品免费软件| h视频在线免费观看| 亚洲一区二区三区电影| 美女网站免费福利视频| 国产成人高清亚洲一区久久| 久久久久亚洲av毛片大| 麻豆成人久久精品二区三区免费| 国产亚洲精aa在线看| 国产亚洲人成A在线V网站| 国产又大又粗又长免费视频 | 亚洲精品在线不卡| 永久免费bbbbbb视频| 国产无限免费观看黄网站| 久久亚洲精品成人AV| 麻豆精品国产免费观看| 成人免费区一区二区三区 | 亚洲一区二区影院| 国产精品二区三区免费播放心| 不卡视频免费在线观看|