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 158146

Summary: [65cat] IllegalArgumentException: No enum const class org.netbeans.api.java.source.CodeStyle$WrapStyle.NEVER
Product: java Reporter: big_al <big_al>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED INCOMPLETE    
Severity: blocker CC: big_al
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=146035
Issue Type: DEFECT Exception Reporter: 146035
Attachments: stacktrace
stacktrace
stacktrace

Description big_al 2009-02-08 09:33:03 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments:
big_al: Saved a JPA entity



Stacktrace: 
java.lang.IllegalArgumentException: No enum const class org.netbeans.api.java.source.CodeStyle$WrapStyle.NEVER
        at java.lang.Enum.valueOf(Enum.java:196)
        at org.netbeans.api.java.source.CodeStyle$WrapStyle.valueOf(CodeStyle.java:735)
        at org.netbeans.api.java.source.CodeStyle.wrapAnnotationArgs(CodeStyle.java:378)
        at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitAnnotation(Reformatter.java:939)
        at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitAnnotation(Reformatter.java:311)
        at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1963)
Comment 1 big_al 2009-02-08 09:33:09 UTC
Created attachment 76705 [details]
stacktrace
Comment 2 big_al 2009-02-08 21:38:02 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Activated the "Format source" on an Entity annotated bean

Stacktrace: 
java.lang.IllegalArgumentException: No enum const class org.netbeans.api.java.source.CodeStyle$WrapStyle.NEVER
        at java.lang.Enum.valueOf(Enum.java:196)
        at org.netbeans.api.java.source.CodeStyle$WrapStyle.valueOf(CodeStyle.java:735)
        at org.netbeans.api.java.source.CodeStyle.wrapAnnotationArgs(CodeStyle.java:378)
        at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitAnnotation(Reformatter.java:939)
        at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitAnnotation(Reformatter.java:311)
        at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1963)
Comment 3 big_al 2009-02-08 21:38:06 UTC
Created attachment 76716 [details]
stacktrace
Comment 4 Rastislav Komara 2009-02-16 10:36:28 UTC
.
Comment 5 big_al 2009-04-12 11:57:54 UTC
Build: NetBeans IDE Dev (Build 200904011705)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.6, x86_64

User Comments: 
Invoking source formatting of a class

Stacktrace: 
java.lang.IllegalArgumentException: No enum const class org.netbeans.api.java.source.CodeStyle$WrapStyle.NEVER
        at java.lang.Enum.valueOf(Enum.java:196)
        at org.netbeans.api.java.source.CodeStyle$WrapStyle.valueOf(CodeStyle.java:736)
        at org.netbeans.api.java.source.CodeStyle.wrapAnnotationArgs(CodeStyle.java:379)
        at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitAnnotation(Reformatter.java:984)
        at org.netbeans.modules.java.source.save.Reformatter$Pretty.visitAnnotation(Reformatter.java:352)
        at com.sun.tools.javac.tree.JCTree$JCAnnotation.accept(JCTree.java:1963)
Comment 6 big_al 2009-04-12 11:57:58 UTC
Created attachment 79944 [details]
stacktrace
Comment 7 Jan Lahoda 2009-08-20 09:59:51 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 8 Jan Lahoda 2010-03-15 08:41:37 UTC
Sorry, but I do not know how this could happen (except for changing the settings manually in the userdir). Could you please provide steps to reproduce? Thanks.