Skip to content

When using tai-e to analyse the class, the permission modifier of the inner class is always public. #142

@zpc0801

Description

@zpc0801

📝 Overall Description

When using tai-e to analyse the class, the permission modifier of the inner class is always public. As shown in the following example, the permission modifiers of inner class B and C are private and protected respectively. However, the result of calling Tai-e's interface is that both classes B and C are public, i.e., assertTrue(B.isPublic()); assertTrue(C.isPublic());

package com.example;
public class A{
    private class B{
    }
    protected class C{
    }
}

🎯 Expected Behavior

the permission modifier of the inner class B is private, and the permission modifier of the inner class C is protected.

🐛 Current Behavior

the permission modifiers of the inner class B and C are public.

🔄 Reproducible Example

No response

⚙️ Tai-e Arguments

🔍 Click here to see Tai-e Options
{{The content of 'output/options.yml' file}}
🔍 Click here to see Tai-e Analysis Plan
{{The content of 'output/tai-e-plan.yml' file}}

📜 Tai-e Log

🔍 Click here to see Tai-e Log
{{The content of 'output/tai-e.log' file}}

ℹ️ Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions