Skip to content

Create initial Class Library structure (java.base module) #1

@LunaStev

Description

@LunaStev

Set up the initial Class Library (ClassLib) structure for AriaJDK.
This library will serve as the java.base module — the foundation of all other modules in the JDK.
The implementation will be written in Kotlin, serving as the source for the compiled .class files loaded by the Aria JVM runtime.

This issue focuses on creating the directory structure and adding placeholder (dummy) Kotlin files for the most fundamental classes, ensuring that the JVM can locate basic classes like java.lang.Object, java.lang.String, and java.lang.System.


Tasks

  • Create directory structure under classlib/src/main/kotlin/java/lang/
  • Add the following placeholder Kotlin classes:
    • Object.kt
    • System.kt
    • String.kt
  • Ensure each class compiles successfully into .class files
  • Verify that the build process (x.py or Gradle) includes the generated classes inside the java.base module
  • Update the README (if needed) to describe the ClssLib layout

Example structure

classlib/
 └── src/
     └── main/
         └── kotlin/
             └── java/
                 └── lang/
                     ├── Object.kt
                     ├── String.kt
                     └── System.kt

Acceptance Criteria

  • The classlib module builds without errors
  • The directory structure for java.base is correctly generated
  • Object, String, and System placeholder classes exist and compile

Notes

  • No functionality is required yet — empty or minimal class definitions are sufficient (e.g., class Object {} in Kotlin).
  • The purpose is to establish a clean, standardized layout for future contributions to the standard library.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions