Menu

'auto-inner' class problem!?

taab
2005-02-04
2013-05-09
  • taab

    taab - 2005-02-04

    Bytecode for one of the class looks like:
    // class version 46.0 [46] (Java 1.2)
    // compiled from DutyDataProviderImpl.java
    // access flags 33
    public class xxx/DutyDataProviderImpl implements xxx/DutyDataProvider {

      INNERCLASS DutyDataProviderImpl$1 null null private final
      INNERCLASS DutyDataProviderImpl$2 null null private final

    And in the page report there are there classes reported:
    DutyDataProviderImpl
    DutyDataProviderImpl$1
    DutyDataProviderImpl$2
    with different coverage.
    I would expect to have only DutyDataProviderImpl (as it is the only class explicitly declared) reported. Am I wrong?

     
    • Vlad Roubtsov

      Vlad Roubtsov - 2005-02-07

      Sounds like you have two anonymous inner classes used  inside DutyDataProviderImpl -- don't you want to see code coverage for them?

       
    • taab

      taab - 2005-02-09

      I thought that they (inner classes) are created by compiler not programmer. Now I analysed it again and see that the output is ok.

       

Log in to post a comment.