prabhukonchada / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

Unscaped quotes #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Escaped quotes inside C-Strings should be escaped too in Java-Strings.

For example:

  #define CONST "There are quotes (\"\") inside this string"

Should be converted to:

  public static final java.lang.String CONST = "There are quotes (\"\") inside this string";

instead of the actual (jnaerator 0.9.5)

  public static final java.lang.String CONST = "There are quotes ("") inside this string";

This causes the following syntax error on javac:

  Syntax error on token "") inside this string"", delete this token

Original issue reported on code.google.com by rsle...@gmail.com on 18 Feb 2011 at 1:18

GoogleCodeExporter commented 9 years ago
Hello,

Thanks for your report, will fix this ASAP !
Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 18 Feb 2011 at 5:16

GoogleCodeExporter commented 9 years ago
Hello,

This is now fixed in the SVN version (see 
http://code.google.com/p/nativelibs4java/source/detail?r=1801).
An updated Maven snapshot should be available tonight.
Thanks again for your report !

Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 18 Mar 2011 at 7:22