The mysterious Finalruct

finalructDatabase();

// but can be implemented without this finalructor, in this case

Just worked through some big java code base of a client. Quite often, I would come across a method call named like this: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: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. 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.once obviously had the name. 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. :)

three comments, already:

clbuttic!

Someone - 11 10 12 - 13:33

LOL

Daniel - 11 10 12 - 22:07