toString() now needs to be global. This permits the method to be invoked from any place. The code in the body of the method shd be written under the assumption that it could be running at any place.
So if you override, declare it global. Ganesh Venkateshwara wrote: > Hi, > > I am compiling a program with SVN-Head that used to work with 2.0 release. > Every thing except the classes which have overridden toString() methods > compile. Though this is not critical, would like to know if some semantics > have changed? > > The error I get is similar to the following: > > > public toString(): x10.lang.String in Molecule cannot override global native > public safe toString(): x10.lang.String in x10.lang.Object; attempting to > assign weaker behavioral annotations > > > thanks > ganesh > > In the beginning there was nothing. God said, 'Let there be light!' And there > was light. There was still nothing, but you could see it a whole lot better. > - Ellen DeGeneres > > > > The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. > http://in.yahoo.com/ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > X10-users mailing list > X10-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/x10-users > > > > ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users