Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fool java into printing something it should not print

 
Tim McGuire
Ranch Hand
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The goal of this series of puzzles (eg: http://wouter.coekaerts.be/2012/puzzle-clowns, http://wouter.coekaerts.be/2012/puzzle-dreams) is to trick java to return unexpected or explicitly forbidden results.

and..... I'm stuck. I think it has something to do with spawning new threads so that private fields can be forced into unexpected states, but I'm not sure how.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic