Skip to content

Nested class cannot access nested interface #74

Open

Description

@unv-unv

Nested class cannot access nested interface:
java_inner_class_cannot_access_inner_interface

Example:

public class Test
{
    interface Foo
    {
        int baz();
    }

    public static class Bar implements Foo
    {

    }
}

Activity

  1. unv-unv commented on Jun 29, 2017

    @unv-unv
    ContributorAuthor

    Fixed after last update. False alarm.

  2. unv-unv commented on Jun 29, 2017

    @unv-unv
    ContributorAuthor

    I was wrong - still the same error in Java 1593.

  3. VISTALL commented on Jun 29, 2017

    @VISTALL
    Member

    ;D

    I will test it, tomorrow

  4. unv-unv commented on Jun 29, 2017

    @unv-unv
    ContributorAuthor

    OK, I've prepared some more stuff for you for tomorrow :)

  5. self-assigned this
    on Jul 6, 2017
  6. VISTALL commented on Jul 6, 2017

    @VISTALL
    Member

    obsolete

  7. unv-unv commented on Jul 6, 2017

    @unv-unv
    ContributorAuthor

    Then why Java 1626 still shows "Cannot access Test.Foo" in the following class?

    public class Test
    {
        public interface Foo
        {
            int baz();
        }
    
        public static class Bar implements Foo
        {
            public int baz() { return 1; }
        }
    }
    
  8. reopened this on Jul 6, 2017
  9. VISTALL commented on Jul 6, 2017

    @VISTALL
    Member

    It's another bug. Reproduced

  10. VISTALL commented on Jul 15, 2017

    @VISTALL
    Member

    Can you try last build? Now i can't reproduce it

  11. unv-unv commented on Jul 15, 2017

    @unv-unv
    ContributorAuthor

    Updated to last build. Confirm: it's fixed.

    Looks like a miracle: hundreds of annoying errors dissapeared at once. Thanks!

  12. VISTALL commented on Jul 15, 2017

    @VISTALL
    Member

    Nope. I removed some strange things. As you saw - it's exists in IDEA. Idk why it not fixed.

  13. unv-unv commented on Dec 27, 2017

    @unv-unv
    ContributorAuthor

    Reproduced in #1925. The same "Cannot access Test.Foo" for the same code example:

    public class Test
    {
        public interface Foo
        {
            int baz();
        }
    
        public static class Bar implements Foo
        {
            public int baz() { return 1; }
        }
    }
    
  14. VISTALL commented on Dec 27, 2017

    @VISTALL
    Member

    I'm reopen this issue, and check it later since busy with that consulo/Docs#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions