Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-524

Wrong context menu with inheritance, default access and static

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.1.1
    • Fix Version/s: 4.1.3
    • Component/s: ClassMgr

      Description

      If you have two classes in different packages (Class1 and Class2).
      Class1 inherits from Class2.
      Class2 defines a static method with default access, e.g. static void staticMethodWithDefaultAccess()
      Now you see this method in Class1 context menu, which is wrong, because method must be visible in classes of the same package only.
      Executing the method from the context menu of Class1 does not show up anything. There is also no log entry in BlueJ-Log.
      See attached sample project.

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              external External via trac
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: