The mysterious Finalruct

Posted on:October 11 2012

Just worked through some big java code base of a client. Quite often, I would come across a method call named like this:
finalructDatabase();

Finalruct? What the hell does that? My english is not perfect, but I'm pretty sure this isn't a word. Some company internal term maybe? But then, something similar popped up in a comment:
// but can be implemented without this finalructor, in this case

And suddently, I understood what happened. Do you see it?
That code has obviously been ported to java from a language like C++ or Actionscript, where there is a keyword named const. When they ported it, they simply replaced all occurrences of 'const' with the Java near equivalent 'final'. Also replacing all words within comments, functions, and similar. FinalructDatabase once obviously had the name ConstructDatabase. Funny. Also entertaining is, that this seems to happen quite a lot. Searching for the Finalruct with google, or for Finalructor reveals quite a lot of results, most in .java source code. :)





Comments:


clbuttic! ;-)
Someone
Quote
2012-10-11 13:33:00


LOL
Daniel
Quote
2012-10-11 22:07:00


Thank you for this blog. That's all I can say. You most definitely have made this blog into something thats eye opening and important. You clearly know so much about.
miumiu purses
Quote
2012-10-23 18:52:00


Add comment:


Posted by:


Enter the missing letter in: "Internat?onal"


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons