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 127058 - Source code uncompilable on JDK 6.0 and JDK 7.0
Summary: Source code uncompilable on JDK 6.0 and JDK 7.0
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: JBI Manager (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jun Qian
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-09 14:13 UTC by Petr Hrebejk
Modified: 2008-04-18 20:55 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 Petr Hrebejk 2008-02-09 14:13:48 UTC
Trying to compile the source code with either JDK 6.0 or JDK 7.0 results into 4 errors:

    [javac]
/home/phrebejk/space/netbeans/main/compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/management/OldConfigurationMBeanAttributeInfo.java:65:
getDescriptor() in org.netbeans.modules.sun.manager.jbi.management.OldConfigurationMBeanAttributeInfo cannot implement
getDescriptor() in javax.management.DescriptorRead; attempting to use incompatible return type
    [javac] found   : org.netbeans.modules.sun.manager.jbi.management.model.OldJBIComponentConfigurationDescriptor
    [javac] required: javax.management.Descriptor
    [javac]     public OldJBIComponentConfigurationDescriptor getDescriptor() {
    [javac]                                                   ^
    [javac]
/home/phrebejk/space/netbeans/main/compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/management/model/JBIComponentConfigurationMBeanAttributeInfo.java:65:
getDescriptor() in org.netbeans.modules.sun.manager.jbi.management.model.JBIComponentConfigurationMBeanAttributeInfo
cannot implement getDescriptor() in javax.management.DescriptorRead; attempting to use incompatible return type
    [javac] found   : org.netbeans.modules.sun.manager.jbi.management.model.JBIComponentConfigurationDescriptor
    [javac] required: javax.management.Descriptor
    [javac]     public JBIComponentConfigurationDescriptor getDescriptor() {
    [javac]                                                ^
    [javac]
/home/phrebejk/space/netbeans/main/compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/nodes/property/AbstractTabularPropertySupport.java:220:
incompatible types
    [javac] found   : java.util.Collection<capture#742 of ?>
    [javac] required: java.util.Collection<javax.management.openmbean.CompositeData>
    [javac]         Collection<CompositeData> oldCDs = oldTabularData.values();
    [javac]                                                                 ^
    [javac]
/home/phrebejk/space/netbeans/main/compapp.manager.jbi/src/org/netbeans/modules/sun/manager/jbi/nodes/property/AbstractTabularPropertySupport.java:222:
incompatible types
    [javac] found   : java.util.Collection<capture#570 of ?>
    [javac] required: java.util.Collection<javax.management.openmbean.CompositeData>
    [javac]         Collection<CompositeData> newCDs = newTabularData.values();
    [javac]
Comment 1 Jun Qian 2008-02-13 22:08:02 UTC
517af208bb8f