• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Story within the javadoc of "TransformerFactoryImpl" from rt.jar

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was going through the source of TransformerFactoryImpl.java from rt.jar . I found java doc of the variable as "DEFAULT_TRANSLET_NAME" as "As Gregor Samsa awoke one morning from uneasy dreams he found himself transformed in his bed into a gigantic insect". Jumping into the class browser within eclipse I found more kind of a story. Check this link. Anybody know what is this mystery all about ?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you search for "Gregor Samsa" you'll find that he is the protagonist of a story called "The Metamorphosis" written by Franz Kafka. Transformation is another word for metamorphosis, so it seems to fit with the purpose of the class. Interesting discovery :-)
 
Marshal
Posts: 79475
379
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They obviously let people write Javadoc comments on 1st April at Apache
 
Master Rancher
Posts: 4921
74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not just the JavaDoc - the value of DEFAULT_TRANSLET_NAME is "GregorSamsa". This means that by default, the transformer factory generates a translet class named GregorSamsa.java. You may see references to this in stack traces.
 
Sheriff
Posts: 22787
131
Eclipse IDE Spring Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:a story called "The Metamorphosis" written by Franz Kafka.


Die Verwandlung, for purists (like me). Quite a good book, I've read it in high school.
 
Mike Simmons
Master Rancher
Posts: 4921
74
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm guessing Ulf knows that.
 
Manu Somasekhar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So it was an Easter egg in jdk .
 
reply
    Bookmark Topic Watch Topic
  • New Topic