Arbitrary casting between interfaces is allowed?

hi,
i'm confused since i thought you could not do this
interface ITreePlanter {
     public void plantTree();
interface IMotorCycleRepairer {
     public void repairMotorCycle();
class foo {
     void bar() {
          ITreePlanter a = null;
          IMotorCycleRepairer b = (IMotorCycleRepairer) a;
          a = (ITreePlanter) b;
}but apparently you can!
changing the interfaces to abstract classes, or classes produces compilation errors. Anyone have any insights into why this is?
thanks,
asjf

JLS, 2nd ed, 5.5: The remaining cases involve conversion between reference types. The detailed rules
for compile-time correctness checking of a casting conversion of a value of compile-time
reference type S (source) to a compile-time reference type T (target) are as follows:
    * If S is a class type:
          o If T is a class type, then S and T must be related classes-that is, S and T must
            be the same class, or S a subclass of T, or T a subclass of S; otherwise a
            compile-time error occurs.
          o If T is an interface type:
                + If S is not a final class (�8.1.1), then the cast is always correct at compile
                  time (because even if S does not implement T, a subclass of S might).
                + If S is a final class (�8.1.1), then S must implement T, or a compile-time
                  error occurs.
          o If T is an array type, then S must be the class Object, or a compile-time error
            occurs.
    * If S is an interface type:
          o If T is an array type, then T must implement S, or a compile-time error occurs.
          o If T is a class type that is not final (�8.1.1), then the cast is always correct at
            compile time (because even if T does not implement S, a subclass of T might).
          o If T is an interface type and if T and S contain methods with the same signature
            (�8.4.2) but different return types, then a compile-time error occurs.
    * If S is an array type SC[], that is, an array of components of type SC:
          o If T is a class type, then if T is not Object, then a compile-time error occurs
            (because Object is the only class type to which arrays can be assigned).
          o If T is an interface type, then a compile-time error occurs unless T is the type
            java.io.Serializable or the type Cloneable, the only interfaces implemented by
            arrays.
          o If T is an array type TC[], that is, an array of components of type TC, then a
            compile-time error occurs unless one of the following is true:
                + TC and SC are the same primitive type.
                + TC and SC are reference types and type SC can be cast to TC by a
                  recursive application of these compile-time rules for casting. Your situation is that S and T are both interface types, so a compile-time error occurs only if T and S contain methods with the same signature but different return types.

Similar Messages

  • Difference between interface pool and class pool

    Hi,
    Can any body tell me the difference between Interface pool and Class pool.
    thank you in advance.
    regards

    Hi,
    Class and Interface Pools
    This section discusses the structure and special features of class and interface pools for global classes.
    Global Classes and Interfaces
    Classes and interfaces are object types. You can define them either globally in the Repository or locally in an ABAP program. If you define classes and interfaces globally, special ABAP programs called class pools or interface pools of type K or J serve as containers for the respective classes and interfaces. Each class or interface pool contains the definition of a single class or interface. The programs are automatically generated by the Class Builder when you create a class or interface.
    A class pool is comparable to a module pool or function group. It contains both declarative and executable ABAP statements, but cannot be started on its own. The runtime system can create runtime instances (objects) through a request using the CREATE OBJECT statement. These objects execute the statements of the class pool.
    Interface pools do not contain any executable statements. Instead, they are used as containers for interface definitions. When you implement an interface in a class, the interface definition is implicitly included in the class definition.
    Structure of a Class Pool
    Class pools are structured as follows:
    Class pools contain a definition part for type declarations, and the declaration and implementation parts of the class.
    Differences From Other ABAP Programs
    Class pools are different from other ABAP programs for the following reasons:
    ·        ABAP programs such as executable programs, module pools, or function modules, usually have a declaration part in which the global data for the program is defined. This data is visible in all of the processing blocks in the program. Class pools, on the other hand, have a definition part in which you can define data and object types, but no data objects or field symbols. The types that you define in a class pool are only visible in the implementation part of the global class.
    ·        The only processing blocks that you can use are the declaration part and implementation part of the global class. The implementation part may only implement the methods declared in the global class. You cannot use any of the other ABAP processing blocks (dialog modules, event blocks, subroutines, function modules).
    ·        The processing blocks of class pools are not controlled by the ABAP runtime environment. No events occur, and you cannot call any dialog modules or procedures. Class pools serve exclusively for class programming. You can only access the data and functions of a class using its interface.
    ·        Since events and dialog modules are not permitted in classes, you cannot process screens in classes. You cannot program lists and selection screens in classes, since they cannot react to the appropriate events. It is intended to make screens available in classes. Instead of dialog modules, it will be possible to call methods of the class from the screen flow logic.
    Local Classes in Class Pools
    The classes and interfaces that you define in the definition part of a class pool are not visible externally. Within the class pool, they have a similar function to local classes and interfaces in other ABAP programs. Local classes can only be instantiated in the methods of the global class. Since subroutines are not allowed in class pools, local classes are the only possible modularization unit in global classes. Local classes have roughly the same function for global classes as subroutines in function groups, but with the significant exception that they are not visible externally
    Reward points if useful....
    Regards
    AK

