PBMCube / as3yaml

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

Getting 28 warnings in Flex Builder Pro 3 when compiling as3yaml 0.4.1 #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Place org and all directories into my Flex project under src
2. Use YAML.encode and/or YAML.decode in project
3. Receive 28 errors in the "Problems" tab

What is the expected output? What do you see instead?

As a best practice, I require all my code (and those who work for me) to
compile with no warnings with default warning levels enabled. Although the
code works, I am concerned that it throws so many compile-time errors. 24
of the 28 errors are similar to:

Severity and Description    Path    Resource    Location    Creation Time   Id
3596: Duplicate variable definition.    proj/src/org/as3yaml
BaseConstructor.as  line 240    1268886047908   1148

and the last 4 look like:

Severity and Description    Path    Resource    Location    Creation Time   Id
flex2.compiler.as3.SignatureExtension.SignatureGenerationFailed[node='LabeledSta
tement',
level='warning',
cause='flex2.compiler.as3.SignatureAssertionRuntimeException: Unreachable
Codepath
    at flex2.compiler.as3.SignatureEvaluator.ASSERT(SignatureEvaluator.java:369)
    at
flex2.compiler.as3.SignatureEvaluator.UNREACHABLE_CODEPATH(SignatureEvaluator.ja
va:357)
    at
flex2.compiler.as3.SignatureEvaluator.evaluate(SignatureEvaluator.java:1708)
    at
macromedia.asc.parser.LabeledStatementNode.evaluate(LabeledStatementNode.java:47
)
    at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:338)
    at
flex2.compiler.as3.SignatureEvaluator.evaluate(SignatureEvaluator.java:1795)
    at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:60)
    at flex2.compiler.as3.SignatureEvaluator.evaluate(SignatureEvaluator.java:530)
    at
macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:106)
    at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:338)
    at
flex2.compiler.as3.SignatureEvaluator.evaluate(SignatureEvaluator.java:1795)
    at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:60)
    at flex2.compiler.as3.SignatureEvaluator.evaluate(SignatureEvaluator.java:454)
    at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
    at
flex2.compiler.as3.SignatureExtension.generateSignature(SignatureExtension.java:
270)
    at
flex2.compiler.as3.SignatureExtension.doSignatureGeneration(SignatureExtension.j
ava:174)
    at flex2.compiler.as3.SignatureExtension.parse1(SignatureExtension.java:137)
    at flex2.compiler.as3.Compiler.parse1(Compiler.java:369)

', column='6',
path='/Users/rich/Affectiva/proj/src/org/as3yaml/Emitter.as', line='56']
TaxMan/src/org/as3yaml  Emitter.as  line 56 1268886047876   1127

What version of the product are you using? On what operating system?

I built this using Flex Builder Pro 3 using Flex SDK 3.4.1 on Mac OS X
10.6.2. The project I am using builds an AIR application.

Please provide any additional information below.

I don't see any other reports, so I wonder if people are using this project
with Flex? The YAML encode / decode seem to work fine, although I have not
been through any rigorous testing. The last 4 warnings scare me the most.

Original issue reported on code.google.com by rsadow...@gmail.com on 18 Mar 2010 at 4:35

GoogleCodeExporter commented 9 years ago
Above I said "I am concerned that it throws so many compile-time errors". Of 
course I
meant to say Warnings. To be clear the code does compile and so far is working 
to
encode and decode the objects I've used. But the last 4 warnings seem alarming. 
I
have not looked at the YAML source closely to see what the warnings are 
complaining
about.

Original comment by rsadow...@gmail.com on 18 Mar 2010 at 4:39