Modify

Opened 15 years ago

Last modified 15 years ago

#217 new defect

Broken transparent replicated class transformation (access to static parts of a replicated class)

Reported by: hauma Owned by: hauma
Priority: normal Milestone: 2.0
Component: jpc Version: 1.09a
Severity: normal Keywords:
Cc:

Description

Crashes the compiler where it should not:

replicated class A {
    static int x = 10;
    static int y = x;
}

Attachments (0)

Change History (3)

comment:1 Changed 15 years ago by hauma

The compiler apologizes with:

Exception in thread "main" java.lang.InternalError: not within a definition.
        at gjc.v6.jp.GeneralContext.isStatic(gjc/v6/jp/GeneralContext.java:81)
        at gjc.v6.jp.TransReplicatedBody._case(gjc/v6/jp/TransReplicatedBody.java:262)
        at gjc.v6.jp.TransReplicatedBody._case(gjc/v6/jp/TransReplicatedBody.java:21)

Problematic seems to be the usages of the static x in the initializer of y.

comment:2 Changed 15 years ago by hauma

  • Component changed from JP environment to jpc

comment:3 Changed 15 years ago by hauma

  • Summary changed from Broken transparent replicated class transformation to Broken transparent replicated class transformation (access to static parts of a replicated class)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain hauma.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hauma to the specified user. 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.