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 - Update WatchPanel for JDK7
Summary: Update WatchPanel for JDK7
Status: NEW
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-23 21:44 UTC by rockclimb
Modified: 2011-09-06 15:17 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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...