facebook

Project Java Statistics showing incorrect information

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #259189 Reply

    rogue_dev
    Member

    I just installed Eclipse 3.2 and ME 5.0.1GA (Pro)

    In the project properties, MyEclipse, there is a section which shows Java Statistics. When I first ran it it showed:
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 1095
    LOC: 122831

    I closed the properties, then opened it again. This time is showed (note the classes count):
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 260
    LOC: 122831

    Ok…, so I ran the Update again:
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 109
    LOC: 122831

    This is now consistent. It will not show the actual class count. I did not do any editing between statistics updates.

    Adding a line of code updated the LOC properly. Adding a new class still showed 109 instead of the correct 1096.

    Also, could you report on the JSP’s?

    #259193 Reply

    Brian Fernandes
    Moderator

    The class count changing like that is really strange. The values in the file are only updated on demand, did you notice if the “Last Updated” time had changed?

    The 109 instead of 1096 issue might have been a visual issue caused by the text being clipped – if you close and open the page does it still say 109? We’ll look into this one.

    I’ll forward the JSP request to the management, would would you like to see reported – just the number of JSPs or more?

    Best,
    Brian.

    #259195 Reply

    rogue_dev
    Member

    Yes, the last updated time has changed.

    If it was just a clipping issue, why did it report correctly the first time?

    If I close/open, then the class count goes back to 260, which is the package count.

    As for JSP reporting, hmm…

    The number of directories, files (JSP/HTML), fragments (JSPF), and a raw line count?

    Of course someone WILL ask for a more “intelligent” LOC 🙂

    #259197 Reply

    rogue_dev
    Member

    Where is this persisted? I could look at the raw information, maybe delete it and see if it reports correctly.

    #259209 Reply

    rogue_dev
    Member

    Ok, I found the file it contains

    #Mon Sep 25 11:29:13 PDT 2006
    clsCnt=260
    eclipse.preferences.version=1
    locCnt=122844
    pkgCnt=260
    sTime=Sep 25 2006 11\:29\:13
    srcCnt=2

    I renamed the file, then went back to the stats screen. All the values were 0 and the date was n/a.

    When I ran Update I got the right values, that is the class count showed as 1096.

    When I looked into the file, the class count was 260. I ran update again and it showed 109 classes, but the file still showed 260 classes.

    I played around a little manually changing the class count in the file, then re-opening the stats. There seems to be some threshold that triggers the bad count. It could be set higher than 260 (such as 1234), but it seems to ignore lower numbers than the previous count.

    I could narrow it down more, but hey, you have the source code 🙂

    #259286 Reply

    Brian Fernandes
    Moderator

    Thanks for all that extra detail – I checked this myself and found something odd going on – thanks for pointing it out.

    We’ll try to get this fixed by 5.0.3, though I don’t think any JSP statistics will be in.

    Thanks again,
    Brian.

    #269506 Reply

    myquji
    Member

    @rogue_dev wrote:

    I just installed Eclipse 3.2 and ME 5.0.1GA (Pro)

    In the project properties, MyEclipse, there is a section which shows Java Statistics. When I first ran it it showed:
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 1095
    LOC: 122831

    I closed the properties, then opened it again. This time is showed (note the classes count):
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 260
    LOC: 122831

    Ok…, so I ran the Update again:
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 109
    LOC: 122831

    This is now consistent. It will not show the actual class count. I did not do any editing between statistics updates.

    Adding a line of code updated the LOC properly. Adding a new class still showed 109 instead of the correct 1096.

    Also, could you report on the JSP’s?

    #269507 Reply

    myquji
    Member

    @rogue_dev wrote:

    I just installed Eclipse 3.2 and ME 5.0.1GA (Pro)

    In the project properties, MyEclipse, there is a section which shows Java Statistics. When I first ran it it showed:
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 1095
    LOC: 122831

    I closed the properties, then opened it again. This time is showed (note the classes count):
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 260
    LOC: 122831

    Ok…, so I ran the Update again:
    Source Folders: 2
    Packages: 260
    Classes/Interfaces: 109
    LOC: 122831

    This is now consistent. It will not show the actual class count. I did not do any editing between statistics updates.

    Adding a line of code updated the LOC properly. Adding a new class still showed 109 instead of the correct 1096.

    Also, could you report on the JSP’s?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Project Java Statistics showing incorrect information

You must be logged in to post in the forum log in