Issue Details (XML | Word | Printable)

Key: BOO-477
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Rodrigo B. de Oliveira
Reporter: Patrick Haener
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Boo

Ambiguous reference when some public propery has same name as private field

Created: 08/Sep/05 04:42 AM   Updated: 15/Sep/06 01:03 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP


 Description  « Hide
When IKVM translates Java enums or static fields to CLI public properties and private fields with the same name are created. When trying to use the properies Boo emits an error:
....
print simfin.finance.product.Currency USD

gives:

Ambiguous reference 'USD': simfin.finance.product.Currency USD, simfin.finance.product.Currency USD.

(IronPython handles this case correctly)



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Doug H added a comment - 08/Sep/05 08:46 PM
I don't have access to that java lib to test, but could you try passing the -strictfinalfieldsemantics option to ikvmc and see if boo works then? I'm not sure if that will work though.

But it is strange that IKVM does that, since even C# doesn't allow you create a method or property with the same name as an existing field.


Patrick Haener added a comment - 13/Sep/05 03:42 AM
I have tried -strictfinalfieldsemantics but get the same error message.