Why it is not overriding

Hi,
I m puzzled by the output of :
public class MyClass2 {
private void f() {
System.out.println("private f()");
public static void main(String[] args) {
MyClass2 po = new Derived();
po.f();
class Derived extends MyClass2 {
public void f() {
System.out.println("public f()");
output: private f(); why it is happening...... when it is said that at runtime base class's ref chk the object that it is holding & executes its method ...ie; runtime polymorphism ...but in above case ...can any body tell why it is not happening.......?
Thanks in advance.....

Read the OPs question again: The method of the base class is private and the method of the subclass is public, not the other way around!
When you override the method, the signature must remain the same. You can change the access modifier but only to a less restricted one. That's what the OP did!
So you can't make a public method private. Correct!
But you could make a protected one private.Wrong! You could make a protected one public.
@OP: private members are only visible in the class it defines - not in subclasses. So the subclass would not know that there is a method with the same signature and that it overrides this method!
So what happens? If you redeclare a method in a subclass a method, which was private in the superclass, it hides the method of the superclass. Polymorphism does not apply when calling private methods!
public static void main(String[] args) {
  MyClass2 po1 = new MyClass2();
  po1.f(); //-> calls private method of MyClass2; can only be called from within MyClass2; no polymorphism!
  MyClass2 po2 = new Derived();
  po2.f(); //-> calls private method of MyClass2 because po2 is declared as MyClass2; can only be called from within MyClass2; no polymorphism!
  Derived po3 = new Derived();
  po.f(); //-> calls public method of Derived, which *hides* the method of MyClass2
  MyClass2 po4 = new Derived();
  ((Derived) po).f(); // -> po4 is declared as MyClass2 but we explicitly cast it to Derived, so the method of Derived gets called.
}Look up hiding for more information!
-Puce

Similar Messages

  • Why StringBuffer does not override equals()

    Is there any reason for StringBuffer to don't override equals()
    Wargo

    Not that I can think of. I'd expect two StringBuffer instances to be considered equivalent (equal) if they both would hand me equivalent results from their toString() methods. Instead, I guess someone at Sun decided that identity was preferable to equivalence for this class's equals() method.

  • ...is not abstract and does not override abstract method compare

    Why am I getting the above compile error when I am very clearly overriding abstract method compare (ditto abstract method compareTo)? Here is my code -- which was presented 1.5 code and I'm trying to retrofit to 1.4 -- followed by the complete compile time error. Thanks in advance for your help (even though I'm sure this is an easy question for you experts):
    import java.util.*;
       This program sorts a set of item by comparing
       their descriptions.
    public class TreeSetTest
       public static void main(String[] args)
          SortedSet parts = new TreeSet();
          parts.add(new Item("Toaster", 1234));
          parts.add(new Item("Widget", 4562));
          parts.add(new Item("Modem", 9912));
          System.out.println(parts);
          SortedSet sortByDescription = new TreeSet(new
             Comparator()
                public int compare(Item a, Item b)   // LINE CAUSING THE ERROR
                   String descrA = a.getDescription();
                   String descrB = b.getDescription();
                   return descrA.compareTo(descrB);
          sortByDescription.addAll(parts);
          System.out.println(sortByDescription);
       An item with a description and a part number.
    class Item implements Comparable     
          Constructs an item.
          @param aDescription the item's description
          @param aPartNumber the item's part number
       public Item(String aDescription, int aPartNumber)
          description = aDescription;
          partNumber = aPartNumber;
          Gets the description of this item.
          @return the description
       public String getDescription()
          return description;
       public String toString()
          return "[descripion=" + description
             + ", partNumber=" + partNumber + "]";
       public boolean equals(Object otherObject)
          if (this == otherObject) return true;
          if (otherObject == null) return false;
          if (getClass() != otherObject.getClass()) return false;
          Item other = (Item) otherObject;
          return description.equals(other.description)
             && partNumber == other.partNumber;
       public int hashCode()
          return 13 * description.hashCode() + 17 * partNumber;
       public int compareTo(Item other)   // OTHER LINE CAUSING THE ERROR
          return partNumber - other.partNumber;
       private String description;
       private int partNumber;
    }Compiler error:
    TreeSetTest.java:25: <anonymous TreeSetTest$1> is not abstract and does not over
    ride abstract method compare(java.lang.Object,java.lang.Object) in java.util.Com
    parator
                public int compare(Item a, Item b)
                           ^
    TreeSetTest.java:41: Item is not abstract and does not override abstract method
    compareTo(java.lang.Object) in java.lang.Comparable
    class Item implements Comparable
    ^
    2 errors

    According to the book I'm reading, if you merely take
    out the generic from the code, it should compile and
    run in v1.4 (assuming, of course, that the class
    exists in 1.4). I don't know what book you are reading but that's certainly incorrect or incomplete at least. I've manually retrofitted code to 1.4, and you'll be inserting casts as well as replacing type references with Object (or the erased type, to be more precise).
    These interfaces do exist in 1.4, and
    without the generics.Exactly. Which means compareTo takes an Object, and you should change your overriding method accordingly.
    But this raises a new question: how does my 1.4
    compiler know anything about generics? It doesn't and it can't. As the compiler is telling you, those interfaces expect Object. Think about it, you want to implement one interface which declares a method argument type of Object, in several classes, each with a different type. Obviously all of those are not valid overrides.

  • Weblogic deployment plan will not override variables (Weblogic 10.3.5).

    I am having some trouble trying to adjust the deployment settings of our application in weblogic. I feel what I'm trying to do ought to be quite simple, but it's not working as expected.
    I am just trying to override the context-root in weblogic.xml and the JNDI name for the data source, so these can both be configured at deployment time.
    I have removed the application.xml from the ear file, so that shouldn't be affecting the overrides.
    What I have so far:
    weblogic.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.2/weblogic-web-app.xsd">
    <context-root>mosaic</context-root>
    <resource-description>
    <res-ref-name>jdbc/LogicalDS</res-ref-name>
    <jndi-name>LogicalDS</jndi-name>
    </resource-description>
    web.xml
    <?xml version='1.0' encoding='UTF-8'?>
    <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <resource-ref>
    <description>A logical reference to the datasource - mapped in deployment plan</description>
    <res-ref-name>jdbc/LogicalDS</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    plan.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <wls:deployment-plan xmlns:wls="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/j2ee_1_4.xsd" global-variables="true">
    <!--weblogic-version:10.3.5-->
    <wls:application-name>mosaic.ear</wls:application-name>
    <wls:variable-definition>
    <wls:variable>
    <wls:name>datasource_name</wls:name>
    <wls:value xsi:nil="true"></wls:value>
    <wls:description>The name of the datasource to map to the mosaic application</wls:description>
    </wls:variable>
    <wls:variable>
    <wls:name>new_context_root</wls:name>
    <wls:value xsi:nil="true"></wls:value>
    <wls:description>URL to deploy Mosaic at</wls:description>
    </wls:variable>
    </wls:variable-definition>
    <wls:module-override>
    <wls:module-name>mosaic.war</wls:module-name>
    <wls:module-type>war</wls:module-type>
    <wls:module-descriptor>
    <wls:root-element>weblogic-web-app</wls:root-element>
    <wls:uri>WEB-INF/weblogic.xml</wls:uri>
    <wls:variable-assignment>
    <wls:name>new_context_root</wls:name>
    <wls:xpath>/weblogic-web-app/context-root</wls:xpath>
    <wls:operation>replace</wls:operation>
    </wls:variable-assignment>
    <wls:variable-assignment>
    <wls:description>Data source for mosaic application</wls:description>
    <wls:name>datasource_name</wls:name>
    <wls:xpath>/weblogic-web-app/resource-env-description/resource-env-ref-name</wls:xpath>
    <wls:operation>replace</wls:operation>
    </wls:variable-assignment>
    <wls:variable-assignment>
    <wls:name>datasource_name</wls:name>
    <wls:xpath>/weblogic-web-app/resource-description/[res-ref-name="jdbc/LogicalDS"]/jndi-name</wls:xpath>
    <wls:operation>replace</wls:operation>
    </wls:variable-assignment>
    </wls:module-descriptor>
    </wls:module-override>
    </wls:deployment-plan>
    Nothing happens when I use the deployment plan, and neither of the variables appear under the Deployment Plan configuration screens in the admin console. From what I understand, I should at least be asked for these variables, since I have specified that they are null in the deployment plan.
    When I use WLST to browse the tree, I find that the runtime configuration just stays as the values in the deployment descriptors.
    I have verified the deployment plan is being used in the general tab of the admin console.
    Can anyone help me find out what I am doing wrong here? If I don't create a data source called LogicalDS, I get errors about this, suggesting it is not correctly overriding. I am puzzled to why I do not see any variables to specify though..

    The documentation implies that this is not the case - see:
    http://docs.oracle.com/cd/E24329_01/web.1211/e24443/export.htm#autoId13
    'Assigning Null Variables to Require Administrator Input'.
    However, require administrator input where? My thoughts were that this option would appear in the admin console under 'deployment plan'. However, although I have specified resource dependencies in the deployment descriptors, and the plan, nothing appears under 'resource dependencies' for the application.
    Is the only way to change the context-root deployment URL by actually manually editing an XML file?
    To me that seems primitive and will cause us support issues when distributing our application - is there any other way I can enable the ability to specify the data source name and context-root through the web console prior to/during deployment?
    Edited by: user12032953 on 11-Jun-2012 07:20

  • Make paragraph style not override character style?

    Hi.
    Is there any way to make a paragraph style NOT override a character style?
    For example, I write a lot of scientific reports in Pages and then I use subscript and superscript often and so I have made a character style for that. But if I want to perhaps change the spacing between paragraphs in my body style. I select a paragraph, change the settings that I want and then I right click on the paragraph style and choose "redefine style from selection". Then I select all of that style and choose "revert to defined style" to get the updated paragraph spacing. But what this does is that it overrides all of the character styles so that everything in sub/superscript, bold, italic etc get back to the style. This is really bugging me out.
    For the character styles you can select what attributes you want them to affect, is there any way to do this with paragraph styles as well? Or maybe some of you have got a good way to make it work.
    Thanks in advance.

    When you redefine the paragraph style, all paragraphs using that style will display the new style properties, unless you've overriden them. Presumably this is why you choose "revert to defined style", so that other paragraphs that you've stylistically modified take on the proper paragraph style properties. If not, why revert at all?
    Instead of using revert, why not re-apply the paragraph style (just click on the selected style in the drawer, or pick the selected item from the pop-up menu). It will discard your unwanted paragraph style overrides, and preserve the character styles.

  • Why is authorization not recognized?

    Why is authorization not recognized when I enter my password if it works when I log into my user account? I see the book in my hard drive downloaded from the New York Public Library.
    Why haven't I received a notification in my email when I click "forgot my password" ?(Its just a test because I really do know the password)

    You seem to have the general.useragent.override pref set to an empty string.<br />
    You can reset that pref to the default via the right-click context menu to remove that override.

  • Why does Lightroom not see my teathered camera in Windows 8?

    When I teather my Nikon D300 in Lightroom 4, It seem as the Windows 8 operating systems takes over the function and Lightroom does not automatically open captured image.  Instead, Windows' picture window appears.  I have not been able to figure out how to override the windows function so that Lightroom opens the captured image.  Need Help!!!

    Where is that in the menu...couldn't locate it?
    Sent via the Samsung Galaxy S™III, an AT&T 4G LTE smartphonessprengel <[email protected]> wrote:Re: Why does Lightroom not see my teathered camera in Windows 8?
    created by ssprengel in Photoshop Lightroom - View the full discussion
    Also make sure you have your camera set to Point-to-Point not Mass-Storage mode:
    Menu/Wrench/USB/'M/P'
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5226836#5226836
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5226836#5226836
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5226836#5226836. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Photoshop Lightroom by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Complaint: Why can I not download a Windows 8.1 ISO on Mac?

    Hello,
    I have been sent here by you customer service team to make a complaint.
    I have recently purchased Windows 8.1 pro student as a download. I need this for university and was planning on boot camping my mac to do this. I am told the only way to download this product is with a windows machine. I have tried at work but need administrator
    privileges also.  
    This is simply a ridiculous system that you need the operating system that you are downloading to make the download occur. You should be able to download an iso file or the like. I have ordered a backup media (obviously at my expense).
    The customer service people I spoke to were very unhelpful. Also this process of complaints is poor. Why can i not talk to someone re a complaint? 
    Regards
    James

    Hello James,
    Please take a look at the following thread similar to this issue.
    Where can I download a Windows 8.1 iso for Bootcamp?
    https://discussions.apple.com/thread/6133650
    Please note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why I can not find field:Level in Project Hierarchy in BAPI_BUS2054_NEW?

    Dear experts,
        Why I can not find the field of "Level in Project Hierarchy" in structure BAPI_BUS2054_NEW?
    I only define the data to upload wbs:
    PROJECT DEFINITION
    PROJECT DESCRIPTION
    PROJECT PROFILE
    WBS Element
    WBS description
    Can you tell me which fields must to upload?
    Looking forward to your reply.
    Many thanks.
    Merryzhang

    Anyone can help me ?I need the field "Level" in BAPI_BUS2054_NEW,But I can not find it.

  • In Icloud I can't see my "numbers" icon which i need to select "tick" to transfer data to my other devices via icloud. any ideas why it's not showing up?

    In Icloud on my imac I can't see my "numbers" icon which i need to select "tick" to transfer data to my other devices via icloud. any ideas why it's not showing up?

    You have to do it app wise, which means that the icon won't show up in settings, but you will be able to move files from your local drive to iCloud via the Numbers app (move... > choose the iCloud option).
    It requires that you set up the same iCloud account on all your devices and that you have the latest version of Numbers on all your devices as well.

  • Why i can not see the columns of "Tax Category" in transaction code FS00

    Dear Experts,
          Why i can not see the columns of "Tax Category" and "Posting without tax allowed" in tab of "Control Data"  transaction code FS00?
           How can i add the columns of "Tax Category" and "Posting without tax allowed"?
    Looking forward to your reply.
    Best Regards,
    Merry

    Hi,
    Go to transaction OBD4, and check whether the field "Tax category" is suppressed in group "Account control" for your GL account group.
    If not, then go to OB26 and check the field status for the same field for create, change activity.
    Regards,
    Gaurav

  • Why am i not able to install creative cloud?

    Why am i not able to install creative cloud? i paid for the package,  downloaded the installer now its been trying to connect to the server since a day..

    You can check these :
    Creative Cloud Connection Update
    Sign in, activation, or connection errors | CS5.5 and later
    CreativeCloud Manager can't connect to Internet
    Regards
    Rajshree

  • Why can I not sign in? You already charged my card!

    Why can I not sign in? You already charged my card!

    Imessage and Facebook is down - Apple servers went down,  Wait a bit they are coming back on line....

  • Need to Convert PDF to doc in Russian, why programm do not recognice it?

    Need to Convert PDF to doc in Russian, why programm do not recognice it?

    Hi alsu22,
    The OCR system that converts documents does not recognize any cyrillic languages, such as Russian.  If the text is already renderable (selectable), you may want to try converting your document without the OCR function enabled. You can find steps here: http://forums.adobe.com/docs/DOC-3062
    -David

  • Is not abstract and does not override abstract method actionPerformed

    I dont how to corr. Please help!! and thank you very much!!
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class test extends JFrame implements ActionListener, ItemListener
              private CenterPanel centerPanel;
              private QuestionPanel questionPanel;
              private ButtonPanel buttonPanel;
              private ResponsePanel responsePanel;
              private JButton b1,b2,b3,b4,b5;               //Create five references to Jbutton instances
         private JTextField t1,t2,t3,t4,t5;          //Create five references to JTextField instances
              private JLabel label1;                    //Create one references to JLabel instances
              private JRadioButton q1,q2,q3;               //Create three references to JRadioButton instances
              private ButtonGroup radioGroup;               //Create one references to Button Group instances
              private int que1[] = new int[5];           //Create int[4] Array
              private int que2[] = new int[5];
              private int que3[] = new int[5];
              private String temp1, temp2, temp3, temp4, temp5, temp6, temp7, temp8, temp9, temp10,
                        temp11, temp12, temp13, temp14, temp15;
    public test (String header)
              super(header);
              Container container = getContentPane();
              label1 = new JLabel ("PLease click on your response to ");     
              q1 = new JRadioButton("I understand most of the content of this subject",true);
              add(q1);
              q2 = new JRadioButton("I see the relevance of the subject to my degree",false);
              add(q2);
              q3 = new JRadioButton("The workload in this subject is appropriate",false);
              add(q3);
              radioGroup = new ButtonGroup();               //JRadioButton belong to ButtonGroup
              radioGroup.add(q1);
              radioGroup.add(q2);
              radioGroup.add(q3);
              JPanel buttonPanel = new JPanel();
              JPanel responsePanel = new JPanel();
              JPanel questionPanel = new JPanel();
              JPanel centerPanel = new JPanel();
              b1 = new JButton ("Strongly DISAGREE");          //Instantiate JButton with text
              b1.addActionListener (this);               //Register JButtons to receive events
              b2 = new JButton ("DISAGREE");
              b2.addActionListener (this);
              b3 = new JButton ("Neither AGREE or DISAGREE");
              b3.addActionListener (this);
              b4 = new JButton ("AGREE");
              b4.addActionListener (this);
              b5 = new JButton ("Strongly AGREE");
              b5.addActionListener (this);
              buttonPanel.setLayout(new GridLayout(5,1));
              buttonPanel.add(b1);
              buttonPanel.add(b2);
              buttonPanel.add(b3);
              buttonPanel.add(b4);
              buttonPanel.add(b5);
              t1 = new JTextField ("0",3);               //JTextField contains empty string
              t2 = new JTextField ("0",3);
              t3 = new JTextField ("0",3);
              t4 = new JTextField ("0",3);
              t5 = new JTextField ("0",3);
              t1.setEditable( false );
              t2.setEditable( false );
              t3.setEditable( false );
              t4.setEditable( false );
              t5.setEditable( false );
              responsePanel.setLayout(new GridLayout(5,1));
              responsePanel.add(t1);
              responsePanel.add(t2);
              responsePanel.add(t3);
              responsePanel.add(t4);
              responsePanel.add(t5);
              questionPanel.setLayout(new GridLayout(4,1));
              questionPanel.add(label1);
              questionPanel.add(q1);
              questionPanel.add(q2);
              questionPanel.add(q3);
              centerPanel.add(buttonPanel,BorderLayout.CENTER);
              centerPanel.add(responsePanel,BorderLayout.EAST);
              container.add(centerPanel,BorderLayout.WEST);
              container.add(questionPanel,BorderLayout.NORTH);
              q1.addActionListener(
                   new ActionListener(){
              public void actionPerformed( ActionEvent e )          
    {                                        //actionPerformed of all registered listeners
              if (e.getSource() == b1) {
                   que1[0] = Integer.parseInt(t1.getText()) + 1;
                   String temp1 = String.valueOf(que1[0]);
              t1.setText(temp1);
              else if (e.getSource() == b2)     {
                   que1[1] = Integer.parseInt(t2.getText()) + 1;
                   String temp2 = String.valueOf(que1[1]);
              t2.setText(temp2);
              else if (e.getSource() == b3)     {
                   que1[2] = Integer.parseInt(t3.getText()) + 1;
                   String temp3 = String.valueOf(que1[2]);
              t3.setText(temp3);
              else if (e.getSource() == b4)     {
                   que1[3] = Integer.parseInt(t4.getText()) + 1;
                   String temp4 = String.valueOf(que1[3]);
              t4.setText(temp4);
              else if (e.getSource() == b5)     {
                   que1[4] = Integer.parseInt(t5.getText()) + 1;
                   String temp5 = String.valueOf(que1[4]);
              t5.setText(temp5);
    } //end action performed
              q2.addActionListener(
                   new ActionListener(){
              public void actionPerformed( ActionEvent e )          
    {                                        //actionPerformed of all registered listeners
              if (e.getSource() == b1) {
                   que2[0] = Integer.parseInt(t1.getText()) + 1;
                   String temp6 = String.valueOf(que2[0]);
              t1.setText(temp1);
              else if (e.getSource() == b2)     {
                   que2[1] = Integer.parseInt(t2.getText()) + 1;
                   String temp7 = String.valueOf(que2[1]);
              t2.setText(temp7);
              else if (e.getSource() == b3)     {
                   que2[2] = Integer.parseInt(t3.getText()) + 1;
                   String temp8 = String.valueOf(que2[2]);
              t3.setText(temp8);
              else if (e.getSource() == b4)     {
                   que2[3] = Integer.parseInt(t4.getText()) + 1;
                   String temp9 = String.valueOf(que2[3]);
              t4.setText(temp9);
              else if (e.getSource() == b5)     {
                   que2[4] = Integer.parseInt(t5.getText()) + 1;
                   String temp10 = String.valueOf(que2[4]);
              t5.setText(temp10);
    } //end action performed
              q3.addActionListener(
                   new ActionListener(){
              public void actionPerformed( ActionEvent e )          
    {                                        //actionPerformed of all registered listeners
              if (e.getSource() == b1) {
                   que3[0] = Integer.parseInt(t1.getText()) + 1;
                   String temp11 = String.valueOf(que3[0]);
              t1.setText(temp11);
              else if (e.getSource() == b2)     {
                   que3[1] = Integer.parseInt(t2.getText()) + 1;
                   String temp12 = String.valueOf(que3[1]);
              t2.setText(temp12);
              else if (e.getSource() == b3)     {
                   que3[2] = Integer.parseInt(t3.getText()) + 1;
                   String temp13 = String.valueOf(que3[2]);
              t3.setText(temp13);
              else if (e.getSource() == b4)     {
                   que3[3] = Integer.parseInt(t4.getText()) + 1;
                   String temp14 = String.valueOf(que3[3]);
              t4.setText(temp14);
              else if (e.getSource() == b5)     {
                   que3[4] = Integer.parseInt(t5.getText()) + 1;
                   String temp15 = String.valueOf(que3[4]);
              t5.setText(temp15);
    } //end action performed
    }//end constructor test
    public void itemStateChanged(ItemEvent item) {
    //int state = item.getStateChange();
    //if (q1 == item.SELECTED)
              public class ButtonPanel extends JPanel
                   public ButtonPanel()
              public class CenterPanel extends JPanel
                   public CenterPanel()
              public class QuestionPanel extends JPanel
                   public QuestionPanel()
              public class ResponsePanel extends JPanel
                   public ResponsePanel()
    public static void main(String [] args)
         test surveyFrame = new test("Student Survey") ;
         surveyFrame.setSize( 500,300 );
         surveyFrame.setVisible(true);
         surveyFrame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
         }//end main
    }//end class test

    is not abstract and does not override abstract method actionPerformed
    Oh, I see that the title of your post is an error message? Ok. Well, the test class is declared as implementing an ActionListener. That means the test class must have an actionPerformed() method. Your test class apparently does not.
    It does not appear that the test class needs to implement ActionListener. You are using annonymous classes as listeners.

Maybe you are looking for

  • Develop a report to migrate territories and its attributes

    Hi All, My requirement -> create territories, assign BP and attributes to it through a custom report. Using BAPI BAPI_TERRITORY_CREATE I manage to create territories but assign BP and Attributes i did not find any FM and BAPI. kindly guide me how i c

  • How to use certain entries from a txt file as metadata?

    So during my plugin development I stumbled on a problem. I have created a txt file for each picture telling me who's in the photos. So the first column in the file shows all the names that appear in the photo. I want to add those names into LR for ea

  • Block attacker only if target is specific host only

    I want to do the following: Only if the target of the attack is MailSrv and the RR > 85 --->block attacker If target is any other host --> don't block =========== My problem is that I cannot specify the dst IP in the event action override. So my only

  • Fresh Windows 10 install on a windows 7 system

    First, my system specifications: CPU: i7-920 Memory: 6GB Ram Storage: 320GB drive, 750GB Drive, 2TB drive, 120GB SSD drive, 250GB SSD Drive Video: Nvidia 670 GTX I've been running windows 7 since 2008 or 2009 when i built this PC.  I've installed win

  • Physical inventory types

    what are the physical inventory types? please explain about inventory sampling with example