manifold-systems / manifold

Manifold is a Java compiler plugin, its features include Metaprogramming, Properties, Extension Methods, Operator Overloading, Templates, a Preprocessor, and more.
http://manifold.systems/
Apache License 2.0
2.43k stars 125 forks source link

If build.properties files are used, references to environment preprocessor defs such as JAVA_17 fail #327

Closed rsmckinney closed 3 years ago

rsmckinney commented 3 years ago

If build.properties files are used, references to environment preprocessor defs such as JAVA_17 fail.

Add a build.properties file anywhere above a source file. Then reference an environment def:

#if JAVA_17
  blah blah blah
#endif

result: the #if JAVA_17 always fails despite Java 17 being used in the project If the build.properties file is removed, it works again.

rsmckinney commented 3 years ago

Fix available in plugin releases 2020.3.42 (android studio) and 2021.x.33