Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-531

"Duplicate method name&signature in class" when running maven app with CoS enabled

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments


    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 9.0
    • None
    • None
    • Apache NetBeans IDE Dev (Build incubator-netbeans-release-205-on-20180202) on OpenJDK 64-Bit Server VM, Mac OS X version 10.9.5 running on x86_64; UTF-8; en_US (nb)


      On several occasions, when running a Maven-based NetBeans Platform app from the IDE, the app fails with the exception "java.lang.ClassFormatError: Duplicate method name&signature in class file com/somepackage/project/actions/SomeClass$1". I suspect this might be related to the Compile-on-Save infrastructure. See attached log. A clean build of the entire project is then required in order to make the application runnable again.

      Previous versions of NetBeans required a clean build after changing annotations (see Bugzilla bug 221781). However, this new error appears even when no annotations have been changed. The specific error message shown here is also new to me--it did not appear in previous NetBeans versions.



          This comment will be Viewable by All Users Viewable by All Users


            Unassigned Unassigned Assign to me
            ebakke Eirik Bakke



              Issue deployment