sources available?
Hamish Morrison
hamish at lavabit.com
Mon Sep 10 13:04:37 PDT 2012
On 10/09/2012 17:11, Mauro de Wit wrote:
> Can I download the sources somewhere of this port? Hopefully I can make
> myself useful and help out with the port. I am not a very experienced
> C(++) developer, but with Java I earn my living :-) Just want to check
> if I can understand this stuff.
Sure, the sources are available on the Mercurial repositories here:
http://hg.openjdk.java.net/haiku/haiku
http://hg.openjdk.java.net/haiku/haiku/jdk
http://hg.openjdk.java.net/haiku/haiku/hotspot
http://hg.openjdk.java.net/haiku/haiku/langtools
http://hg.openjdk.java.net/haiku/haiku/corba
http://hg.openjdk.java.net/haiku/haiku/jaxp
http://hg.openjdk.java.net/haiku/haiku/jaxws
The parts relevant to the Haiku port are in the jdk and hotspot
repositories. The Haiku-specific hotspot code is in:
src/os/haiku -- main architecture-independent Haiku code
src/os_cpu/haiku_x86 -- x86-specific code, mix of C++ and assembly
The Haiku hotspot port code is based on the Linux version. The changes I
made are not huge, so it should be fairly easy to adapt new changes from
the Linux version. The Haiku-specific jdk changes are dotted all around
the source tree in src/solaris, but the major additions are in:
src/solaris/classes/sun/hawt -- AWT port Java classes
src/solaris/native/sun/hawt -- AWT port C++ code
src/solaris/native/com/sun/media/sound -- jsound port C++ code
The AWT port uses the lightweight AWT toolkit developed by the Mac
porters. This means that the AWT widgets are drawn using Swing, instead
of being native widgets, which should save on maintenance. I imported
the LWAWT sources into the solaris tree under
src/solaris/classes/sun/lwawt. I have made some small changes to it,
nothing major.
Hopefully that should be enough to get you started and also serve as a
basic technical introduction to anyone else who wants to get involved
with the project. I also just realised that I botched the merge of the
old and new hotspot repositories, so let me fix that before pulling from
that one. In the meantime you can get a clean hotspot here:
http://bitbucket.org/hamishm/haiku-jdk-hotspot
Regards,
Hamish
More information about the haiku-port-dev
mailing list