Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

error from metamodel #6140

Open
gavinking opened this issue Mar 25, 2016 · 3 comments
Open

error from metamodel #6140

gavinking opened this issue Mar 25, 2016 · 3 comments

Comments

@gavinking
Copy link
Contributor

I try to iterate all classes with:

    { for (m in modules.list) for (p in m.members) p->p.members<ClassDeclaration>() }

And I get:

ceylon run: Failed to resolve org.jboss.modules._private.ModulesPrivateAccess
com.redhat.ceylon.model.loader.ModelResolutionException: Failed to resolve org.jboss.modules._private.ModulesPrivateAccess
    at com.redhat.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:1676)
    at com.redhat.ceylon.model.loader.AbstractModelLoader.convertToDeclaration(AbstractModelLoader.java:1635)
    at com.redhat.ceylon.model.loader.impl.reflect.ReflectionModelLoader.loadPackage(ReflectionModelLoader.java:114)
    at com.redhat.ceylon.model.loader.model.LazyPackage.getMembers(LazyPackage.java:176)
    at com.redhat.ceylon.compiler.java.runtime.metamodel.decl.PackageImpl.filteredMembers(PackageImpl.java:139)
    at com.redhat.ceylon.compiler.java.runtime.metamodel.decl.PackageImpl.members(PackageImpl.java:99)
@FroMage
Copy link
Contributor

FroMage commented Mar 29, 2016

Yeah, this one is tricky. They did something funny to the package so that the ClassLoader can't see it. But I can't use the usual exclude trick in the module.xml because that package is used by jboss modules. I guess I have to special-case it in the model loader.

@FroMage FroMage self-assigned this Mar 29, 2016
@quintesse
Copy link
Contributor

1.2.3 or 1.3 @FroMage ?

@FroMage
Copy link
Contributor

FroMage commented Aug 2, 2016

I fear it will break for other classes for other reasons, so 1.3.

@FroMage FroMage modified the milestones: 1.3, 1.2.3 Aug 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants