You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Peter Ent <pe...@adobe.com> on 2015/09/02 19:29:12 UTC

[FlexJS] SVGElement warning

Hi,

When I build the flexjs/examples/native/USStatesMap project, I get a set of warning from the cross-compile step such as:


     [java] WARNING: flex-asjs/examples/native/USStatesMap/bin/js-debug/USStatesMap.js:33: WARNING - Bad type annotation. Unknown type SVGElement

     [java]  * @type {SVGElement}

     [java]           ^

Does anyone know how to suppress these?

Thanks,
Peter Ent
Adobe Systems


Re: [FlexJS] SVGElement warning

Posted by Erik de Bruin <er...@ixsoftware.nl>.
I looked into this a while ago. It seemed related to the 'externs' that are
fed into the GCC. The SVG externs are bunched in with the 'regular' JS.SWC
externs, but there are some issues with the SVG externs such that they
cause trouble :-(

I (obviously) wasn't able to fix it.

Also, the SVG stuff should really be it's own extern project, as it is not
part of the set of externs that we take from the Closure project, which
makes keeping it up to date a hassle.

EdB



On Wed, Sep 2, 2015 at 9:13 PM, Peter Ent <pe...@adobe.com> wrote:

> I was able to fix the charts example because the warning came from
> manually written JS. I just changed {SVGElement} to {Object}. Maybe not
> 100% the best solution, but it quelled the warning.
>
> This code is cross-compiled from ActionScript so I cannot easily make the
> same fix.
>
> ‹peter
>
> On 9/2/15, 3:02 PM, "omuppi1@gmail.com on behalf of OmPrakash Muppirala"
> <omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:
>
> >Sorry I don't know the answer, but wanted to point out that I have seen
> >similar warnings in the regular FlexJS JS build outputs as well.  i.e. in
> >the Charts example.
> >
> >Thanks,
> >Om
> >
> >On Wed, Sep 2, 2015 at 10:29 AM, Peter Ent <pe...@adobe.com> wrote:
> >
> >> Hi,
> >>
> >> When I build the flexjs/examples/native/USStatesMap project, I get a set
> >> of warning from the cross-compile step such as:
> >>
> >>
> >>      [java] WARNING:
> >> flex-asjs/examples/native/USStatesMap/bin/js-debug/USStatesMap.js:33:
> >> WARNING - Bad type annotation. Unknown type SVGElement
> >>
> >>      [java]  * @type {SVGElement}
> >>
> >>      [java]           ^
> >>
> >> Does anyone know how to suppress these?
> >>
> >> Thanks,
> >> Peter Ent
> >> Adobe Systems
> >>
> >>
>
>


-- 
Ix Multimedia Software

Jan Luykenstraat 27
3521 VB Utrecht

T. 06-51952295
I. www.ixsoftware.nl

Re: [FlexJS] SVGElement warning

Posted by Peter Ent <pe...@adobe.com>.
I was able to fix the charts example because the warning came from
manually written JS. I just changed {SVGElement} to {Object}. Maybe not
100% the best solution, but it quelled the warning.

This code is cross-compiled from ActionScript so I cannot easily make the
same fix.

‹peter

On 9/2/15, 3:02 PM, "omuppi1@gmail.com on behalf of OmPrakash Muppirala"
<omuppi1@gmail.com on behalf of bigosmallm@gmail.com> wrote:

>Sorry I don't know the answer, but wanted to point out that I have seen
>similar warnings in the regular FlexJS JS build outputs as well.  i.e. in
>the Charts example.
>
>Thanks,
>Om
>
>On Wed, Sep 2, 2015 at 10:29 AM, Peter Ent <pe...@adobe.com> wrote:
>
>> Hi,
>>
>> When I build the flexjs/examples/native/USStatesMap project, I get a set
>> of warning from the cross-compile step such as:
>>
>>
>>      [java] WARNING:
>> flex-asjs/examples/native/USStatesMap/bin/js-debug/USStatesMap.js:33:
>> WARNING - Bad type annotation. Unknown type SVGElement
>>
>>      [java]  * @type {SVGElement}
>>
>>      [java]           ^
>>
>> Does anyone know how to suppress these?
>>
>> Thanks,
>> Peter Ent
>> Adobe Systems
>>
>>


Re: [FlexJS] SVGElement warning

Posted by OmPrakash Muppirala <bi...@gmail.com>.
Sorry I don't know the answer, but wanted to point out that I have seen
similar warnings in the regular FlexJS JS build outputs as well.  i.e. in
the Charts example.

Thanks,
Om

On Wed, Sep 2, 2015 at 10:29 AM, Peter Ent <pe...@adobe.com> wrote:

> Hi,
>
> When I build the flexjs/examples/native/USStatesMap project, I get a set
> of warning from the cross-compile step such as:
>
>
>      [java] WARNING:
> flex-asjs/examples/native/USStatesMap/bin/js-debug/USStatesMap.js:33:
> WARNING - Bad type annotation. Unknown type SVGElement
>
>      [java]  * @type {SVGElement}
>
>      [java]           ^
>
> Does anyone know how to suppress these?
>
> Thanks,
> Peter Ent
> Adobe Systems
>
>