4

I want to see implementation of java.util.zip.CRC32. But within this class its using native c library functions for core implementation.How can I get the native source code. I can see the java.util.zip.CRC32 source code, but this doesn't have the actual implementation.

keno
  • 2,956
  • 26
  • 39
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
  • 4
    __Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.__ It is perhaps unwise to post this code in a public forum. – McDowell Jan 29 '10 at 12:33
  • its not containing actual core implementation.Thats why i did.But thanks for advice. – Maddy.Shik Jan 29 '10 at 12:38
  • 1
    This is proprietary code. You cannot get the source code because it is not open source. Sun includes some of the source code with the JDK, but that doesn't make it open source. Only later versions of Sun's JDK are available as open source. http://www.opensource.org/ – McDowell Jan 29 '10 at 12:46

2 Answers2

3

You must ask SUN, I mean Oracle about having the source code... :-/

You can try the source code for Java 6 at this download page. CRC32 should not have changed much between Java 1.4 and 6.

user85421
  • 28,957
  • 10
  • 64
  • 87
2

Sun Java 1.4 is not open source.

McDowell
  • 107,573
  • 31
  • 204
  • 267