kiniry / Mobius

4 stars 8 forks source link

Java identifier vs. BON keyword clash #637

Open atiti opened 11 years ago

atiti commented 11 years ago

If a BON keyword is used as a Java identifier then BON generated from a Java architecture is not type-correct.

E.g., {{{ public void add(/_@ nonnull @/ Object object, int index) }}} generates {{{ add -> index: INTEGER -> object: ANY }}}

atiti commented 11 years ago

From: fintan (GH: fintanf) Date: Mon Mar 14 10:00:54 2011

We should devise a naming scheme that gets around this but can still be automated.

The above will look a bit clunky when used, although hopefully this will encourage the user to rename appropriately to avoid it being seen again!

atiti commented 11 years ago

From: kiniry (GH: kiniry) Date: Mon Mar 14 10:28:51 2011

Don't forget that a warning should be issued too, and this analysis should happen even if refinement generation is not requested (i.e., when using the -cc, -cf, -f, or -tc switches on BONc).