'XXX' is not accessible due to its access level

  • Thread starter Thread starter Paul Hatcher
  • Start date Start date
P

Paul Hatcher

I'm porting a Java app and re-structuring it slightly to put the test cases
into a separate assembly from the actual code. The conversion wizard creates
a file with a class called SupportClass which has public visibility and also
some public inner classes.

If I move this class into another project (as it's needed by both code and
test) I get an error saying SupportClass can't be used due to it's
visibility. Is it the class that inner classes only have internal visibility
even if they have been marked public or is something else going on?

Regards

Paul
 
Paul,

Can you post the code that you are referring to? If the class and inner
class are both public, there should be no problem.
 
Sorry I was slightly wrong - the message is

'XXX' is not accessible due to its protection level

Paul
 
Back
Top