logo       

[jira] Created: (BOO-258) check variable access and privileges at compile t: msg#00054

lang.boo.devel

Subject: [jira] Created: (BOO-258) check variable access and privileges at compile time

Message:

A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/BOO-258

Here is an overview of the issue:
---------------------------------------------------------------------
Key: BOO-258
Summary: check variable access and privileges at compile time
Type: Bug

Status: Unassigned
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: Boo
Components:
Compiler

Assignee:
Reporter: Doug Holton

Created: Mon, 21 Feb 2005 6:45 PM
Updated: Mon, 21 Feb 2005 6:45 PM

Description:
class A:
private privatefield = 1
protected protectedfield = 2
public final publicfinalfield as int = 3

a = A()
//these should throw an error at compile time:
//print a.privatefield
//print a.protectedfield

//modifying a final field
print a.publicfinalfield
a.publicfinalfield += 1 //no error modifying final field
print a.publicfinalfield
a.publicfinalfield += 1 //no error modifying final field
print a.publicfinalfield

I'll look into creating more test cases later.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise