I think this is a bug:

If have some code like this:

        public function findInterfaces():Vector.<NetworkInterface>
        {
            var retVal:Vector.<NetworkInterface> = new 
Vector.<NetworkInterface>();
            var interfaces:Object = someCodeWhichReturnsAnObject();
            var x:String;
            for(x in interfaces){
                var interface:NetworkInterface = new NetworkInterface();
                interface.displayName = x;
                interface.name = x;
                interface.active = true;
                var addresses = interfaces[x];
                for(var i:int=0;i<addresses.length;i++){
                    var address:InterfaceAddress = new InterfaceAddress();
                    address.address = addresses[i].address;
                    address.broadcast = addresses[i].netmask;
                    address.ipVersion = addresses[i].family;
                    if(addresses[i].mac){
                        interface.hardwareAddress = addresses[i].mac;
                    }
                    if(addresses[i].internal){
                        interface.active = false;
                    }
                    
                }
                retVal.push(interface);
            }

            return retVal;
        }

And I’m getting errors like this:


        Interface definitions must not be nested within class or other 
interface definitions.
                interface.active = true;
        Expected IDENTIFIER but got '.'
                interface.active = true;
        '=' is not allowed here
                interface.active = true;
        if' is not allowed here
                    if(addresses[i].internal){
        'internal' is not allowed here
                    if(addresses[i].internal){
        Expected PAREN_CLOSE but got 'internal'
                    if(addresses[i].internal){
        ')' is not allowed here
                    if(addresses[i].internal){

Harbs

Reply via email to