Skip to content

Document Class Library Integration - Value 5 #86

@LSantha

Description

@LSantha

Class Library Integration

Document the Class Library Integration JNode concept in the wiki.

Value: 5

Concept Summary

Integration with GNU Classpath and OpenJDK standard classes. Class Library Integration enables JNode to run standard Java applications by providing compatibility layers and extending the standard class library with JNode-specific implementations.

Key Files

  • core/src/classpath/org/jnode/classpath/ClasspathLoader.java
  • core/src/openjdk/org/jnode/openjdk/OpenJDKPatch.java

Occurrences

~80 references in classpath/openjdk packages

Wiki Status

PARTIALLY covered (Class-Library.md)

Bridges

JVM, Classloader, Java API

Instructions

Skill to Use

Use the [[update-wiki|update-wiki skill]] (load with skill({ name: "update-wiki" })) for understanding JNode internals.

Context Research

Review ClasspathLoader.java and OpenJDKPatch.java to understand the integration mechanisms. Study how GNU Classpath and OpenJDK classes are integrated, how JNode-specific extensions work, and how compatibility is maintained. Research the relationship between Class Library and the JVM.

Update index.md

  • Pages table: Add entry for Class-Library-Integration.md
  • Concepts → Pages table: Add "Class Library Integration" mapping to [[Class-Library-Integration]]
  • Source Path → Pages table: Add mappings for core/src/classpath/org/jnode/classpath/ and core/src/openjdk/org/jnode/openjdk/
  • Task Routing table: Add relevant task route(s)

Task Routing Suggestions

  1. Java compatibility: Understanding class library integration is key for running standard Java code
  2. API extension: JNode extends standard Java APIs
  3. Bug fixes: OpenJDK patches enable JNode-specific fixes

Wiki Page Structure

# Class Library Integration

> Integration with GNU Classpath and OpenJDK standard classes.

## Overview
2-3 paragraph explanation of Class Library Integration, how JNode integrates with standard Java libraries, and how it extends the standard API.

## Key Components
| Class / File | Role |
|---|---|
| `core/src/classpath/org/jnode/classpath/ClasspathLoader.java` | Classpath loader |
| `core/src/openjdk/org/jnode/openjdk/OpenJDKPatch.java` | OpenJDK patches |

## How It Works
Explanation of how class library integration works, how standard classes are loaded, how JNode extensions integrate, and how compatibility is maintained.

## Gotchas & Non-Obvious Behavior
- JNode must maintain Java API compatibility
- Some standard classes have JNode-specific implementations
- OpenJDK patches enable JNode-specific features

## Related Pages
- [[VM-Classloader]]
- [[OpenJDK-Patches]]
- [[Java-API]]

Related Concepts: Java API, Classpath, OpenJDK, GNU Classpath, Classloader

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions