• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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 ?
 
Master Rancher
Posts: 43045
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: 77282
371
  • 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
 
Rancher
Posts: 4358
59
  • 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: 22716
129
Eclipse IDE Spring VI Editor 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
Rancher
Posts: 4358
59
  • 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