Mercury Bugs - mercury
View Issue Details
0000306mercuryBugpublic2013-12-18 06:122014-01-08 16:00
ReporterPedro Mariano 
Assigned Tojuliensf 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000306: Java grade and non alphabetic field name
DescriptionIf the field name of some type starts with a digit, compiling in the java grade fails. I've attached a simple program to illustrate the bug.

There is no problem compiling to C.
TagsNo tags attached.
related to 0000165new  java backend generates invalid code for contrived type 
Attached Files? javaField.m (1,143) 2013-12-18 06:12

2014-01-08 16:00   
This issue is that the Java backend (and indeed C# backend) do not perform name mangling of quoted
names like the C backends. (One reason for this is that doing so would complicate interfacing with
the generated Java code.) For the moment you should only use names that don't require quoting.

Issue History
2013-12-18 06:12Pedro MarianoNew Issue
2013-12-18 06:12Pedro MarianoFile Added: javaField.m
2014-01-08 15:59juliensfRelationship addedrelated to 0000165
2014-01-08 16:00juliensfNote Added: 0000598
2014-01-08 16:00juliensfAssigned To => juliensf
2014-01-08 16:00juliensfStatusnew => confirmed