This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 165826 - Cannot compile Histogram with JDK 7
Summary: Cannot compile Histogram with JDK 7
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-22 14:45 UTC by Tomas Hurka
Modified: 2009-05-23 06:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2009-05-22 14:45:34 UTC
org.netbeans.modules.profiler.heapwalk.memorylint.Histogram cannot be compiled with JDK 7 b59. See the errors below: 

  [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:105: 
count has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]             count += entry.count;
    [javac]                           ^
    [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:106: size 
has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]             size += entry.size;
    [javac]                          ^
    [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:128: 
count has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]                     return o2.count - o1.count;
    [javac]                              ^
    [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:128: 
count has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]                     return o2.count - o1.count;
    [javac]                                         ^
    [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:136: size 
has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]                     return o2.size - o1.size;
    [javac]                              ^
    [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:136: size 
has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]                     return o2.size - o1.size;
    [javac]                                        ^
    [javac] /home/th125165/Projects/Source/icedtea/netbeans/profiler/src/org/netbeans/modules/profiler/heapwalk/memorylint/Histogram.java:164: 
doAdd(T) has private access in org.netbeans.modules.profiler.heapwalk.memorylint.Histogram.Entry
    [javac]             current.doAdd(entry);
    [javac]                    ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 7 errors
    [javac] 3 warnings
Comment 1 Tomas Hurka 2009-05-22 15:10:40 UTC
Fixed in profiler-main.
changeset:   132873:132045412524
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri May 22 16:09:45 2009 +0200
summary:     bugfix #165826, private fields of Entry are not accessible from E

Comment 2 Tomas Hurka 2009-05-22 16:00:29 UTC
Fixed broken build.
changeset:   132874:80ca75d92193
user:        Tomas Hurka <thurka@netbeans.org>
date:        Fri May 22 16:58:29 2009 +0200
summary:     bugfix #165826, fixed broken build with JDK 5

Comment 3 Quality Engineering 2009-05-23 06:58:24 UTC
Integrated into 'main-golden', will be available in build *200905230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/132045412524
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #165826, private fields of Entry are not accessible from E