Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Maxim Mossienko
Subsystem
Flex Support
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Kirill Safonov
    3 years ago (23 Jan 2009 14:33)
  • Updated by   root
    2 years ago (17 Jan 2010 21:11)
  • Jira: IDEADEV-34221
    (history, comments)
 
IDEA-47566 Fully qualified reference still needs import statement in flex
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
1. the following code will not compile:
package com.foo {
public class Base3 {
    var p : mx.messaging.messages.AbstractMessage; // type not found compilation error, but no inspection error message shown
}
}


2. while this one will:
package com.foo {
import mx.messaging.messages.AbstractMessage; // highlighed as unused import, but it is needed actually
public class Base3 {
    var p : mx.messaging.messages.AbstractMessage;
}
}



Issue was resolved
Comments (3)
 
History
 
Linked Issues (?)
 
Kirill Safonov
  Kirill Safonov
23 Jan 2009 15:59
3 years ago
same for
<?xml version="1.0" ?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100" height="100" >
    <mx:Script><![CDATA[
        import mx.controls.Alert;

    function fooo() {

        mx.controls.Alert.show("aaa");

    }
]]></mx:Script>
</mx:Canvas>
Taras Tielkes
  Taras Tielkes
27 Jan 2009 19:22
3 years ago
Does is really work like this in Flex? Does mxmlc compiler always require explicit import, even when "FQN" type name is used?
Maxim Mossienko
  Maxim Mossienko
27 Jan 2009 20:10
3 years ago
Yep, it was a nice surprise