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   Keith Thompson
    3 years ago (31 Oct 2008 23:59)
  • Updated by   root
    2 years ago (17 Jan 2010 21:08)
  • Jira: IDEADEV-32284
    (history, comments)
 
IDEA-46502 In mxlm file that extends another mxl file, inspection does not understand public subclass functions and vars
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Attached files and screen shots give examples, here is a summary
base mxml defined this way

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns="common.securitygateway.components.*" xmlns:component="common.components.*"
initialize="init()">

and it is extended using the following syntax (note this is working code)
<SG:LoginMain xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:SG="common.securitygateway.components.*"
xmlns:view="views.*" initialize="init()"
appName="Ebt" mainLoginSuccess="handleLoginSuccess(event)"
sessionLogOff="forceLogOff(event)">

inspection incorreclty flags the following as issues
- function references
private function doRegisterUser(evt:Event):void {
super.switchView('loginRegistration'); — inspection flags switchView as unknown but it is public in subclass
}

- var references
registerLink = myRegisterLink; – inspection flasgs registerLink as unknown but it is public function set in subclass

- base mx functions
dispatchEvent(new CommonEvent("loginSuccess")); – inspection flags dispatchEvent as unkown

  • subclass's attributes unknown
label = "Log-in"; – inspection reports label as uknown but it is an attribute of the extended Canvas component

AGAIN please not this is working code, not theory, extending MXML is very useful concept





Environment: xp

Issue was resolved
Comments (0)
 
History
 
Linked Issues (?)
 
Issue has no comments