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.
Summary: | UnsupportedOperationException: LOCAL_VARIABLE, class com.sun.tools.javac.code.Symbol$VarSymbol: serviceHandler | ||
---|---|---|---|
Product: | java | Reporter: | theshadow27 <theshadow27> |
Component: | Javadoc | Assignee: | Ralph Ruijs <ralphbenjamin> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | jiriprox, sdedic, theshadow27 |
Priority: | P2 | Keywords: | 7.4_HR_FIX |
Version: | 7.4 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 203749 |
Attachments: |
stacktrace
stacktrace |
Description
theshadow27
2013-09-10 21:35:45 UTC
Created attachment 139898 [details]
stacktrace
Created attachment 139899 [details]
stacktrace
public class Issue235767 {
public static void main(String[] args) {
StringBuilder sb = new StringBuilder();
/**[press return here]
*
*/
String str = String.valueOf(sb);
}
}
This bug is triggered when starting a JavaDoc style comment ("/**") and pressing return to finish it. Easy to duplicate in dev build 201309060001: public class Issue235767 { public static void main(String[] args) { StringBuilder sb = new StringBuilder(); /**[press return here] String str = String.valueOf(sb); } } changeset : 9baa3ea2c4ca author : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date : Tue Sep 10 23:49:04 PDT 2013 summary : #235767 - UnsupportedOperationException: LOCAL_VARIABLE, class com.sun.tools.javac.code.Symbol$VarSymbol: serviceHandler verified in trunk Patch verified to avoid exception for Element kinds (incl. LOCAL_VARIABLE) not explicitly covered by the generator. The generate action then performs a no-op Integrated into 'main-silver', will be available in build *201309120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9baa3ea2c4ca User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #235767 - UnsupportedOperationException: LOCAL_VARIABLE, class com.sun.tools.javac.code.Symbol$VarSymbol: serviceHandler verified in 7.4 rc1 |