6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

~Java7とJava8では、HashMapとHashSetでiterationの順番が変わる。

Last updated at Posted at 2014-11-27

順番に依存していると危ないよ、という話。

仕事でkey ringから任意の鍵を取得して暗号化/複合化するような状況でコケたという話を耳にして調べてみた。

  • Collections Framework Enhancements in Java SE 8

例えばコレとか危ない。

  • bc-java/PGPExampleUtil.java at master · bcgit/bc-java

まさにbouncycastleで起きたので、誰かのための備忘。

6
6
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?