  • Difference between interface view and interface controller

    Hi,
    What is the difference between interface controller and interface view?
    When we will use interface controller and when we will use interface view?
    How do we create an interface view?
    How do we attach this interface view to a view in another component
    Regards
    MQ

    Hi
    Interface View Controllers
    A) Implement event handlers which are called when ..
           -starting (start-up plugs) Web Dypro applications
           -a component is reached via navigation (inbound plugs)
    B) Allow fireing outbound plugs (navigation)
    C) Allow firing exit plug
    D) Have no own context, public methods or events
    Interface Controller of a Component
    The interface controller of a Web Dynpro component contains all context nodes, events and methods of the component controller to which you assigned the Interface addition in the Controller Editor. These parts can be displayed in the interface controller view, although you cannot edit them here.
    Interface Controller of a Component Interface
    A Web Dynpro component interface can be created independently and defined so that it can be implemented later in any components (see working with Web Dynpro Component Interfaces in the Programming Manual of this documentation). That is why in this case you can define the context nodes, methods and events you require in the interface controller view. The relevant implementation then takes place in the component controller of the implementing component.
    Check this links and work on it.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#13 [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#12 [original link is broken]
    Interface view and interface controller
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f727d100-0801-0010-4cbd-b0ad5c161945
    Difference between custom controller and interface component
    Thanks and Regards,
    Tulasi Palnati

  • Difference between Interface node and normal node?

    What is the main difference between  Interface node and normal node?
    Cheers
    Aisurya.

    Hi surya,
    Interface node or methods comes into picture whenever you want to use one component as used component. I mean to say
    Component usages. If you select node as interface node, it will available in another component so you can use that node or methods.
    Normal node means in that component only. Simply we can say for component usages we go for interface nodes.
    Cehck This...
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/79/555e3f71e41e26e10000000a114084/content.htm
    Cheers,
    Kris.

  • How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    How to disable the run-time popup menu in the sequence display on TestStand Operator Interface, that allow the use to skip the test?

    Hello,
                  Regarding the skip/force pass/force fail options, when I set the ControlExecFlow to True in Teststand 3.1 and 3.5, in the Sequence Editor the menu options for skip/force pass/force fail are not active for Technician but, when I launch the Operator Interface logged with Technician the options are active. The problem is that if the technician sets one step to one of these options, and change the user to Operator, the test step remains skip/force pass.
                  Is there any possibility without modifying the Operator Interface (at programming level), to reload default values of the steps when changing the user to Operator?
    Thank you,
    Best regards,
    paio

  • "modifier interface not allowed here" compiler error

    Consider the following code fragment:
    public void someMethod(int val){
    interface ISomeInterface {int anyval=10;}
    This does not compile ("modifier interface not allowed here"). What am I missing? Thanks in advance.
    Ref: http://www.norvig.com/java-iaq.html#fold

    Nothing to apologise. The posting is almost like ...
    public void someMethod(int val){
    static int x;
    but its is different. Thanks.
    It's completely different than that. It's just like this:
    public class SomeClass {
      public void someMethod(int val) {
        public class SomeClassWithinAMethodWhichIsNotAllowed {
          // members of illegal class go here
        // local variables and code for someMethod go here
      // other members of SomeClass go here

  • Re: FORTE Libraries handling (between interfaces andimplementations) q

    From [email protected] Wed Feb 24 07:24:54 1999
    Subject: FORTE Libraries handling (between interfaces and implementations)
    question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated, as well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pex file in the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) plan for the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    The result would be that you're not using the library version of the plan.
    Instead, you'll have a separate copy built into your image repository
    or executable. In other words, it will be as if you'd never generated
    the plan as a library.
    Mike Schilling
    Forte Software
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    From [email protected] Wed Feb 24 07:24:54 1999
    Subject: FORTE Libraries handling (between interfaces and implementations)
    question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated, as well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pex file in the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) plan for the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    The result would be that you're not using the library version of the plan.
    Instead, you'll have a separate copy built into your image repository
    or executable. In other words, it will be as if you'd never generated
    the plan as a library.
    Mike Schilling
    Forte Software
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • RE: FORTE Libraries handling (between interfaces andimplementati ons)

    Charles..
    If you are talking about different repositories in a single environment, I
    am guessing the uuid of the pex file has to be the same. I am not sure if
    the pex file forte creates will have the same uuid as the pex file you
    obtain when you export with uuid from fscript. If uuid is important for
    installed libraries, which I think is true, then there-in lies the impact!!
    Cheers!!
    -Ravi Kalidindi
    Born Info Svcs Group
    -----Original Message-----
    From: Charles Abecassis [SMTP:[email protected]]
    Sent: Wednesday, February 24, 1999 9:18 AM
    Cc: '[email protected]'
    Subject: FORTE Libraries handling (between interfaces and
    implementations) question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated, as
    well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pex file in
    the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) plan for the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>-
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    thanks a lot.
    But when the plan is distributed, there's no way of revealing the code that made it, isn't it ?
    -----Message d'origine-----
    De: Wang, Tien [SMTP:[email protected]]
    Date: mercredi 24 fevrier 1999 18:26
    A: 'Charles Abecassis'; 'Kalidindi, Ravi CWT-MSP'
    Cc: '[email protected]'
    Objet: RE: FORTE Libraries handling (between interfaces and implementati ons) question
    Hi Charles & Ravi,
    Another aspect of this subject is:
    Many times, libraries are designed to give to someone without revealing
    your code. If you decide to have the original project included, this
    means your program will use it as a supplier plan. It also implies your
    program will have knowledge of the original project and its parent
    supplier plans and so on.
    If you don't care about revealing your original code and dragging all
    the related projects into your program, it's fine. It has advantage:
    if you decide to change something in your original project, you can just
    run it without re-making distribution as a library.
    However, if your original project seems pretty stable and can be shared
    by other application, making it as a library is not a bad idea.
    Hope this helps.
    Regards,
    Tien Wang
    Indus Consultancy Services
    (201) 261-3100 ext 236
    [email protected]
    www.indcon.com
    From: Kalidindi, Ravi CWT-MSP[SMTP:[email protected]]
    Reply To: Kalidindi, Ravi CWT-MSP
    Sent: Wednesday, February 24, 1999 11:47 AM
    To: 'Charles Abecassis'
    Cc: '[email protected]'
    Subject: RE: FORTE Libraries handling (between interfaces and
    implementati ons) question
    Charles..
    If you are talking about different repositories in a single
    environment, I
    am guessing the uuid of the pex file has to be the same. I am not sure
    if
    the pex file forte creates will have the same uuid as the pex file you
    obtain when you export with uuid from fscript. If uuid is important
    for
    installed libraries, which I think is true, then there-in lies the
    impact!!
    Cheers!!
    -Ravi Kalidindi
    Born Info Svcs Group
    -----Original Message-----
    From: Charles Abecassis
    [SMTP:[email protected]]
    Sent: Wednesday, February 24, 1999 9:18 AM
    Cc: '[email protected]'
    Subject: FORTE Libraries handling (between interfaces and
    implementations) question
    Hi,
    When a plan gets distributed as library, a '.sl' file is generated,as
    well as a
    pex file and some header files.
    When we need that library, we 'should' include that generated pexfile in
    the
    workspace used for the distribution.
    What's the impact of keeping the original ('implementation'?) planfor the
    library, and not replacing it with the generated
    pex file ?
    J-Paul Gabrielli & Charles Abecassis
    Sema DTS
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive<URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive
    <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Difference between interface and conversion

    could you give me the difference between interface and conversion

    hi
    <b>Conversion,</b> converting legacy system data into SAP data. Meaning that it is mainly a one shot deal, for example bringing your customer master to SAP from the legacy system, converting the fields used in legacy to the fields and values used in SAP.
    <b>Interface,</b> a program or group of programs that handle the passing of data from one system to another. These programs work together to export the data from one system and import into a target system, maybe these programs run once a day, maybe twice, may every hour throughout the day. It is a good way to keep the data in two or more systems in sync with each other.
    Interface programs are also data extract program. Data is extracted from SAP into a flat file and transferred to other external systems like UNIX, mainframe.
    In data extracts, the file layout is designed and this layout should be in synch with other external systems.
    <b>reward poins for useful ans</b>
    Regards
    Aarti

  • What is the difference between Interface and Conversion?

    Hi friends,
       Can any one teel me What is the difference between Interface and Conversion in detail.
    Rewarded with points
    Thanks & Regards,
    Naren.

    Hi,
       interface can be outbound i.e writing data to
       application server using open dataset,transfer
      or downloading data (gui_download)
       inbound -> reading data from application server using
                  open dataset,read dataset,uploading data
                  using gui_upload.
       conversion:BAtch data communication method
                  where legavy data is uploaded in SAp.
    Regards
    Amole

  • What is the difference between earnings and allowances

    Hi
    Currently I am working as a payroll functional for Indian Legislation.What is the main difference between earnings and allowances? Is there any rule to classify any element as earning or allowance?

    Earnings
    Represents payments made to an employee other than perquisites and allowances.
    Allowance
    Represents the allowances that are paid to an employee, for example, conveyance allowance and house rent allowance.
    The element creation wizards setup a lot of this stuff for you. Check out the following Oracle Support article for more information on Indian payroll setup:     
    Oracle Human Resources (HRMS) for India Supplement (Doc ID 297146.1)

  • Having issues on ASA 5510 pass traffic between interfaces

    I am trying to pass traffic between two internal interfaces but am unable to.  Been searching quite a bit and have tried several things to no avail. I feel like there is a simple solution here I am just not seeing. Here is the relevant portion of my config:
    interface Ethernet0/1
    nameif inside
    security-level 100
    ip address 192.168.5.1 255.255.255.0
    interface Ethernet0/2
    nameif ct-users
    security-level 100
    ip address 10.12.0.1 255.255.0.0
    same-security-traffic permit inter-interface
    access-list inside_nat0_outbound extended permit ip any 192.168.5.0 255.255.255.0
    access-list inside_nat0_outbound extended permit ip any 10.12.0.0 255.255.0.0
    access-list inside_access_in extended permit ip any any
    nat (inside) 0 access-list inside_nat0_outbound
    nat (inside) 1 0.0.0.0 0.0.0.0
    nat (ct-users) 0 access-list inside_nat0_outbound
    nat (ct-users) 1 0.0.0.0 0.0.0.0
    static (inside,ct-users) 192.168.5.0 192.168.5.0 netmask 255.255.255.0
    static (ct-users,inside) 10.12.0.0 10.12.0.0 netmask 255.255.0.0
    access-group outside_access_in in interface outside
    access-group outside_access_ipv6_in in interface outside
    access-group inside_access_in in interface inside
    access-group inside_access_ipv6_in in interface inside
    access-group inside_access_in in interface ct-users
    access-group inside_access_ipv6_in in interface ct-users
    On both networks I am able to access the internet, just not traffic between each other.
    A packet-tracer reveals the following (it's hitting some weird rules on the way):
    cybertron# packet-tracer input inside tcp 192.168.5.2 ssh 10.12.0.2 ssh detailed
    Phase: 1
    Type: ACCESS-LIST
    Subtype:
    Result: ALLOW
    Config:
    Implicit Rule
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xab827020, priority=1, domain=permit, deny=false
    hits=8628156090, user_data=0x0, cs_id=0x0, l3_type=0x8
    src mac=0000.0000.0000, mask=0000.0000.0000
    dst mac=0000.0000.0000, mask=0100.0000.0000
    Phase: 2
    Type: UN-NAT
    Subtype: static
    Result: ALLOW
    Config:
    static (ct-users,inside) 10.12.0.0 10.12.0.0 netmask 255.255.0.0
    match ip ct-users 10.12.0.0 255.255.0.0 inside any
    static translation to 10.12.0.0
    translate_hits = 0, untranslate_hits = 6
    Additional Information:
    NAT divert to egress interface ct-users
    Untranslate 10.12.0.0/0 to 10.12.0.0/0 using netmask 255.255.0.0
    Phase: 3
    Type: ACCESS-LIST
    Subtype: log
    Result: ALLOW
    Config:
    access-group inside_access_in in interface inside
    access-list inside_access_in extended permit ip any any
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xad5bec88, priority=12, domain=permit, deny=false
    hits=173081, user_data=0xa8a76ac0, cs_id=0x0, flags=0x0, protocol=0
    src ip=0.0.0.0, mask=0.0.0.0, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 4
    Type: IP-OPTIONS
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xab829758, priority=0, domain=inspect-ip-options, deny=true
    hits=146139764, user_data=0x0, cs_id=0x0, reverse, flags=0x0, protocol=0
    src ip=0.0.0.0, mask=0.0.0.0, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 5
    Type: NAT-EXEMPT
    Subtype: rpf-check
    Result: ALLOW
    Config:
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xad48c860, priority=6, domain=nat-exempt-reverse, deny=false
    hits=2, user_data=0xad4b5e98, cs_id=0x0, use_real_addr, flags=0x0, protocol=0
    src ip=192.168.5.0, mask=255.255.255.0, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 6
    Type: NAT-EXEMPT
    Subtype:
    Result: ALLOW
    Config:
    match ip inside any ct-users 10.12.0.0 255.255.0.0
    NAT exempt
    translate_hits = 2, untranslate_hits = 2
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xad3b1f70, priority=6, domain=nat-exempt, deny=false
    hits=2, user_data=0xad62b7a8, cs_id=0x0, use_real_addr, flags=0x0, protocol=0
    src ip=0.0.0.0, mask=0.0.0.0, port=0
    dst ip=10.12.0.0, mask=255.255.0.0, port=0, dscp=0x0
    Phase: 7
    Type: NAT
    Subtype:
    Result: ALLOW
    Config:
    static (inside,ct-users) 192.168.5.0 192.168.5.0 netmask 255.255.255.0
    match ip inside 192.168.5.0 255.255.255.0 ct-users any
    static translation to 192.168.5.0
    translate_hits = 1, untranslate_hits = 15
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xadf7a778, priority=5, domain=nat, deny=false
    hits=6, user_data=0xad80cfd0, cs_id=0x0, flags=0x0, protocol=0
    src ip=192.168.5.0, mask=255.255.255.0, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 8
    Type: NAT
    Subtype: host-limits
    Result: ALLOW
    Config:
    static (inside,outside) udp 184.73.2.1 1514 192.168.5.2 1514 netmask 255.255.255.255
    match udp inside host 192.168.5.2 eq 1514 outside any
    static translation to 184.73.2.1/1514
    translate_hits = 0, untranslate_hits = 0
    Additional Information:
    Forward Flow based lookup yields rule:
    in id=0xab8e2928, priority=5, domain=host, deny=false
    hits=9276881, user_data=0xab8e1d20, cs_id=0x0, reverse, flags=0x0, protocol=0
    src ip=192.168.5.2, mask=255.255.255.255, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 9
    Type: NAT
    Subtype: rpf-check
    Result: ALLOW
    Config:
    static (ct-users,inside) 10.12.0.0 10.12.0.0 netmask 255.255.0.0
    match ip ct-users 10.12.0.0 255.255.0.0 inside any
    static translation to 10.12.0.0
    translate_hits = 0, untranslate_hits = 6
    Additional Information:
    Forward Flow based lookup yields rule:
    out id=0xad158dc0, priority=5, domain=nat-reverse, deny=false
    hits=6, user_data=0xac0fb6b8, cs_id=0x0, flags=0x0, protocol=0
    src ip=0.0.0.0, mask=0.0.0.0, port=0
    dst ip=10.12.0.0, mask=255.255.0.0, port=0, dscp=0x0
    Phase: 10
    Type: NAT
    Subtype: host-limits
    Result: ALLOW
    Config:
    static (ct-users,inside) 10.12.0.0 10.12.0.0 netmask 255.255.0.0
    match ip ct-users 10.12.0.0 255.255.0.0 inside any
    static translation to 10.12.0.0
    translate_hits = 0, untranslate_hits = 6
    Additional Information:
    Reverse Flow based lookup yields rule:
    in id=0xada0cd38, priority=5, domain=host, deny=false
    hits=131, user_data=0xac0fb6b8, cs_id=0x0, reverse, flags=0x0, protocol=0
    src ip=10.12.0.0, mask=255.255.0.0, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 11
    Type: IP-OPTIONS
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    Reverse Flow based lookup yields rule:
    in id=0xad5c1ab0, priority=0, domain=inspect-ip-options, deny=true
    hits=130, user_data=0x0, cs_id=0x0, reverse, flags=0x0, protocol=0
    src ip=0.0.0.0, mask=0.0.0.0, port=0
    dst ip=0.0.0.0, mask=0.0.0.0, port=0, dscp=0x0
    Phase: 12
    Type: FLOW-CREATION
    Subtype:
    Result: ALLOW
    Config:
    Additional Information:
    New flow created with id 189385494, packet dispatched to next module
    Module information for forward flow ...
    snp_fp_tracer_drop
    snp_fp_inspect_ip_options
    snp_fp_tcp_normalizer
    snp_fp_translate
    snp_fp_adjacency
    snp_fp_fragment
    snp_ifc_stat
    Module information for reverse flow ...
    snp_fp_tracer_drop
    snp_fp_inspect_ip_options
    snp_fp_translate
    snp_fp_tcp_normalizer
    snp_fp_adjacency
    snp_fp_fragment
    snp_ifc_stat
    Result:
    input-interface: inside
    input-status: up
    input-line-status: up
    output-interface: ct-users
    output-status: up
    output-line-status: up
    Action: allow

    how are you testing? if you are pinging between the subnets, make sure you have disabled windows firewall and/or any other firewall that is installed on the PCs (remember to re-enable it later).
    Are the NAT commands there because you were trying different things to get this working?  I suggest you use the command no nat-control instead.  Depending on the version of ASA you are running it may already be disabled by default.  In version 8.4 and later nat-control has been removed completely.
    Please remember to select a correct answer and rate helpful posts

  • Cisco ASA 5520 traffic between interfaces

    Hello,
    I am new in the Cisco world , learning how everything goes. I have a Cisco ASA 5520 firewall that i am trying to configure, but i am stumped. Traffic does not pass trough interfaces ( i tried ping ) , although packet tracer shows everything as ok. I have attached the running config and the packet tracer. The ip's i am using in the tracer are actual hosts.
    ciscoasa# ping esx_management 192.168.10.100
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.10.100, timeout is 2 seconds:
    Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
    ciscoasa# ping home_network 192.168.10.100
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 192.168.10.100, timeout is 2 seconds:
    Success rate is 0 percent (0/5)
    Thank you in advance.

    Hi,
    Is this just a testing setup? I would suggest changing "internet" interface to "security-level 0" (just for the sake of identifying its an external interface) and not allowing all traffic from there.
    I am not sure what your "packet-tracer" is testing. If you wanted to test ICMP Echo it would be
    packet-tracer input home_network icmp 10.192.5.5 8 0 255 192.168.10.100
    I see that you have not configured any NAT on the ASA unit. In the newer ASA software that would atleast allow communication between all interface with their real IP addresses.
    I am not so sure about the older ASA versions anymore. To my understanding the "no nat-control" is default setting in your model which basically states that there is no need for NAT configurations between the interfaces the packet is going through.
    Have you confirmed that all the hosts/servers have the correct default gateway/network mask configurations so that traffic will flow correctly outside their own network?
    Have you confirmed that there are no firewall software on the actual server/host that might be blocking this ICMP traffic from other networks?
    Naturally if wanted to try some NAT configurations you could try either of these for example just for the sake of testing
    Static Identity NAT
    static (home_network,esx_management) 192.168.5.0 192.168.5.0 mask 255.255.255.0
    static (home_network,DMZ) 192.168.5.0 192.168.5.0 mask 255.255.255.0
    static (home_network,management) 192.168.5.0 192.168.5.0 mask 255.255.255.0
    OR
    NAT0
    access-list HOMENETWORK-NAT0 remark NAT0 to all local networks
    access-list HOMENETWORK-NAT0 permit ip 192.168.5.0 255.255.255.255.0 192.168.10.0 255.255.255.0
    access-list HOMENETWORK-NAT0 permit ip 192.168.5.0 255.255.255.255.0 192.168.20.0 255.255.255.0
    access-list HOMENETWORK-NAT0 permit ip 192.168.5.0 255.255.255.255.0 192.168.1.0 255.255.255.0
    nat (home_network) 0 access-list HOMENETWORK-NAT0
    Hope this helps
    - Jouni

  • How to use a variable between interfaces or class?

    Hello All;
    Far by now I can say that the forum is very helpful for me. Thanks for all the people who have the time and generosity to help our problems. Thank you.
    Unfortunately I have a problem <Again :( >
    I want to use a variable in two different *.java files.
    Is it possible?
    The Variable i want to use is; int CiftSayisi
    The variable is declared in the CamCalib.Java under a button's Action Listener.
    Here is the code;
    public void actionPerformed(ActionEvent arg0) {
                        ImagePair.main(null);
                        String[] ImPath = list.getItems();                                           //Storing Items in an Array
                        Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();                     //Dimensions of the Screen Storing in an object
                        int ScreenHeight = dim.height;                                           //Definition ScreenHeight
                        int ScreenWidth = dim.width;                                          //Definition ScreenWidth
                        // System.out.println(ScreenHeight);                                                    //Testing of the Dimensions
                        // System.out.println(ScreenWidth);                                                     //Testing of the Dimensions
                        int CiftSayisi = ImPath.length -1 ;
                        if (CiftSayisi == 0){
                             System.out.println("Added Images do not Construct a Pair");
                        else {
    }Now i want to use it in another java file which is ImagePair.Java in the loading part of the interface;
                 setType(Type.UTILITY);
              setTitle("Image Pair Selection");
              setResizable(false);
              setAlwaysOnTop(true);
              setBounds(100, 100, 450, 68);
              contentPane = new JPanel();
              contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
              setContentPane(contentPane);
              contentPane.setLayout(null);
              textField = new JTextField();
              textField.setBounds(61, 11, 22, 20);
              textField.setEditable(false);
              textField.setEnabled(false);
              contentPane.add(textField);
              textField.setColumns(2);I have a text field in here that i need to fill with the value of CiftSayisi
    Any help please?
    ömer kaya
    METU-GGIT
    Edited by: Ömer K. on Apr 10, 2012 12:43 AM

    I didn't bother reading the code, since you didn't format it.
    But to answer your question (if I understand it correctly), yes, it is possible to pass variables between different object instances (not from an interface specifically, since interfaces don't have members). The simplest way to pass the variable as an argument to a method or constructor. If these aren't available, you could create a static global variable, though in a multithreaded app you'd have to synchronize access.

  • Cast between types

    Hi
    I am new to pixel bender. I am a CG artist with a very little developper background...
    I understand pixel bender language is strongly typed. OK fine....
    But i would like to understand the difference between
    (for instance)
    dst.a  = float(0.0);
    and
    dst.a = pixel1(0.0);
    Am i free to write both syntaxes. Indeed both run without exceptions in my very simple sample script.
    Regarding memory usage or efficiency, what is the true difference between theses two types
    furthermore
    i understand pixel4 is a kind of convention for output. Like image4 for input. Ok Fine.
    But pixel4(0.0) == float4(0.0); returns true
    so, i would like to understand the true meanings of theses types to build effectives pixel bender fragments
    I am sorry but english is not my native bytecode
    hope you understand what i mean
    thanks for clues
    MLK
    ++

    Thanks Royi A
    So i will use pixel values when it makes sense for anyone who read my code.
    And i will use float values for arithmetics purposes.
    Thanks for your reply. really ^^ I was not sure....
    To describe the background, i am trying a PB to remap texture on CG render. It requires 2 inputs, the uv channel and the texture. The uv channel is a special map rendered with cg soft (maya, max, xsi, etc.) where uv space is mapped in the 32 bits u(0.0 , 1.0) v(0.0 , 1.0) space
    where red channel stands for u
    green channel stands for v
    bleu channel stands for pixel coverage between geometry
    alpha stands for cropping and acceleration structure.
    To tell things speedy (frenchy syntax) : i query the uv map to retrieve the alpha, blue, red and green channels, then i sample the second input (the texture to remap) to write output accordingly. In fact i come from uv space to screen space mapping.
    Because the result is very aliased, i use (actually) a graph to propagate output to a fragment for B-spline super sampling.
    That is, the super sampling is done after transformations. It is a screen space super sampling. it is not ideal :/  but i don't know how to deal with super sampling before transformations with keeping "full pixel datas" ... :/  I don't know how to keep track of image4 pixels... because of paralellism of evaluatepixel()
    I publish parameters to select nodeRenderID, offset and tile texture onto the geometry. Actually the filter needs to be applied several time to remap serveral geometry on a single picture (based on renderID)
    In fact this filter is similar to autodesk combustion 3D-texmap operator with screen space mitchell-netravali sampling. If you see what i mean... ^^
    I don't do it for fun, i do it because my customer needs to remap his customer's picture on CG product-render in real time with flash. I hope my PB will export to pbj regarding limitations ; graph not allowed :$  I will deal with it later. One thing at a time.
    I will try 2 filters in pipeline.... well really i don't know if PB is my solution. lot of work to be done !! ^^ But i try it !! Hope it helps. I can't do it in ActionScript without heavy payload on customer's cpu. That's why i try PB
    If i can achieve the result I will distribute it for free on adobe exchange when it's done : A texmap filter with screen space anti aliasing for flash and toshop as least
    again, excuse me for my frenchy bytecode
    MLK

Maybe you are looking for

  • How do I make my Mac not use the external mic on my Apple Earphones but output audio through the earphones?

    I want to use the microphone built in to the MacBook Pro while still outputting audio through the Apple Earphones. This is because the microphone on my earphones has stopped working. If anyone knows how to do this, please tell me

  • N8 Music Player Resume?

    I'm thinking of replacing my iPhone 3GS with the N8 but hesitate as I haven't found any information on whether or not the media player in the N8 supports resume on large media files (audiobooks, podcasts and videos). Is the N8 capable of resuming pla

  • Consumers parallel processing

    hi, I have a question regarding consumers. Suppose a particular topic has multiple consumers. When a message arrives, do these consumers start processing the message in parallel or one after another.

  • Sych BPM scenario (RFC to SOAP)

    Hello I am using the RFC2SOAP scenario using the process shown below to get alerts. Receive  - Open S/A bridge ( Sync receive) Transform - Request_Asyn ( Mapping from RFC request to SOAP request) Sync Send - Call SOAP Transform - Response Asyn ( Mapp

  • Rebuilding Catalogue in PSE 12

    Every time I start up the Catalogue it takes ages re-building its content, and always ends up with "missing files". Why is this, and can it be put right?