Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am looking for internals of hash map.Some exhaustive detailed info about buckets, Node inside it, Map.Entry etc.
I cant find any online stuff which has exhaustive details about this. I tried going thru source of HashMap inside rt.jar but its too complex to handle.
Please suggest where will i be able to find in detail internal working of hash map.
Thanks
to the best of my knowledge, rt.jar does not contain sources.
However, OpenJDK is, well, an open source JDK implementation. This thread has the info on browsing its source code
This is the direct link to the class you were asking: http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/687fd7c7986d/src/share/classes/java/util/HashMap.java
The internal documentation is quite extensive.
Download JDK (not JRE) and look for a src.zip file at the root of the installation path. All source code is there.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I have pretty standard java project with standard gradle layout, all sources are stored in git. I want to write documentation in markdown (or similar markup language) and keep all files in project directory (e.g. docs/ folder in the root). Then I want to generate static site or push my sources somewhere to have access to full documentation in html (should be self-hosted solution).
It will be good if I'm able to add simple link to other articles (like I do it in any wiki engine by using [[article]]). And It would be perfect if I've been able to add quick links to javadoc by the same technique as link to articles. And also it would be perfect if it has had built-in search engine.
I've gone through couple of static site generators but I didn't find anything which can satisfy my requirements at least half. Is there something like that? Or I need to code it by myself (I know it won't take to much time)? Maybe there's more common use case for documentation?
You have to use the concept of Doclets. There are some out there. Maybe just try this one:
https://github.com/Abnaxos/pegdown-doclet
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Per the title, where is the source code for the native java.lang.math methods JDK 7?
Please don't point me to Where to find source code for java.lang native methods? this only answers for JDK 6.
Oracle no longer appears to provide source for native methods at all.
I looked in http://hg.openjdk.java.net/jdk7/hotspot/hotspot but there are thousands and thousands of files with no obvious relationship to the package structure of the Java core so I cannot see any way to find the java.lang.Math methods.
The Oracle-recommended reference implementation at OpenJDK has the native math methods in the following folder location:
jdk1.6\src\jdk\src\share\native\java\lang\fdlibm\src\*.c
You can start the browsing from StrictMath.c
For example, asin (redefined as jasin) is in e_asin.c
If just research, you can use OPENJDK7&8 instead.
you can download from OpenJDK Project.
you can attach to eclipse.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I recently found this which is great as its the API but it doesn't seem to allow me to search
http://docs.oracle.com/javase/7/docs/api/
I am coming from a .NET background so need to be able to search the API.
I guess you are looking for something like this:KiwiDoc - A fresh way to browse and search javadoc
Auto-completion rocks!
For searching in the class/package names and within classes I can highly recommend the javadoc-search-frame. It's available for Google Chrome as an Extension and for all browsers that can run userscripts.
It provides a pretty useful quick-search functionality.
For a full-text search, I'd use Google as well.
Just use google
http://www.google.ee/search?q=RuntimeException+site%3Ahttp%3A%2F%2Fdownload.oracle.com%2Fjavase%2F6%2Fdocs%2Fapi
Use DMelt search
http://jwork.org/dmelt/search/
It searches words in the complete Java JDK 9, plus in 40,000 classes of external community Java packages
Just use CTRL+F in your browser.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking for the source code of Sun's standard java compiler, javac.
jdk1.6.0_07 has a few classes that are related, but they are interfaces
(java.lang.Compiler and javax.tools.JavaCompiler). There's also some packages under com.sun.mirror.* and com.sun.source.*, which seem to be interfaces for representing the java abstract syntax tree.
But I can't find the compiler source - anyone know where it is?
Check this site The Java programming-language compiler (javac) group. The sources are in the Mercurial repositories.
jdk7/tl/langtools (for JDK 1.7)
jdk6/jdk6/langtools (for JDK 1.6)
In the header of the two sites I linked to you find download links for the sources (in bz2, zip and gz format)
There you have the sources in src\share\classes\com\sun\tools\javac\
It's here
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've recently downloaded Thinlet 0.75 (http://www.thinlet.com/index.html) and was wondering if anyone knew of decent documentation for this framework?
The tutorials/examples I have found online seem to refer to an older version of Thinlet as the code/xml is no longer applicable. The only semblance of documentation within the zip file is javadoc with no actual written documentation in it and a convoluted demo without any real explanation of anything.
At this point I suspect you need to contact the author Robert Bajzat directory (the copyright link has a link to his mail address). There may not be documentation written yet (one reason it is 0.75). If you have the source code for the demo applet then you can at least see it run and see the code at the same time.