GithubHelp home page GithubHelp logo

btj / capsules Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 37 KB

A static encapsulation checker and doclet for multi-package Java modules

Home Page: http://btj.github.io/capsules

License: Other

Java 100.00%

capsules's People

Contributors

btj avatar

Watchers

 avatar  avatar

capsules's Issues

Exporting enums is troublesome

Exporting an enum requires putting an export annotation on each item 
separately. Furthermore, the implicit members, such as the values() method, 
cannot be exported.

Thanks to Vincent Goossens for reporting this issue.

The best approach is probably to automatically export all items and all 
implicit members of an exported enum.

Original issue reported on code.google.com by [email protected] on 29 Mar 2012 at 2:30

Inherited exported methods are not considered exported

Consider the following capsule (not fully shown):

@SystemAPI
public class Superclass {
    @SystemAPI
    public void foo() {}
}

@SystemAPI
public class Subclass extends Superclass {}

Consider the following client code (outside the capsule) (not fully shown):

Subclass subclass = new Subclass();
subclass.foo();

The subclass.foo() call is reported as an error by the capsules checker.

This behavior does not make much sense since the client can access the method 
anyway through the following code, which is accepted as correct by the checker:

((Superclass)subclass).foo();

Thanks to Vincent Goossens for reporting this issue.

Original issue reported on code.google.com by [email protected] on 28 Mar 2012 at 8:43

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.