Ticket #149 (closed enhancement: fixed)
Weaving into system classes
| Reported by: | stephan | Owned by: | stephan |
|---|---|---|---|
| Priority: | major | Milestone: | OTDT_1.2.3 |
| Component: | runtime-environment | Version: | pre_1.0 |
| Keywords: | topprax-jira | Cc: |
Description (last modified by stephan) (diff)
From Jira issue TPX-475
The current bytecode transformation mechanism of the OTRE uses the jmangler framework, which is not able to transform system classes (loaded by the bootstrap classloader). Thus, at the moment it is not possible to adapt system classes by callin bindings.
The JPLIS weaving strategy does not have this restriction. It is possible to use this experimental (incomplete!) weaving strategy by activating the checkbox "Java 5 JPLIS Launching (experimental)" in the OTDT-Eclipse launch configuration. Now the adaptation of system classes is possible, BUT:
- the base class is a system class thus loaded by the bootstrap class loader
- callin weaving adds references to teams into the base class
- these classes are unknown to the bootstrap classloader -> ClassNotFoundException!
Workaround: add whole project and the "otre.jar" to the bootstrap classpath in the launch configuration.
Of course this is not very reasonable!
by Christine Hundt
all news
RSS feed