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 235767 - UnsupportedOperationException: LOCAL_VARIABLE, class com.sun.tools.javac.code.Symbol$VarSymbol: serviceHandler
Summary: UnsupportedOperationException: LOCAL_VARIABLE, class com.sun.tools.javac.code...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-10 21:35 UTC by theshadow27
Modified: 2013-09-16 13:38 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 203749


Attachments
stacktrace (5.43 KB, text/plain)
2013-09-10 21:35 UTC, theshadow27
Details
stacktrace (5.41 KB, text/plain)
2013-09-10 21:38 UTC, theshadow27
Details

Note You need to log in before you can comment on or make changes to this bug.
Description theshadow27 2013-09-10 21:35:45 UTC
Build: NetBeans IDE Dev (Build 201309060001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
theshadow27: Duplicated again (same as Exception #690811)

theshadow27: Added /**[return] comment into void main(String[])




Stacktrace: 
java.lang.UnsupportedOperationException: LOCAL_VARIABLE, class com.sun.tools.javac.code.Symbol$VarSymbol: serviceHandler
   at org.netbeans.modules.javadoc.hints.JavadocGenerator.generateComment(JavadocGenerator.java:229)
   at org.netbeans.modules.javadoc.hints.GenerateJavadocAction$2.run(GenerateJavadocAction.java:198)
   at org.netbeans.modules.javadoc.hints.GenerateJavadocAction$2.run(GenerateJavadocAction.java:149)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:493)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155)
Comment 1 theshadow27 2013-09-10 21:35:47 UTC
Created attachment 139898 [details]
stacktrace
Comment 2 theshadow27 2013-09-10 21:38:28 UTC
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);
        
    }
}
Comment 3 theshadow27 2013-09-10 21:40:50 UTC
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);
        
    }
}
Comment 4 Ralph Ruijs 2013-09-10 21:50:50 UTC
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
Comment 5 Jiri Prox 2013-09-11 08:26:16 UTC
verified in trunk
Comment 6 Svata Dedic 2013-09-11 11:54:58 UTC
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
Comment 7 Quality Engineering 2013-09-12 01:22:00 UTC
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
Comment 8 Jiri Prox 2013-09-16 13:38:52 UTC
verified in 7.4 rc1