Modify

Ticket #137 (new defect)

Opened 11 years ago

Last modified 8 years ago

Pseudo class variable as argument to synchronized blocks

Reported by: Bernhard Haumacher (haui at haumacher dot de) Owned by: hauma
Priority: normal Milestone: 2.0
Component: JP trafo Version: 1.06c
Severity: major Keywords:
Cc:

Description (last modified by hauma) (diff)

Compiler crashes if it encounters an access to the pseudo .class variable of a remote class as argument to a synchronized block.

Problem

R.class is translated to "this.class" in the context of a synchonized block argument. This is nonsense.

Evaluation

The same difficulty exists for replicated classes (see ticket:157).

Test

jp.test.TestClassVariable

todo since 1.06c.

Attachments

Change History

comment:1 Changed 8 years ago by hauma

  • Severity changed from normal to major
  • Description modified (diff)
  • Milestone set to 2.00

For replicated classes this issue is resolved by inspecting synchronization on Class objects at runtime. A synchronization on a Class object representing a replicated class is forwarded to the replicated class implementation object as either a shared, exclusive, or collective synchronization.

comment:2 Changed 8 years ago by moschny

  • Owner set to hauma

comment:3 Changed 8 years ago by hauma

This issue is closely related to ticket:211.

comment:4 Changed 8 years ago by hauma

  • Description modified (diff)
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from hauma. Next status will be 'new'
The owner will be changed from hauma to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.