harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r307257 [5/24] - in /incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm: ./ bootJVM/ bootJVM/jni/ bootJVM/jni/src/ bootJVM/jni/src/gnu/ bootJVM/jni/src/gnu/classpath/ bootJVM/jni/src/gnu/classpath/0.16/ bootJVM/jni/src/gnu/classpath/...
Date Sat, 08 Oct 2005 04:29:29 GMT
Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Class.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Class.java?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Class.java (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Class.java Fri Oct  7 21:27:56 2005
@@ -0,0 +1,119 @@
+/*!
+ * @file Class.java
+ *
+ * @brief Sample subset of @c @b java.lang.Class native
+ * methods
+ *
+ * This file contains a stub sample implementation this class.
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/Class.java $ \$Id: Class.java 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+package java.lang;
+
+/*!
+ * @brief Java class definition of @c @b java.lang.Class, a
+ * class that describes the class features of any Java object.
+ *
+ * The class @c @b java.lang.Class contains methods that
+ * describe all objects.  As a class that contains @c @b native
+ * calls into the JVM, this stub sample implementation is intended
+ * to be filled out into the complete class definition.
+ *
+ */
+public class Class
+{
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Class.registerNatives()
+     *
+     * @verbatim
+       Class:     java.lang.Class
+       Method:    registerNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void registerNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Class.unregisterNatives()
+     *
+     * @verbatim
+       Class:     java.lang.Class
+       Method:    unregisterNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void unregisterNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Class.isArray()
+     *
+     * @verbatim
+       Class:     java.lang.Class
+       Method:    isArray
+       Signature: ()Z
+       @endverbatim
+     *
+     */
+    native public boolean isArray();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Class.isPrimative()
+     *
+     * @verbatim
+       Class:     java.lang.Class
+       Method:    isPrimitive
+       Signature: ()Z
+       @endverbatim
+     *
+     */
+    native public boolean isPrimative();
+
+} /* END of java.lang.Class */
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Object.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Object.java?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Object.java (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Object.java Fri Oct  7 21:27:56 2005
@@ -0,0 +1,145 @@
+/*!
+ * @file Object.java
+ *
+ * @brief Sample subset of @c @b java.lang.Object native
+ * methods
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/Object.java $ \$Id: Object.java 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+package java.lang;
+
+/*!
+ * @brief Java class definition of @c @b java.lang.Object,
+ * the class that is the root of the object hierarchy.
+ *
+ * The class @c @b java.lang.object is the root of the
+ * object hierarchy.  As a class that contains @c @b native
+ * calls into the JVM, this stub sample implementation is intended
+ * to be filled out into the complete class definition.
+ *
+ */
+public class Object
+{
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Object.registerNatives()
+     *
+     * @verbatim
+       Class:     java.lang.Object
+       Method:    registerNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void registerNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Object.unregisterNatives()
+     *
+     * @verbatim
+       Class:     java.lang.Object
+       Method:    unregisterNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void unregisterNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Object.getClass()
+     *
+     * @verbatim
+       Class:     java.lang.Object
+       Method:    getClass
+       Signature: ()Ljava/lang/Class;
+       @endverbatim
+     *
+     */
+    native public Class getClass();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Object.hashCode()
+     *
+     * @verbatim
+       Class:     java.lang.Object
+       Method:    hashCode
+       Signature: ()I
+       @endverbatim
+     *
+     */
+    native public int hashCode();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Object.wait()
+     *
+     * @verbatim
+       Class:     java.lang.Object
+       Method:    wait
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void wait();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Object.wait(long)
+     *
+     * @verbatim
+       Class:     java.lang.Object
+       Method:    wait
+       Signature: (J)V
+       @endverbatim
+     *
+     */
+    native public long wait(long milliseconds);
+
+} /* END of java.lang.Object */
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/String.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/String.java?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/String.java (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/String.java Fri Oct  7 21:27:56 2005
@@ -0,0 +1,105 @@
+/*!
+ * @file String.java
+ *
+ * @brief Sample subset of @c @b java.lang.String native
+ * methods
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/String.java $ \$Id: String.java 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+package java.lang;
+
+/*!
+ * @brief Java class definition of @c @b java.lang.String,
+ * the Java pseudo-primative class for defining and manipulating
+ * variable-length groups of characters.
+ *
+ * The class @c @b java.lang.String contains fields of multiple
+ * Unicode (jchar) characters and methods for manipulating them.
+ * As a class that contains @c @b native calls into the JVM,
+ * this stub sample implementation is intended to be filled out into
+ * the complete class definition.
+ *
+ */
+public class String
+{
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.String.registerNatives()
+     *
+     * @verbatim
+       Class:     java.lang.String
+       Method:    registerNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void registerNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.String.unregisterNatives()
+     *
+     * @verbatim
+       Class:     java.lang.String
+       Method:    unregisterNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void unregisterNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.String.intern()
+     *
+     * @verbatim
+       Class:     java.lang.String
+       Method:    intern
+       Signature: ()Ljava/lang/String;
+       @endverbatim
+     *
+     */
+    native public String intern();
+
+} /* END of java.lang.String */
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Thread.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Thread.java?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Thread.java (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java/lang/Thread.java Fri Oct  7 21:27:56 2005
@@ -0,0 +1,413 @@
+/*!
+ * @file Thread.java
+ *
+ * @brief Sample subset of @c @b java.lang.Thread native
+ * methods
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/Thread.java $ \$Id: Thread.java 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+package java.lang;
+
+/*!
+ * @brief Java class definition of @c @b java.lang.Thread,
+ * the JVM thread model implementation class.
+ *
+ * The class @c @b java.lang.Thread contains fields methods that
+ * implement the threading model for the JVM.  As a class that contains
+ * @c @b native calls into the JVM, this stub sample
+ * implementation is intended to be filled out into the complete
+ * class definition.
+ *
+ */
+public class Thread
+{
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.registerNatives()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    registerNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void registerNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.unregisterNatives()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    unregisterNatives
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native private static void unregisterNatives();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.currentThread()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    currentThread
+       Signature: ()Ljava/lang/Thread;
+       @endverbatim
+     *
+     */
+    native public static Thread currentThread();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.yield()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    yield
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public static void yield();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.interrupt()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    interrupt
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void interrupt();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.interrupted()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    interrupted
+       Signature: ()Z
+       @endverbatim
+     *
+     */
+    native public static boolean interrupted();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.isInterrupted()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    isInterrupted
+       Signature: ()Z
+       @endverbatim
+     *
+     */
+    native public boolean isInterrupted();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.sleep(long)
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    sleep
+       Signature: (J)V
+       @endverbatim
+     *
+     */
+    native public static void sleep(long milliseconds);
+
+
+    /*!
+     * @brief Native definition
+     * for <b><code>java.lang.Thread.sleep(long, int)</code></b>
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    sleep
+       Signature: (JI)V
+       @endverbatim
+     *
+     */
+    native public static void sleep(long milliseconds, int nanoseconds);
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.join()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    join
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void join();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.join(long)
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    join
+       Signature: (J)V
+       @endverbatim
+     *
+     */
+    native public void join(long milliseconds);
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.join()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    join
+       Signature: (JI)V
+       @endverbatim
+     *
+     */
+    native public void join(long milliseconds, int nanoseconds);
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.isAlive()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    isAlive
+       Signature: ()Z
+       @endverbatim
+     *
+     */
+    native public boolean isAlive();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.start()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    start
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void start();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.countStackFrames()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    countStackFrames
+       Signature: ()I
+       @endverbatim
+     *
+     */
+    native public int countStackFrames();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.holdsLock()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    holdsLock
+       Signature: (Ljava/lang/Object;)Z
+       @endverbatim
+     *
+     */
+    native public static boolean holdsLock(Object object);
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.setPriority()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    setPriority
+       Signature: (I)V
+       @endverbatim
+     *
+     */
+    native public void setPriority(int priority);
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.getPriority()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    getPriority
+       Signature: ()I
+       @endverbatim
+     *
+     */
+    native public int getPriority();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.destroy()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    destroy
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void destroy();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.checkAccess()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    checkAccess
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void checkAccess();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.setDaemon()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    setDaemon
+       Signature: (Z)V
+       @endverbatim
+     *
+     */
+    native public void setDaemon(boolean isDaemon);
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.isDaemon()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    isDaemon
+       Signature: ()Z
+       @endverbatim
+     *
+     */
+    native public boolean isDaemon();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.stop()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    stop
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void stop();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.suspend()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    suspend
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void suspend();
+
+
+    /*!
+     * @brief Native definition
+     * for @c @b java.lang.Thread.resume()
+     *
+     * @verbatim
+       Class:     java.lang.Thread
+       Method:    resume
+       Signature: ()V
+       @endverbatim
+     *
+     */
+    native public void resume();
+
+
+} /* END of java.lang.Thread */
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Class.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Class.c?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Class.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Class.c Fri Oct  7 21:27:56 2005
@@ -0,0 +1,127 @@
+/*!
+ * @file java_lang_Class.c
+ *
+ * @brief Sample subset of @c @b java.lang.Class native
+ * methods
+ *
+ * This file contains a stub sample implementation this class.
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ * In this stub sample, the parameter <b><code>(JNIEnv *)</code></b>
+ * is @e not considered.  Obviously, this is required for proper
+ * linkage in a real implementation.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/java_lang_Class.c $ \$Id: java_lang_Class.c 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+#include <jni.h>
+#include "java_lang_Class.h"
+#include "jlClass.h"
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Class.registerNatives()
+ *
+ * @verbatim
+   Class:     java_lang_Class
+   Method:    registerNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Class_registerNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Class.unregisterNatives()
+ *
+ * @verbatim
+   Class:     java_lang_Class
+   Method:    unregisterNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Class_unregisterNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Class.isArray()
+ *
+ * @verbatim
+   Class:     java_lang_Class
+   Method:    isArray
+   Signature: ()Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Class_isArray(JNIEnv *env, jobject jo)
+{
+    return(jlClass_isArray(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Class.isPrimative()
+ *
+ * @verbatim
+   Class:     java_lang_Class
+   Method:    isPrimitive
+   Signature: ()Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Class_isPrimitive(JNIEnv *env, jobject jo)
+{
+    return(jlClass_isPrimative(jo));
+}
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Object.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Object.c?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Object.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Object.c Fri Oct  7 21:27:56 2005
@@ -0,0 +1,176 @@
+/*!
+ * @file java_lang_Object.c
+ *
+ * @brief Sample subset of @c @b java.lang.Object native
+ * methods
+ *
+ * This file contains a stub sample implementation this class.
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ * In this stub sample, the parameter <b><code>(JNIEnv *)</code></b>
+ * is @e not considered.  Obviously, this is required for proper
+ * linkage in a real implementation.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/java_lang_Object.c $ \$Id: java_lang_Object.c 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+#include <jni.h>
+#include "java_lang_Object.h"
+#include "jlObject.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Object.registerNatives()
+ *
+ * @verbatim
+   Class:     java_lang_Object
+   Method:    registerNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Object_registerNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Object.unregisterNatives()
+ *
+ * @verbatim
+   Class:     java_lang_Object
+   Method:    unregisterNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Object_unregisterNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Object.getClass()
+ *
+ * @verbatim
+   Class:     java_lang_Object
+   Method:    getClass
+   Signature: ()Ljava/lang/Class;
+   @endverbatim
+ *
+ */
+JNIEXPORT jobject JNICALL
+    Java_java_lang_Object_getClass(JNIEnv *env, jobject jo)
+{
+    return(jlObject_getClass(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Object.hashCode()
+ *
+ * @verbatim
+   Class:     java_lang_Object
+   Method:    hashCode
+   Signature: ()I
+   @endverbatim
+ *
+ */
+JNIEXPORT jint JNICALL
+    Java_java_lang_Object_hashCode(JNIEnv *env, jobject jo)
+{
+    return(jlObject_hashCode(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Object.wait()
+ *
+ * @verbatim
+   Class:     java_lang_Object
+   Method:    wait
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Object_wait(JNIEnv *env, jobject jo)
+{
+    jlObject_wait4ever(jo);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Object.wait(long)
+ *
+ * @verbatim
+   Class:     java_lang_Object
+   Method:    wait
+   Signature: (J)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Object_wait__J(JNIEnv *env, jobject jo, jlong jl)
+{
+    jlObject_waittimed(jo, jl);
+
+    return;
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_String.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_String.c?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_String.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_String.c Fri Oct  7 21:27:56 2005
@@ -0,0 +1,118 @@
+/*!
+ * @file java_lang_String.c
+ *
+ * @brief Sample subset of @c @b java.lang.String native
+ * methods
+ *
+ * This file contains a stub sample implementation this class.
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ * In this stub sample, the parameter <b><code>(JNIEnv *)</code></b>
+ * is @e not considered.  Obviously, this is required for proper
+ * linkage in a real implementation.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/java_lang_String.c $ \$Id: java_lang_String.c 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+#include <jni.h>
+#include "java_lang_String.h"
+#include "jlString.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.String.registerNatives()
+ *
+ * @verbatim
+   Class:     java_lang_String
+   Method:    registerNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_String_registerNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.String.registerNatives()
+ *
+ * @verbatim
+   Class:     java_lang_String
+   Method:    unregisterNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_String_unregisterNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.String.intern()
+ *
+ * @verbatim
+   Class:     java_lang_String
+   Method:    intern
+   Signature: ()Ljava/lang/String;
+   @endverbatim
+ *
+ */
+JNIEXPORT jstring JNICALL
+    Java_java_lang_String_intern(JNIEnv *env, jobject jo)
+{
+    return(jlString_intern(jo));
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Thread.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Thread.c?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Thread.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/java_lang_Thread.c Fri Oct  7 21:27:56 2005
@@ -0,0 +1,558 @@
+/*!
+ * @file java_lang_Thread.c
+ *
+ * @brief Sample subset of @c @b java.lang.Thread native
+ * methods
+ *
+ * This file contains a stub sample implementation this class.
+ *
+ * The full implementation of this source file should contain each and
+ * every native method that is declared by the implmentation and it
+ * should be stored in a shared archive along with the other classes
+ * of this Java package's native methods.
+ *
+ * In this stub sample, the parameter <b><code>(JNIEnv *)</code></b>
+ * is @e not considered.  Obviously, this is required for proper
+ * linkage in a real implementation.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/java_lang_Thread.c $ \$Id: java_lang_Thread.c 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+#include <jni.h>
+#include "java_lang_Thread.h"
+#include "jlThread.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.registerNatives()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    registerNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_registerNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.unregisterNatives()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    unregisterNatives
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_unregisterNatives(JNIEnv *env, jclass jc)
+{
+   /* Contents to be determined */
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.currentThread()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    currentThread
+   Signature: ()Ljava/lang/Thread;
+   @endverbatim
+ *
+ */
+JNIEXPORT jobject JNICALL
+    Java_java_lang_Thread_currentThread(JNIEnv *env, jclass jc)
+{
+    return(jlThread_currentThread(jc));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.yield()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    yield
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_yield(JNIEnv *env, jclass jc)
+{
+    return(jlThread_yield(jc));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.interrupt()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    interrupt
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_interrupt(JNIEnv *env, jobject jo)
+{
+    return(jlThread_interrupt(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.interrupted()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    interrupted
+   Signature: ()Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Thread_interrupted(JNIEnv *env, jclass jc)
+{
+    return(jlThread_interrupted(jc));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.isInterrupted()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    isInterrupted
+   Signature: ()Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Thread_isInterrupted(JNIEnv *env, jobject jo)
+{
+    return(jlThread_isInterrupted(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.sleep(long)
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    sleep
+   Signature: (J)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_sleep__J(JNIEnv *env, jclass jc, jlong jl)
+{
+    jlThread_sleep(jc, jl);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of <b><code>java.lang.Thread.sleep(long, int)</code></b>
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    sleep
+   Signature: (JI)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_sleep__JI(JNIEnv *env,
+                                    jclass jc,
+                                    jlong jl,
+                                    jint ji)
+{
+    jlThread_sleep_nanos(jc, jl, ji);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.join()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    join
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL Java_java_lang_Thread_join(JNIEnv *env,
+                                                  jobject jo)
+{
+    jlThread_join4ever(jo);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.join(long)
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    join
+   Signature: (J)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_join__J(JNIEnv *env, jobject jo, jlong jl)
+{
+    jlThread_jointimed(jo, jl);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.join()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    join
+   Signature: (JI)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_join__JI(JNIEnv *env,
+                                   jobject jo,
+                                   jlong jl,
+                                   jint ji)
+{
+    jlThread_jointimed_nanos(jo, jl, ji);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.isAlive()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    isAlive
+   Signature: ()Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Thread_isAlive(JNIEnv *env, jobject jo)
+{
+    return(jlThread_isAlive(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.start()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    start
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL Java_java_lang_Thread_start(JNIEnv *env,
+                                                   jobject jo)
+{
+    jlThread_start(jo);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.countStackFrames()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    countStackFrames
+   Signature: ()I
+   @endverbatim
+ *
+ * @deprecated <b>CAVEAT EMPTOR:</b>  This method has been deprecated
+ *                                    in the JDK library API
+ *                                    documentation.
+ *
+ */
+JNIEXPORT jint JNICALL
+    Java_java_lang_Thread_countStackFrames(JNIEnv *env, jobject jo)
+{
+    return(jlThread_countStackFrames(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.holdsLock()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    holdsLock
+   Signature: (Ljava/lang/Object;)Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Thread_holdsLock(JNIEnv *env, jclass jc, jobject jo)
+{
+    return(jlThread_holdsLock(jc, jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.setPriority()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    setPriority
+   Signature: (I)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_setPriority(JNIEnv *env, jobject jo, jint ji)
+{
+    jlThread_setPriority(jo, ji);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.getPriority()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    getPriority
+   Signature: ()I
+   @endverbatim
+ *
+ */
+JNIEXPORT jint JNICALL
+    Java_java_lang_Thread_getPriority(JNIEnv *env, jobject jo)
+{
+    return(jlThread_getPriority(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.destroy()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    destroy
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_destroy(JNIEnv *env, jobject jo)
+{
+    jlThread_destroy(jo);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.checkAccess()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    checkAccess
+   Signature: ()V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_checkAccess(JNIEnv *env, jobject jo)
+{
+    jlThread_checkAccess(jo);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.setDaemon()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    setDaemon
+   Signature: (Z)V
+   @endverbatim
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_setDaemon(JNIEnv *env,
+                                    jobject jo,
+                                    jboolean jb)
+{
+    jlThread_setDaemon(jo, jb);
+
+    return;
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.isDaemon()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    isDaemon
+   Signature: ()Z
+   @endverbatim
+ *
+ */
+JNIEXPORT jboolean JNICALL
+    Java_java_lang_Thread_isDaemon(JNIEnv *env, jobject jo)
+{
+    return(jlThread_isDaemon(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.stop()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    stop
+   Signature: ()V
+   @endverbatim
+ *
+ * @deprecated <b>CAVEAT EMPTOR:</b>  This method has been deprecated
+ *                                    in the JDK library API
+ *                                    documentation.
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_stop(JNIEnv *env, jobject jo)
+{
+    return(jlThread_stop(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.suspend()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    suspend
+   Signature: ()V
+   @endverbatim
+ *
+ * @deprecated <b>CAVEAT EMPTOR:</b>  This method has been deprecated
+ *                                    in the JDK library API
+ *                                    documentation.
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_suspend(JNIEnv *env, jobject jo)
+{
+    return(jlThread_suspend(jo));
+}
+
+
+/*!
+ * @brief Native implementation
+ * of @c @b java.lang.Thread.resume()
+ *
+ * @verbatim
+   Class:     java_lang_Thread
+   Method:    resume
+   Signature: ()V
+   @endverbatim
+ *
+ * @deprecated <b>CAVEAT EMPTOR:</b>  This method has been deprecated
+ *                                    in the JDK library API
+ *                                    documentation.
+ *
+ */
+JNIEXPORT void JNICALL
+    Java_java_lang_Thread_resume(JNIEnv *env, jobject jo)
+{
+    return(jlThread_resume(jo));
+}
+
+
+#ifdef __cplusplus
+}
+#endif
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/sampleJNImain.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/sampleJNImain.c?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/sampleJNImain.c (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jni/src/harmony/generic/0.0/src/sampleJNImain.c Fri Oct  7 21:27:56 2005
@@ -0,0 +1,133 @@
+/*!
+ * @file sampleJNImain.c
+ *
+ * @brief Sample program to call JNI functions from a shared object.
+ *
+ * This code will generate external references to JNI 'C' function
+ * entry point versions of Java JNI native methods.  These, in turn,
+ * are designed to be stored into a shared object.  They reference
+ * JNI 'C' function entry point versions of Java JNI @e local native
+ * methods (because of the fact that they are @c @b java.lang.*
+ * classes).  For anything besides @c @b java.lang.*, these
+ * references would be to regular JNI 'C' or 'C++' or Fortran or
+ * assembly or COBOL (gulp) or whatever kind of library code is
+ * appropriate.
+ *
+ * The point with this sample @c @b main() program is to
+ * create a sample program fragment that shows where the JNI
+ * shared object fits into the overall scheme of things.  The
+ * functions they reference demonstrate how to reference JNI
+ * @e local native methods in the core JVM code.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/sampleJNImain.c $ \$Id: sampleJNImain.c 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+#include <stdlib.h>
+#include <jni.h>
+
+#include "java_lang_Object.h"
+#include "java_lang_Class.h"
+#include "java_lang_String.h"
+#include "java_lang_Thread.h"
+
+JNIEnv env;
+
+jclass  clsidx_null    = 0;
+jobject objhash_null   = 0;
+jlong   long_int       = 0;
+jint    regular_int    = 0;
+jboolean boolean_value = JNI_FALSE;
+
+int main(int argc, char **argv, char **envp)
+{
+    JNIEnv *penv = &env;
+
+    /* Register natives for all appropriate classes */
+    Java_java_lang_Object_registerNatives(penv, clsidx_null);
+    Java_java_lang_Class_registerNatives(penv, clsidx_null);
+    Java_java_lang_String_registerNatives(penv, clsidx_null);
+    Java_java_lang_Thread_registerNatives(penv, clsidx_null);
+
+    /* Access the various methods */
+    Java_java_lang_Object_hashCode(penv, objhash_null);
+    Java_java_lang_Object_wait(penv, objhash_null);
+    Java_java_lang_Object_wait__J(penv, objhash_null, long_int);
+
+    Java_java_lang_Class_isArray(penv, objhash_null);
+    Java_java_lang_Class_isPrimitive(penv, objhash_null);
+
+    Java_java_lang_String_intern(penv, objhash_null);
+
+    Java_java_lang_Thread_yield(penv, clsidx_null);
+    Java_java_lang_Thread_interrupt(penv, objhash_null);
+    Java_java_lang_Thread_interrupted(penv, clsidx_null);
+    Java_java_lang_Thread_isInterrupted(penv, objhash_null);
+    Java_java_lang_Thread_sleep__J(penv, clsidx_null, long_int);
+    Java_java_lang_Thread_sleep__JI(penv,
+                                    clsidx_null,
+                                    long_int,
+                                    regular_int);
+    Java_java_lang_Thread_join(penv, objhash_null);
+    Java_java_lang_Thread_join__J(penv, objhash_null, long_int);
+    Java_java_lang_Thread_join__JI(penv,
+                                   objhash_null,
+                                   long_int,
+                                   regular_int);
+    Java_java_lang_Thread_isAlive(penv, objhash_null);
+    Java_java_lang_Thread_start(penv, objhash_null);
+    Java_java_lang_Thread_countStackFrames(penv, objhash_null);
+    Java_java_lang_Thread_holdsLock(penv, clsidx_null, objhash_null);
+    Java_java_lang_Thread_setPriority(penv, objhash_null, regular_int);
+    Java_java_lang_Thread_getPriority(penv, objhash_null);
+    Java_java_lang_Thread_destroy(penv, objhash_null);
+    Java_java_lang_Thread_checkAccess(penv, objhash_null);
+    Java_java_lang_Thread_setDaemon(penv, objhash_null, boolean_value);
+    Java_java_lang_Thread_isDaemon(penv, objhash_null);
+    Java_java_lang_Thread_stop(penv, objhash_null);
+    Java_java_lang_Thread_resume(penv, objhash_null);
+    Java_java_lang_Thread_suspend(penv, objhash_null);
+    Java_java_lang_Thread_currentThread(penv, clsidx_null);
+
+
+    /* Unregister natives for library unload, where implemented */
+    Java_java_lang_Object_unregisterNatives(penv, clsidx_null);
+    Java_java_lang_Class_unregisterNatives(penv, clsidx_null);
+    Java_java_lang_String_unregisterNatives(penv, clsidx_null);
+    Java_java_lang_Thread_unregisterNatives(penv, clsidx_null);
+
+    exit(0);
+
+} /* END of main() */
+
+
+/* EOF */

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtbuild
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtbuild?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtbuild (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtbuild Fri Oct  7 21:27:56 2005
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?fileVersion 2.1.0?>
+
+<ManagedProjectBuildInfo>
+<project id="jvm.cdt.managedbuild.target.gnu.exe.151003565" name="Executable (Gnu)" projectType="cdt.managedbuild.target.gnu.exe">
+<configuration id="cdt.managedbuild.config.gnu.exe.debug.1499222932" name="bin" parent="cdt.managedbuild.config.gnu.exe.debug" artifactName="bootjvm" errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser" artifactExtension="" cleanCommand="rm -rf">
+<toolChain superClass="cdt.managedbuild.toolchain.gnu.exe.debug" id="cdt.managedbuild.toolchain.gnu.exe.debug.441454497" name="GCC Tool Chain">
+<builder superClass="cdt.managedbuild.target.gnu.builder.exe.debug" id="cdt.managedbuild.target.gnu.builder.exe.debug.1048311613" name="Gnu Make.bin"/>
+<tool superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug" id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1885617967" name="GCC C Compiler">
+<option superClass="gnu.c.compiler.option.include.paths" id="gnu.c.compiler.option.include.paths.1144545727" valueType="includePath">
+<listOptionValue value="/home/dlydick/harmony/bootJVM/jvm/include" builtIn="false"/>
+<listOptionValue value="/home/dlydick/harmony/bootJVM/config" builtIn="false"/>
+</option>
+<option superClass="gnu.c.compiler.option.misc.other" id="gnu.c.compiler.option.misc.other.797961741" value="-c -fmessage-length=0 -m32 -fpack-struct" valueType="string"/>
+<option superClass="gnu.c.compiler.option.misc.ansi" id="gnu.c.compiler.option.misc.ansi.1817263150" value="true" valueType="boolean"/>
+</tool>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug" id="cdt.managedbuild.tool.gnu.cpp.compiler.exe.debug.546772165" name="GCC C++ Compiler"/>
+<tool superClass="cdt.managedbuild.tool.gnu.c.linker.exe.debug" id="cdt.managedbuild.tool.gnu.c.linker.exe.debug.55031190" name="GCC C Linker" command="gcc">
+<option superClass="gnu.c.link.option.ldflags" id="gnu.c.link.option.ldflags.309413827" value="-m32" valueType="string"/>
+<option superClass="gnu.c.link.option.libs" id="gnu.c.link.option.libs.510816722" valueType="libs">
+<listOptionValue value="pthread" builtIn="false"/>
+</option>
+<option superClass="gnu.c.link.option.paths" id="gnu.c.link.option.paths.455445367"/>
+<option superClass="gnu.c.link.option.noshared" id="gnu.c.link.option.noshared.957277546" value="false" valueType="boolean"/>
+</tool>
+<tool superClass="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug" id="cdt.managedbuild.tool.gnu.cpp.linker.exe.debug.1864451912" name="GCC C++ Linker"/>
+<tool superClass="cdt.managedbuild.tool.gnu.assembler.exe.debug" id="cdt.managedbuild.tool.gnu.assembler.exe.debug.2022609315" name="GCC Assembler"/>
+</toolChain>
+<resourceConfiguration id="cdt.managedbuild.config.gnu.exe.debug.1499222932./jvm/src/stdio.c" name="stdio.c" exclude="false" resourcePath="/jvm/src/stdio.c">
+<tool superClass="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1885617967" id="cdt.managedbuild.tool.gnu.c.compiler.exe.debug.1885617967./jvm/src/stdio.c" name="GCC C Compiler">
+<option superClass="gnu.c.compiler.option.misc.other" id="gnu.c.compiler.option.misc.other.1987781725" value="-c -fmessage-length=0 -m32" valueType="string"/>
+</tool>
+</resourceConfiguration>
+</configuration>
+</project>
+</ManagedProjectBuildInfo>

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtproject
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtproject?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtproject (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.cdtproject Fri Oct  7 21:27:56 2005
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse-cdt version="2.0"?>
+
+<cdtproject id="org.eclipse.cdt.managedbuilder.core.managedMake">
+<extension point="org.eclipse.cdt.core.ScannerInfoProvider" id="org.eclipse.cdt.managedbuilder.core.ManagedBuildManager"/>
+<extension point="org.eclipse.cdt.core.BinaryParser" id="org.eclipse.cdt.core.ELF"/>
+<data>
+<item id="cdt_indexer">
+<indexEnabled indexValue="false"/>
+<indexerProblemsEnabled indexProblemsValue="0"/>
+</item>
+<item id="org.eclipse.cdt.core.pathentry">
+<pathentry kind="src" path=""/>
+<pathentry kind="out" path=""/>
+<pathentry kind="con" path="org.eclipse.cdt.managedbuilder.MANAGED_CONTAINER"/>
+</item>
+<item id="org.eclipse.cdt.core.resolver">
+<custom value="true"/>
+<associations>
+<entry pattern="*.C" type="org.eclipse.cdt.core.fileType.cxx_source"/>
+<entry pattern="*.H" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="*.S" type="org.eclipse.cdt.core.fileType.asm_source"/>
+<entry pattern="*.asm" type="org.eclipse.cdt.core.fileType.asm_source"/>
+<entry pattern="*.c" type="org.eclipse.cdt.core.fileType.c_source"/>
+<entry pattern="*.cc" type="org.eclipse.cdt.core.fileType.cxx_source"/>
+<entry pattern="*.cpp" type="org.eclipse.cdt.core.fileType.cxx_source"/>
+<entry pattern="*.cxx" type="org.eclipse.cdt.core.fileType.cxx_source"/>
+<entry pattern="*.h" type="org.eclipse.cdt.core.fileType.c_header"/>
+<entry pattern="*.hh" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="*.hpp" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="*.hxx" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="*.s" type="org.eclipse.cdt.core.fileType.asm_source"/>
+<entry pattern="algorithm" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="bitset" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cassert" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cctype" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cerrno" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cfloat" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="ciso646" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="climits" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="clocale" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cmath" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="complex" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="csetjmp" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="csignal" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cstdarg" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cstddef" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cstdio" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cstdlib" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cstring" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="ctime" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cwchar" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="cwctype" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="deque" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="exception" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="fstream" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="functional" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="hash_map" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="hash_set" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="iomanip" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="ios" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="iosfwd" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="iostream" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="istream" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="iterator" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="limits" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="list" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="locale" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="map" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="memory" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="new" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="numeric" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="ostream" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="queue" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="set" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="sstream" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="stack" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="stdexcept" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="streambuf" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="string" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="strstream" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="typeinfo" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="utility" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="valarray" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+<entry pattern="vector" type="org.eclipse.cdt.core.fileType.cxx_header"/>
+</associations>
+</item>
+</data>
+</cdtproject>

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.project
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.project?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.project (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/.project Fri Oct  7 21:27:56 2005
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>jvm</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.cdt.core.cnature</nature>
+		<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
+	</natures>
+</projectDescription>

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/build.sh
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/build.sh?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/build.sh (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/build.sh Fri Oct  7 21:27:56 2005
@@ -0,0 +1,133 @@
+#!/bin/sh
+#
+#!
+# @file ./jvm/build.sh
+#
+# @brief Build main JVM development area
+#
+# @see @link jvm/clean.sh jvm/clean.sh@endlink
+#
+# @see @link jvm/common.sh jvm/common.sh@endlink
+#
+# @see @link ./build.sh ./build.sh@endlink
+#
+# @see @link ./clean.sh ./clean.sh@endlink
+#
+# @see @link ./common.sh ./common.sh@endlink
+#
+# @internal Notice that 'jvm/*.sh' have the relative path prefix './'
+# attached to the front of the @@file directive.  This is to avoid an
+# interesting sensitivity in Doxygen that got confused between
+# 'jvm/filename.sh' and 'libjvm/filename.sh' and failed to produce
+# the "File List" entry for each 'jvm/*.sh' build script.  By marking
+# them './jvm/build.sh' et al, this behavior went away.  This same
+# comment may be found in @link ./config.sh config.sh@endlink
+#
+#
+# @todo  A Windows .BAT version of this script needs to be written
+#
+#
+# @section Control
+#
+# \$URL: https://svn.apache.org/path/name/build.sh $ \$Id: build.sh 0 09/28/2005 dlydick $
+#
+# Copyright 2005 The Apache Software Foundation
+# or its licensors, as applicable.
+#
+# Licensed under the Apache License, Version 2.0 ("the License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+# either express or implied.
+#
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# @version \$LastChangedRevision: 0 $
+#
+# @date \$LastChangedDate: 09/28/2005 $
+#
+# @author \$LastChangedBy: dlydick $
+#         Original code contributed by Daniel Lydick on 09/28/2005.
+#
+# @todo  A Windows .BAT version of this script needs to be written
+#
+# @section Reference
+#
+#/ /* 
+# (Use  #! and #/ with dox_filter.sh to fool Doxygen into
+# parsing this non-source text file for the documentation set.
+# Use the above open comment to force termination of parsing
+# since it is not a Doxygen-style 'C' comment.)
+#
+#
+###################################################################
+#
+# Script setup
+#
+. common.sh
+
+###################################################################
+#
+# Construct output area.  Since Eclipse uses 'bin/src' for its
+# output area, there should not be a conflict unless Eclipse does
+# a 'make clean', which removes and rebuilds 'bin'.
+#
+if test ! -d $TARGET_DIRECTORY
+then
+    mkdir $TARGET_DIRECTORY
+fi
+if test ! -d $TARGET_DIRECTORY
+then
+    echo "$PGMNAME:  Cannot create '$TARGET_DIRECTORY' directory"
+    exit 1
+fi
+rm -f $TARGET_DIRECTORY/*.o $TARGET_BINARY
+
+###################################################################
+#
+# Build binary from source code
+#
+
+OBJECTS=""
+for f in $SOURCES
+do
+    OBJECT=$TARGET_DIRECTORY/`expr "/${f:-.}" : \
+                                   '\(.*[^/]\)/*$' : \
+                                   '.*/\(..*\)' : \
+                                   "\\(.*\\)c\$" `o
+
+    OBJECTS="$OBJECTS ${OBJECT}"
+
+    case $f in
+        src/stdio.c)
+            gcc $ALWAYS_OPTIONS \
+                -o ${OBJECT} \
+                -c $f
+            ;;
+
+        *)  gcc $ALWAYS_OPTIONS \
+                $USUALLY_OPTIONS \
+                -o ${OBJECT} \
+                -c $f
+            ;;
+    esac
+done
+
+gcc `cat ../config/config_opts_always.gccld` $OBJECTS -o $TARGET_BINARY
+rc=$?
+
+
+###################################################################
+#
+# Done.
+#
+exit $rc
+
+#
+# EOF

Propchange: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/build.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/clean.sh
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/clean.sh?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/clean.sh (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/clean.sh Fri Oct  7 21:27:56 2005
@@ -0,0 +1,89 @@
+#!/bin/sh
+#
+#!
+# @file ./jvm/clean.sh
+#
+# @brief Remove build of main JVM development area
+#
+# @see @link jvm/build.sh jvm/build.sh@endlink
+#
+# @see @link jvm/common.sh jvm/common.sh@endlink
+#
+# @see @link ./build.sh ./build.sh@endlink
+#
+# @see @link ./clean.sh ./clean.sh@endlink
+#
+# @see @link ./common.sh ./common.sh@endlink
+#
+# @internal Notice that 'jvm/*.sh' have the relative path prefix './'
+# attached to the front of the @@file directive.  This is to avoid an
+# interesting sensitivity in Doxygen that got confused between
+# 'jvm/filename.sh' and 'libjvm/filename.sh' and failed to produce
+# the "File List" entry for each 'jvm/*.sh' build script.  By marking
+# them './jvm/build.sh' et al, this behavior went away.  This same
+# comment may be found in @link ./config.sh config.sh@endlink
+#
+#
+# @todo  A Windows .BAT version of this script needs to be written
+#
+#
+# @section Control
+#
+# \$URL: https://svn.apache.org/path/name/clean.sh $ \$Id: clean.sh 0 09/28/2005 dlydick $
+#
+# Copyright 2005 The Apache Software Foundation
+# or its licensors, as applicable.
+#
+# Licensed under the Apache License, Version 2.0 ("the License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+# either express or implied.
+#
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# @version \$LastChangedRevision: 0 $
+#
+# @date \$LastChangedDate: 09/28/2005 $
+#
+# @author \$LastChangedBy: dlydick $
+#         Original code contributed by Daniel Lydick on 09/28/2005.
+#
+# @section Reference
+#
+#/ /* 
+# (Use  #! and #/ with dox_filter.sh to fool Doxygen into
+# parsing this non-source text file for the documentation set.
+# Use the above open comment to force termination of parsing
+# since it is not a Doxygen-style 'C' comment.)
+#
+#
+###################################################################
+#
+# Script setup
+#
+. common.sh
+
+###################################################################
+#
+# Remove output area.
+#
+chmod -R +w $TARGET_DIRECTORY
+rm -rf $TARGET_DIRECTORY
+rc=$?
+
+
+###################################################################
+#
+# Done.
+#
+exit $rc
+
+#
+# EOF

Propchange: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/clean.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/common.sh
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/common.sh?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/common.sh (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/common.sh Fri Oct  7 21:27:56 2005
@@ -0,0 +1,118 @@
+#!/bin/sh
+#
+#!
+# @file ./jvm/common.sh
+#
+# @brief Common code for building the main JVM development area
+#
+# This script is common to @b build.sh and @b clean.sh and is not
+# designed to do anything on its own.
+#
+# Each of these directories contains a @b build.sh script.  In addition
+# to these, an Eclipse project file is available in each for use with
+# the Eclipse C/C++ plugin, so this entire directory tree may be
+# imported wholesale into an Eclipse workspace and used without
+# changes.  (Eclipse 3.0.2 generated these files.)  Notice that
+# the Eclipse setup does not build the documentation set.  This must
+# be done manually with the top-level 'build.sh dox'.
+#
+# Each of these directories also contains a @b clean.sh script which
+# removes the output of @b build.sh.
+#
+# @attention The configuration options stored by 'config.sh' into the
+# file @b config/confopts.gcc are @e not directly available to
+# Eclipse and @e must be manually entered there after they are
+# established by @link config.sh config.sh@endlink.  They
+# should be entered in the project build parameters for C/C++ in the
+# miscellaneous parameters section.  For example, '-m32' and '-m64'.
+# For a command line GCC invocation, the following is a convenient
+# way to incorporate the options:
+#
+# @verbatim
+#
+#   $ gcc `cat ../config/config_opts_always.gcc` \
+#         `cat ../config/config_opts_usually.gcc` -c filename.c ...
+#
+# @endverbatim
+#
+# Notice that this script may be run instead of or as well as an
+# Eclipse build.  The only difference is where the object files
+# are stored.
+#
+#
+# @see @link jvm/build.sh jvm/build.sh@endlink
+#
+# @see @link jvm/clean.sh jvm/clean.sh@endlink
+#
+# @see @link ./build.sh ./build.sh@endlink
+#
+# @see @link ./clean.sh ./clean.sh@endlink
+#
+# @internal Notice that 'jvm/*.sh' have the relative path prefix './'
+# attached to the front of the @@file directive.  This is to avoid an
+# interesting sensitivity in Doxygen that got confused between
+# 'jvm/filename.sh' and 'libjvm/filename.sh' and failed to produce
+# the "File List" entry for each 'jvm/*.sh' build script.  By marking
+# them './jvm/build.sh' et al, this behavior went away.  This same
+# comment may be found in @link ./config.sh config.sh@endlink
+#
+#
+# @todo  A Windows .BAT version of this script needs to be written
+#
+#
+# @section Control
+#
+# \$URL: https://svn.apache.org/path/name/common.sh $ \$Id: common.sh 0 09/28/2005 dlydick $
+#
+# Copyright 2005 The Apache Software Foundation
+# or its licensors, as applicable.
+#
+# Licensed under the Apache License, Version 2.0 ("the License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+# either express or implied.
+#
+# See the License for the specific language governing permissions
+# and limitations under the License.
+#
+# @version \$LastChangedRevision: 0 $
+#
+# @date \$LastChangedDate: 09/28/2005 $
+#
+# @author \$LastChangedBy: dlydick $
+#         Original code contributed by Daniel Lydick on 09/28/2005.
+#
+# @section Reference
+#
+#/ /* 
+# (Use  #! and #/ with dox_filter.sh to fool Doxygen into
+# parsing this non-source text file for the documentation set.
+# Use the above open comment to force termination of parsing
+# since it is not a Doxygen-style 'C' comment.)
+#
+#
+###################################################################
+#
+# Script setup
+#
+chmod -w $0 common.sh
+
+SOURCES=`cat ../config/config_roster_c.dox | \
+      grep "^ " | \
+      sed 's,jvm/,,;s, \\\,,'`
+
+ALWAYS_OPTIONS=`cat ../config/config_opts_always.gcc`
+USUALLY_OPTIONS=`cat ../config/config_opts_usually.gcc`
+
+TARGET_DIRECTORY=bin
+
+TARGET_BINARY=$TARGET_DIRECTORY/bootjvm
+
+#
+# EOF

Propchange: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/common.sh
------------------------------------------------------------------------------
    svn:executable = *

Added: incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/include/jlClass.h
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/include/jlClass.h?rev=307257&view=auto
==============================================================================
--- incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/include/jlClass.h (added)
+++ incubator/harmony/enhanced/trunk/sandbox/contribs/bootjvm/bootJVM/jvm/include/jlClass.h Fri Oct  7 21:27:56 2005
@@ -0,0 +1,220 @@
+#ifndef _jlClass_h_included_
+#define _jlClass_h_included_
+
+/*!
+ * @file jlClass.h
+ *
+ * @brief Public interface to native implementation of
+ * @c @b java.lang.Class
+ *
+ * Two parallel sets of definitions are used here, one for internal
+ * implementation purposes, the other for JNI the interface.  The first
+ * uses internal data types (via @link #JLCLASS_LOCAL_DEFINED
+   \#ifdef JLCLASS_LOCAL_DEFINED@endlink) where the second does not.
+ * Instead, it uses @c @b \<jni.h\> data types.  Those types @e must
+ * match up for JNI to work, yet by keeping them
+ * absolutely separate, application JNI code does @e not have
+ * @b any dependencies on the core code of this JVM implementation.
+ *
+ * Even though there is only apparently @e one set of definitions,
+ * the @c @b \#ifdef statement controls which set is used.
+ *
+ * This file must be included by JNI code along with the
+ * @c @b java.lang.Class JNI header file.  The following example
+ * shows how to call one of the @e local native methods of this class
+ * from the JNI environment.  Notice that although this is not necessary
+ * due to the local implementation shortcut defined in
+ * @link jvm/src/native.c native.c@endlink, it is not only possible,
+ * but sometimes quite desirable to do so.
+ *
+ * @verbatim
+   #include <jni.h>
+   #include <solaris/jni_md.h>   ... or appropriate platform-specifics
+  
+   #include "java_lang_Class.h"  ... JNI definitions
+   #include "jlClass.h"          ... this file
+  
+   JNIEXPORT jboolean JNICALL
+       Java_java_lang_Class_isArray(JNIEnv  *env, jobject  thisobj)
+   {
+       jboolean b;
+
+       b = jlClass_isArray(thisobj); ... call native implementation
+
+       return(b);
+   }
+   @endverbatim
+ *
+ * @attention This local native method implementation is defined
+ *            in @link jvm/src/native.c native.c@endlink and
+ *            does @e not make use of the @b JNIENV pointer in
+ *            @e any manner.
+ *
+ * @attention Although @link #jvalue jvalue@endlink is indeed a part
+ *            of both this implementation and the standard JNI interface
+ *            through @c @b \<jni.h\> , it is @e not recommended to use
+ *            it if at all possible.  Due to the fact that both
+ *            definitions involve unions, along with the slightly
+ *            differing contents between the two versions, it is almost
+ *            certain that there will be compilation compatibility
+ *            problems in the memory layouts from one platform to
+ *            another, and possibly between the layouts between them on
+ *            any given platform.  Since @link #jvalue jvalue@endlink
+ *            is not specificaly a @e Java type, but instead a JNI
+ *            construction, this may not be a problem, but this
+ *            advisory is raised anyway in order to encourage reliable
+ *            implementation of JNI.
+ *
+ *
+ * @section Control
+ *
+ * \$URL: https://svn.apache.org/path/name/jlClass.h $ \$Id: jlClass.h 0 09/28/2005 dlydick $
+ *
+ * Copyright 2005 The Apache Software Foundation
+ * or its licensors, as applicable.
+ *
+ * Licensed under the Apache License, Version 2.0 ("the License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
+ * either express or implied.
+ *
+ * See the License for the specific language governing permissions
+ * and limitations under the License.
+ *
+ * @version \$LastChangedRevision: 0 $
+ *
+ * @date \$LastChangedDate: 09/28/2005 $
+ *
+ * @author \$LastChangedBy: dlydick $
+ *         Original code contributed by Daniel Lydick on 09/28/2005.
+ *
+ * @section Reference
+ *
+ */
+
+/**********************************************************************/
+#ifdef JLCLASS_LOCAL_DEFINED
+
+ARCH_COPYRIGHT_APACHE(jlClass, h, "$URL: https://svn.apache.org/path/name/jlClass.h $ $Id: jlClass.h 0 09/28/2005 dlydick $");
+
+/**********************************************************************/
+#else /* JLCLASS_LOCAL_DEFINED */
+
+#include "jlObject.h"
+
+/* There is currently nothing else needed here */
+
+#endif /* JLCLASS_LOCAL_DEFINED */
+/**********************************************************************/
+/*!
+ * @name Unified set of prototypes for functions
+ * in @link jvm/src/jlClass.c jlClass.c@endlink
+ *
+ * @brief JNI table index and external reference to
+ * each function that locally implements a JNI native method.
+ *
+ * The JVM native interface ordinal definition base for this class
+ * is 20.  An enumeration is used so the compiler can help the use
+ * to not choose duplicate values.
+ *
+ */
+
+
+/*@{ */ /* Begin grouped definitions */
+
+
+typedef enum
+{
+
+    JLCLASS_NMO_ISARRAY     = 20, /**< Ordinal for
+                           @link #jlClass_isArray() isArray()@endlink */
+
+    JLCLASS_NMO_ISPRIMATIVE = 21  /**< Ordinal for
+                   @link #jlClass_isPrimative() isPrimative()@endlink */
+
+} jlClass_nmo_enum;
+
+/*
+ * Add one function prototype below
+ * for each local native method enumeration above:
+ */
+
+/*!
+ * @brief JNI hook to @link #jlClass_isArray() isArray()@endlink
+ */
+extern jboolean jlClass_isArray(jvm_object_hash objhash);
+
+/*!
+ * @brief JNI hook to @link #jlClass_isPrimative() isPrimative()@endlink
+ */
+extern jboolean jlClass_isPrimative(jvm_object_hash objhash);
+
+/*@} */ /* End grouped definitions */
+
+
+/*!
+ * @name Connection to local native method tables.
+ *
+ * @brief These manifest constant code fragments are designed to be
+ * inserted directly into locations in
+ * @link jvm/src/native.c native.c@endlink without any other
+ * modification to that file except a @e single entry to actually
+ * invoke the method.
+ *
+ */
+/*@{ */ /* Begin grouped definitions */
+
+/*!
+ * @brief Complete list of local native method ordinals
+ * for @c @b java.lang.Class
+ */
+#define NATIVE_TABLE_JLCLASS \
+    case JLCLASS_NMO_ISARRAY:    \
+    case JLCLASS_NMO_ISPRIMATIVE:
+
+/*!
+ * @brief Table of local native methods and their descriptors
+ * for @c @b java.lang.Class
+ */
+#define NATIVE_TABLE_JLCLASS_ORDINALS                      \
+    {                                                      \
+        { JLCLASS_NMO_ISARRAY,     "isArray", "()V"     }, \
+        { JLCLASS_NMO_ISPRIMATIVE, "isPrimative", "()V" }, \
+                                                           \
+        /* Add other method entries here */                \
+                                                           \
+                                                           \
+        /* End of table marker */                          \
+        { JVMCFG_JLOBJECT_NMO_NULL,                        \
+          CHEAT_AND_USE_NULL_TO_INITIALIZE,                \
+          CHEAT_AND_USE_NULL_TO_INITIALIZE }               \
+    }
+
+#define NATIVE_TABLE_JLCLASS_JVOID   /**< No @c @b (jvoid) methods */
+#define NATIVE_TABLE_JLCLASS_JOBJECT /**< No @c @b (jobject) methods*/
+
+/*!
+ * @brief @c @b (jint) local native method ordinal table
+ * for @c @b java.lang.Class
+ */
+#define NATIVE_TABLE_JLCLASS_JINT     \
+    case JLCLASS_NMO_ISARRAY:         \
+    case JLCLASS_NMO_ISPRIMATIVE:
+
+#define NATIVE_TABLE_JLCLASS_JFLOAT  /**< No @c @b (jfloat) methods */
+#define NATIVE_TABLE_JLCLASS_JLONG   /**< No @c @b (jlong) methods */
+#define NATIVE_TABLE_JLCLASS_JDOUBLE /**< No @c @b (jdouble) methods*/
+
+/*@} */ /* End grouped definitions */
+
+
+#endif /* _jlClass_h_included_ */
+
+
+/* EOF */



Mime
View raw message