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 201267

Summary: Update WatchPanel for JDK7
Product: debugger Reporter: rockclimb
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.0.1   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:

Description rockclimb 2011-08-23 21:44:04 UTC
This bug report concerns the following file:

debugger.jpda.ui/src/org/netbeans/modules/debugger/jpda/ui/WatchPanel.java

This file contains the class org.netbeans.modules.debugger.jpda.ui.WatchPanel.MyTrees which extends com.sun.source.util.Trees.

The latter has a new abstract method getLub(com.sun.source.tree.CatchTree) in Java 7, see:

http://download.oracle.com/javase/7/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html

This appears to be fixed by adding the following method, although I am unsure of the consequences of doing so:

 @Override
 public TypeMirror getLub(CatchTree tree) {
     return trees.getLub(tree);
 }
Comment 1 Martin Entlicher 2011-09-06 15:17:25 UTC
NetBeans still compiles on JDK 6. Therefore I can not use JDK 7 methods.
I'm keeping this as a task for future version...