Faculty of Information Technology
Software Engineering Group

Opened 5 years ago

Last modified 5 years ago

#47 assigned defect

Fix class initialization

Reported by: Jan Vraný Owned by: hlopkmar
Priority: major Milestone: milestone:
Component: stx:libjava Keywords:
Cc:

Description

Fix class initialization code (JavaClass>>classInit) to match
JVM Spec, see JVM spec, 3rd edition, page 254.

As class init lock, we may use monitor associated with the class.
Also, we don't have state flag for "erroneous" state...

Change History (2)

comment:1 Changed 5 years ago by Jan Vraný

Component: VM supportstx:libjava
Owner: changed from Jan Vraný to hlopkmar
Status: newassigned

comment:2 Changed 5 years ago by Jan Vraný

I have added the synchronization (see commit 64b02ee49807). Works fine for me now, but has to be verified against the spec.

Error handling and throwing ExceptionInInitializerError is not yet done (and should be)

Note: See TracTickets for help on using tickets.