Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2013-02-22T09:28:43Z by shanz9903
buptxch
buptxch
31 Posts
ACCEPTED ANSWER

Pinned topic class is out of scope

‏2013-02-22T03:16:15Z |
first i create one porject with class a, b and c, then i create two conpoments A and B, compoment A use class a and b, compoment B use class b and c. after i successfully compiled compoment A, i found there's error with compoment B, show that file not found, and when i try to generate class of b and c, message told "class is out of scope"

what should i do?
Updated on 2013-02-22T09:28:43Z at 2013-02-22T09:28:43Z by shanz9903
  • shanz9903
    shanz9903
    268 Posts
    ACCEPTED ANSWER

    Re: class is out of scope

    ‏2013-02-22T09:28:43Z  in response to buptxch
    The class has to be in scope.
    Is it bold or pale in the browser?
    Have a look at your scope, initial instances etc in the Component and Configuration.
    If you don't use a separate 'Builder' class, then you might need to add dependencies to bring classC into scope.
    Also, edit the main file to view what the code is actually trying to do.