Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

> it's worth pointing out that this specific bug is not possible in Java since unreachable code is a compiler error

Not on my Java compiler (Android toolkit and Eclipse). I see it as a warning throughout the code base I work on. :-(



I use ADT as well, and IIRC there are certain kinds of unreachable code that won't compile:

  public int foo(int i) {
      return 2;
      
      return i;
  }


Use IntelliJ (Google's favorite Android IDE - they make a mod of it called Android Studio but the good stuff makes it back to IntelliJ)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: