Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arrays created using initializers don't use provided label in FabIL, causing NPEs in constructor prologue #17

Open
tmagrino opened this issue Apr 18, 2018 · 0 comments
Labels

Comments

@tmagrino
Copy link
Member

The following code in a FabIL constructor prologue:

Label lbl = LabelUtil.noComponents();
this.aFinalArray = new Object[] ~lbl { obj };

Gets compiled to:

fabric.lang.security.Label lbl = fabric.lang.security.LabelUtil._Impl.noComponents();
this.set$aFinalArray(
    fabric.lang.arrays.internal.Compat.convert(
        this.$getStore(),
        this.get$$updateLabel(),
        this.get$$updateLabel().confPolicy(),
        new fabric.lang.Object[] { obj }));

So the label lbl is dropped.

@tmagrino tmagrino added the bug label May 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant