Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 269326 - ClassCastException: Cannot cast$$Lambda$227/34841035 to
ClassCastException: Cannot cast
Product: editor
Classification: Unclassified
Component: Formatting & Indentation
All All
: P1 with 3 votes (vote)
: Dev
Assigned To: Dusan Balek
: 269634 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2016-12-14 08:13 UTC by Chiana
Modified: 2017-04-27 01:48 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT

stacktrace (4.33 KB, text/plain)
2016-12-14 08:13 UTC, Chiana
stacktrace (6.28 KB, text/plain)
2016-12-14 08:33 UTC, Chiana
messages.log without the -verbose:class option (56.63 KB, application/octet-stream)
2017-02-27 18:35 UTC, Alexandr Scherbatiy
Run netbeans with the -J-verbose:class option (33.15 KB, application/octet-stream)
2017-02-27 18:55 UTC, Alexandr Scherbatiy
stacktrace (4.56 KB, text/plain)
2017-04-02 20:34 UTC, Jiri Prox

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2016-12-14 08:13:05 UTC
Build: NetBeans IDE Dev (Build 201612120001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b62, Java(TM) SE Runtime Environment, 1.8.0-ea-b120
OS: Windows 8

User Comments:
Chiana: Still get this, did a clean reinstall and tried again, still persists

java.lang.ClassCastException: Cannot cast$$Lambda$227/34841035 to
   at java.lang.Class.cast(
   at java.lang.invoke.MethodHandles.constant(
   at java.lang.invoke.InnerClassLambdaMetafactory.buildCallSite(
   at java.lang.invoke.LambdaMetafactory.metafactory(
   at java.lang.invoke.CallSite.makeSite(
   at java.lang.invoke.MethodHandleNatives.linkCallSite(
Comment 1 Chiana 2016-12-14 08:13:08 UTC
Created attachment 163228 [details]
Comment 2 Chiana 2016-12-14 08:33:47 UTC
Created attachment 163229 [details]

Tried to use "surround with try/catch" tool.
Comment 3 Dusan Balek 2017-01-26 08:37:41 UTC
*** Bug 269634 has been marked as a duplicate of this bug. ***
Comment 4 mps77 2017-02-16 17:47:27 UTC
Showstopper critical musthave
Comment 5 Dusan Balek 2017-02-22 13:00:06 UTC
Unfortunately, I cannot reproduce the problem. If you are still able to reproduce it on your side, could you please run your IDE with -verbose:class switch and attach the console output to this issue? Thanks.
Comment 6 Alexandr Scherbatiy 2017-02-27 18:35:15 UTC
Created attachment 163722 [details]
messages.log without the -verbose:class option
Comment 7 Alexandr Scherbatiy 2017-02-27 18:55:51 UTC
Created attachment 163723 [details]
Run netbeans with the -J-verbose:class option
Comment 8 Jiri Prox 2017-04-02 20:34:10 UTC
Created attachment 164002 [details]

Editing java file
Comment 9 Dusan Balek 2017-04-26 09:09:59 UTC
Fixed in jet-main.
Comment 10 Quality Engineering 2017-04-27 01:48:11 UTC
Integrated into 'main-silver', will be available in build *201704270002* on (upload may still be in progress)

User: Dusan Balek <>
Log: Issue #269326 - ClassCastException: Cannot cast$$Lambda$227/34841035 to - fixed.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo