File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes puzzler authors question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "puzzler authors question" Watch "puzzler authors question" New topic

puzzler authors question

Chris Wash

Joined: Aug 23, 2004
Posts: 16
When I was in school, we used jasmin a lot to explore how the JVM behaved and class files were structured. We ran into a number of unexpected behaviors that didn't make sense until you understood how the bytecode got to be the way it was, and then how it was being interpreted.

Did you run across any puzzlers that no good explanation outside of "that's how it gets compiled/interpreted"? If so, are the implications for these types of puzzlers more profound after writing this book than you considered them to be beforehand?

Thanks -- look forward to checking out the book,


PS - I saw you worked for Google -- do they put Ajax in the cafeteria food there? =]
Neal Gafter
javac author

Joined: Oct 25, 2003
Posts: 12
There is one puzzle in the book whose behavior is so counterintuitive that we dive into the bytecode to understand what's going on. It is Puzzle 44, "Cutting Class". It originated as a bug report at Sun, and it took years before the issue was understood and the bug report closed (as "not a bug").
I agree. Here's the link:
subject: puzzler authors question
It's not a secret anymore!