nic119
nic119

Reputation: 61

Some Strange compiler warns in Flex library project

There are those strange warns of my Flex library project on my Flex builder 4.6 with FlexSDK 4.6:

let me describe how those strange comes to my Flex Builder 4.6.

  1. first,those warnings don't appear everytime,they just come out after I made some changes in a class (though the change is just add some blank lines). If I project-->clean , those warnings go away.
  2. second,if another project does not use this libray ,the warnings disappear.
  3. third, i am 95% sure there is nothing wrong in my code because is simple. There are no classes nested in my code!
  4. forth, here is a sample. There are two Classes in a Flex Library project, named Aclass And Bclass ,and an ActionScript Project that uses this Flex Library. If Aclass uses Bclass in the AS project,the warnings will be appear!

So, I have no idea what is wrong!! Maybe it is caused by my poor knowledge about Flash Builder, Flex Library, or the AS projects.

Thanks for your reading,as you infer, English is a foreign languages to me,there must be some mistakes,forgive me please

Upvotes: 1

Views: 376

Answers (4)

Discipol
Discipol

Reputation: 3157

The problem was Vector.<*> for me and from what I researched online. Apparently this screws up things quite a lot even though it should work. Replace with Vector.

Upvotes: 2

Anish Nair
Anish Nair

Reputation: 3368

  • Right Click on the "Project Name' in the "Flex Navigator" Tab on the left.
  • Click "Refresh"
  • Now go to the "Project" menu on top, select "Clean" [Make sure the same "Project Name" is selected in the "Flex Navigator" Tab]

That should probably fix it.

It worked for me.

Hope it helps !!

Regards, Anish

Upvotes: 0

nic119
nic119

Reputation: 61

after 3 days,I finger those problem out.

the solution is:

  1. first,create a new flex library
  2. second,move those class which are used in other projects,('used' means 'new' in other project)

that's work for me,i just know it is a solution,but about why it works,I have no idea!

thanks you all!!

Upvotes: 1

gfields
gfields

Reputation: 17

I have the same problem using Flex 4.10 and Flash Builder 4.7. If I clean the library project the "Class must not be nested" error disappear, but when I modify the code it appears again

Upvotes: 0

Related Questions