To view parent comment, click here.
To read all comments associated with this story, please click here.
Absolutely - everything about those comparisons screams "decompiler". All the names that would appear in the bytecode (class name, field names) are identical; all local variables have been given obviously machine-assigned names based on their type (set1, flag1, etc).
Looks awfully damning... if this code really came from Harmony, the Apache guys have been *really* careless about the code they accept.
I couldn't find anything in the Harmony-project SVN which made me think this came from there.
Not in incubator either.
So the license at the top is a mistake, atleast.
Maybe someone ran a tool to place such a license at the top of files which didn't have anything yet...?
The code from Google and Oracle/Sun looks very similar, their is definitely a common origin. The quesion obviously is, what is the origin. It could have been generated based on some specification for the x509-certificate that this deals with.
But the creator (or person that imported the source into the Android git repository) should be able to point out where it came from.
Or completely the other way around, there might be a test-suite which tried to use this API and they created a similair API because it was needed to pass some tests.
Edited 2010-10-28 23:35 UTC
Replying to myself now that i understand the matter a little more clearly.
The code in question is not from Harmony, its from OpenJDK. That's what I knew. For some reason, I thought that the parent was un aware that Sun Java is OpenJDK ( minus a few parts no one really cares that much about). There have been many people on many discussion boards that have made that mistake, so that's what I assumed the parent was inferring.
However, in my rush and caffeine deprived mind, I neglected to imagine the more likely case: Google needed the code, but didn't want to copy the GPL'd Open JDK directly to their BSD code as that would not work licence wise. So they tried to clean room it by decompiling the binary ( my guess anyway). That makes sense to me anyway. Some one did the same thing and came up with the exact same code as Google has in Android ( very similar with a few odd quirks).
Now does this either condemn Google or Exonerate it? I have no idea. I am not a lawyer, nor a psychic.





Member since:
2005-07-06
I agree.
Why are the methods in the same order?
Same private method names - what are the chances of that??
probably decompiled and then re-created. tsk tsk.