Ticket #64 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

Compiler should warn if weaving into system classes will fail

Reported by: stephan Owned by: stephan
Priority: major Milestone: OTDT_1.2.3
Component: compiler Version: 1.1.6
Keywords: Cc:

Description

In #63 (bullet 3) the compiler generated code that required decapsulation for a method from Object. Other situations exist, where the OTRE will fail because classes have been loaded before the OTRE.

It would be nice if the compiler would detect these cases and issue a warning/error. Is the set of unweavable classes explicitly known?

Change History

Changed 3 years ago by stephan

  • milestone set to OTDT_2.0.0

Should really consider, but can't make any promise yet: setting to placeholder milestone OTDT_2.0.0.

Changed 2 years ago by stephan

  • status changed from new to assigned
  • milestone changed from OTDT_2.0.0 to OTDT_1.2.3

scheduling for 1.2.3 answering a report by Miguel on otj-users.

Changed 2 years ago by stephan

  • status changed from assigned to closed
  • resolution set to fixed

r19001 brings these improvements:

Better error reporting for binding/weaving to system classes:

  • issue a compiler warning mentioning JPLIS
  • make runtime error message more explicit.

Currently system classes are detected by a package starting with "java." or "javax.". Other than adding more prefixes to this list this is probably all we can do at this point.

Note: See TracTickets for help on using tickets.