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 269634 - ClassCastException: Cannot cast org.netbeans.modules.java.source.save.Reindenter$$Lambda$185/988318402 to javax.tools.DiagnosticListener
Summary: ClassCastException: Cannot cast org.netbeans.modules.java.source.save.Reinden...
Status: RESOLVED DUPLICATE of bug 269326
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-23 18:44 UTC by Alexandr Scherbatiy
Modified: 2017-01-26 08:37 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227742


Attachments
stacktrace (4.49 KB, text/plain)
2017-01-23 18:44 UTC, Alexandr Scherbatiy
Details
stacktrace (4.48 KB, text/plain)
2017-01-23 21:11 UTC, ksrini
Details
stacktrace (4.49 KB, text/plain)
2017-01-26 00:35 UTC, don_watson58
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2017-01-23 18:44:56 UTC
Build: NetBeans IDE Dev (Build 201701200001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b03, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b03
OS: Windows 8.1

User Comments:
Reema: Opened Editor Setting module in editor, tried to edit AttrSetTest.java, this error dialog poped up.
The exception is thrown when we press Enter in the editor

sunflower: Create and run an app

sunflower: The same issue




Stacktrace: 
java.lang.ClassCastException: Cannot cast org.netbeans.modules.java.source.save.Reindenter$$Lambda$185/988318402 to javax.tools.DiagnosticListener
   at java.lang.Class.cast(Class.java:3369)
   at java.lang.invoke.MethodHandle.bindTo(MethodHandle.java:1274)
   at java.lang.invoke.MethodHandles.constant(MethodHandles.java:2275)
   at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(InnerClassLambdaMetafactory.java:216)
   at java.lang.invoke.LambdaMetafactory.metafactory(LambdaMetafactory.java:304)
   at java.lang.invoke.CallSite.makeSite(CallSite.java:302)
Comment 1 Alexandr Scherbatiy 2017-01-23 18:44:59 UTC
Created attachment 163457 [details]
stacktrace
Comment 2 ksrini 2017-01-23 21:11:41 UTC
Created attachment 163458 [details]
stacktrace

Edit a file
Comment 3 don_watson58 2017-01-26 00:35:42 UTC
Created attachment 163468 [details]
stacktrace

I was following the Getting Started with Java EE Applications and had just finished creating the Message entity.  The next step was to add the String message field and then I got this error
Comment 4 Dusan Balek 2017-01-26 08:37:40 UTC

*** This bug has been marked as a duplicate of bug 269326 ***