Could this be improved to have a better interface?.. Grepping through
the code I get 1388 hits for org.apache.flex.compiler.problems in Java
files alone. No one would think of this as being an easy way to find
an offending warning... But I don't think most people would even go as
far as looking into the source code for ways to void a warning
message.

For those interested in this particular warning, I assume it's this
one: org.apache.flex.compiler.problems.AssignmentInConditionalProblem

Besides, there doesn't seem to be a way to specify this in the mxmlc Ant task...

On Wed, Dec 31, 2014 at 4:28 AM, Darrell Loverin
<darrell.love...@gmail.com> wrote:
> The falcon compiler and the (old) mxmlc compiler handle errors and warnings
> differently. In the mxmlc compiler a message is always an
> error/warning/info message at creation. In falcon, messages have a default
> severity but can be treated as an error, warning, or ignored. The
> configuration options to put a message into a severity category are
> -error-problems, -warning-problmes, and -ignore-problems.
>
> So to suppress a warning use -ignore-problems, passing the fully-qualified
> problem class to ignore.
> For example:
>>mxmlc -ignore-problems
> org.apache.flex.compiler.problems.ANELibraryNotAllowedProblem
>
> will ignore all reported problems with class ANELibraryNotAllowedProblem.
> The compiler will still report the problem it will just won't be displayed.
> For more info see the ProblemSettingsFilter class. This class handles the
> filtering and implements mxmlc options that ignore warnings.
>
>
> -Darrell
>
> On Tue, Dec 30, 2014 at 11:41 AM, Alex Harui <aha...@adobe.com> wrote:
>
>> I don’t know for sure.  Maybe Gordon or Darrell know if warning
>> suppression is supposed to work in Falcon.
>>
>> On 12/30/14, 1:35 AM, "Left Right" <olegsivo...@gmail.com> wrote:
>>
>> >I looked into mxmlc -help warnings but I don't see an option to void
>> >the warning issued on assignment inside while (and maybe other such
>> >places). Is there one, or it simply isn't implemented yet?
>> >
>> >Thanks!
>>
>>

Reply via email to