Modify

Ticket #89 (new defect)

Opened 12 years ago

Last modified 8 years ago

Semantics of annotations to the new statement (side-effects)

Reported by: Bernhard Haumacher (haui at haumacher dot de) Owned by:
Priority: normal Milestone:
Component: jpc Version: 1.04e
Severity: normal Keywords:
Cc:

Description

The location expression introduced in ticket:86 may cause side-effects. This is considered to be a misuse of the annotation. Even so the observations of such side effects should be reasonable.

Example

/** @at foo() */
for (int n = 0; n < cnt; n++) {
    new R();
}

Problem

If such usage of the annotation is allowed (see ticket:88), the effect should be the same as a Java declaration. The usage depicted above should evaluate the method foo() once and use the result for all allocations done inside the loop.

See also

ticket:88, ticket:90

todo since 1.04e.

Attachments

Change History

comment:1 Changed 8 years ago by hauma

  • Summary changed from Semantics of FEATURE/0086, side-effects to Semantics of annotations to the new statement (side-effects)
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 (none). Next status will be 'new'
The owner will be changed from (none) 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.