Bug 452357 - [jdt] NPE in ReferenceExpression.shouldGenerateImplicitLambda
Summary: [jdt] NPE in ReferenceExpression.shouldGenerateImplicitLambda
Status: RESOLVED DUPLICATE of bug 444772
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard: Need information how to reproduce thi...
Keywords: needinfo
: 452358 452359 452361 452362 452363 452365 452366 452370 452371 452373 452375 452376 452377 452378 452379 452380 452382 452383 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-19 15:40 EST by EPP Error Reports CLA
Modified: 2014-11-20 00:33 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description EPP Error Reports CLA 2014-11-19 15:40:12 EST
Hello committers,

we received a new error report for Eclipse 4.4.1.M20140925-0400.


General Information:
    anonymous-id:         1a2ac6ca-27f1-4035-9d3f-e336f6664530
    eclipse-build-id:     4.4.1.M20140925-0400
    eclipse-product:      org.eclipse.epp.package.jee.product
    operating system:     Windows7 6.1.0 (x86_64) - win32
    java-runtime-version: 1.8.0-b132

The following plug-ins were present on the execution stack (*):
    1. org.eclipse.core.commands_3.6.100.v20140528-1422
    2. org.eclipse.core.databinding.observable_1.4.1.v20140210-1835
    3. org.eclipse.core.databinding_1.4.2.v20140729-1044
    4. org.eclipse.core.resources_3.9.1.v20140825-1431
    5. org.eclipse.core.runtime_3.10.0.v20140318-2214
    6. org.eclipse.e4.core.commands_0.10.2.v20140424-2344
    7. org.eclipse.e4.core.contexts_1.3.100.v20140407-1019
    8. org.eclipse.e4.core.di_1.4.0.v20140414-1837
    9. org.eclipse.e4.ui.bindings_0.10.200.v20140424-2042
    10. org.eclipse.e4.ui.workbench_1.2.1.v20140901-1244
    11. org.eclipse.e4.ui.workbench.swt_0.12.100.v20140530-1436
    12. org.eclipse.equinox.app_1.3.200.v20130910-1609
    13. org.eclipse.equinox.launcher_1.3.0.v20140415-2008
    14. org.eclipse.jdt_3.10.0.v20140925-0400
    15. org.eclipse.jdt.core_3.10.0.v20140902-0626
    16. org.eclipse.jdt.ui_3.10.1.v20140817-1500
    17. org.eclipse.jface_3.10.1.v20140813-1009
    18. org.eclipse.swt_3.103.1.v20140903-1938
    19. org.eclipse.ui_3.106.0.v20140812-1751
    20. org.eclipse.ui.editors_3.8.200.v20140401-1310
    21. org.eclipse.ui.ide.application_1.0.500.v20140514-2033
    22. org.eclipse.ui.ide_3.10.1.v20140828-0944


Error Status:

    code:                   2
    plugin:                 org.eclipse.jdt.ui_3.10.1.v20140817-1500
    message:                Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
    fingerprint:            e6c704e6
    exception class:        java.lang.NullPointerException
    exception message:      -
    number of children:     0
    
    java.lang.NullPointerException: null
    at org.eclipse.jdt.internal.compiler.ast.ReferenceExpression.shouldGenerateImplicitLambda(ReferenceExpression.java:186)
    at org.eclipse.jdt.internal.compiler.ast.ReferenceExpression.generateCode(ReferenceExpression.java:194)
    at org.eclipse.jdt.internal.compiler.ast.Statement.generateArguments(Statement.java:287)
    at org.eclipse.jdt.internal.compiler.ast.MessageSend.generateCode(MessageSend.java:425)
    at org.eclipse.jdt.internal.compiler.ast.Statement.generateArguments(Statement.java:287)
    at org.eclipse.jdt.internal.compiler.ast.MessageSend.generateCode(MessageSend.java:425)
    at org.eclipse.jdt.internal.compiler.ast.Statement.generateArguments(Statement.java:287)
    at org.eclipse.jdt.internal.compiler.ast.AllocationExpression.generateCode(AllocationExpression.java:215)
    at org.eclipse.jdt.internal.compiler.ast.Statement.generateArguments(Statement.java:287)
    at org.eclipse.jdt.internal.compiler.ast.MessageSend.generateCode(MessageSend.java:425)
    at org.eclipse.jdt.internal.compiler.ast.Expression.generateCode(Expression.java:705)
    at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:325)
    at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.generateCode(AbstractMethodDeclaration.java:270)
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:566)
    at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:635)
    at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:368)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1210)
    at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:689)
    at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:1183)
    at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:809)
    at org.eclipse.jdt.internal.corext.fix.CleanUpPostSaveListener.createAst(CleanUpPostSaveListener.java:608)
    at org.eclipse.jdt.internal.corext.fix.CleanUpPostSaveListener.saved(CleanUpPostSaveListener.java:385)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$5.run(CompilationUnitDocumentProvider.java:1598)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.notifyPostSaveListeners(CompilationUnitDocumentProvider.java:1593)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider.commitWorkingCopy(CompilationUnitDocumentProvider.java:1380)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$4.execute(CompilationUnitDocumentProvider.java:1458)
    at org.eclipse.ui.editors.text.TextFileDocumentProvider$DocumentProviderOperation.run(TextFileDocumentProvider.java:132)
    at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute(WorkspaceModifyDelegatingOperation.java:69)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
    at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:75)
    at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run(WorkspaceOperationRunner.java:65)
    at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation(TextFileDocumentProvider.java:456)
    at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument(TextFileDocumentProvider.java:772)
    at org.eclipse.ui.texteditor.AbstractTextEditor.performSave(AbstractTextEditor.java:5076)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSave(CompilationUnitEditor.java:1247)
    at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:1301)
    at org.eclipse.ui.texteditor.AbstractTextEditor$TextEditorSavable.doSave(AbstractTextEditor.java:7209)
    at org.eclipse.ui.Saveable.doSave(Saveable.java:216)
    at org.eclipse.ui.internal.SaveableHelper.doSaveModel(SaveableHelper.java:355)
    at org.eclipse.ui.internal.SaveableHelper$3.run(SaveableHelper.java:199)
    at org.eclipse.ui.internal.SaveableHelper$5.run(SaveableHelper.java:283)
    at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:466)
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:374)
    at org.eclipse.ui.internal.WorkbenchWindow$13.run(WorkbenchWindow.java:2157)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2153)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:291)
    at org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation(SaveableHelper.java:269)
    at org.eclipse.ui.internal.SaveableHelper.saveModels(SaveableHelper.java:211)
    at org.eclipse.ui.internal.SaveableHelper.savePart(SaveableHelper.java:146)
    at org.eclipse.ui.internal.WorkbenchPage.saveSaveable(WorkbenchPage.java:3915)
    at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:3929)
    at org.eclipse.ui.internal.handlers.SaveHandler.execute(SaveHandler.java:54)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:294)
    at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
    at sun.reflect.GeneratedMethodAccessor107.invoke(null:-1)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
    at java.lang.reflect.Method.invoke(null:-1)
    at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:247)
    at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:229)
    at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
    at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:149)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:286)
    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:507)
    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:558)
    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:378)
    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:324)
    at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:86)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1112)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1108)
    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1529)
    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4722)
    at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:343)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:4610)
    at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(OS.java:-2)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(null:-2)
    at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
    at java.lang.reflect.Method.invoke(null:-1)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
   

    

Messages, stacktraces, and nested status objects may be shortened. Please visit 
http://dev.eclipse.org/recommenders/committers/confess/0.5/reports/-
for the complete error log.


Some general information and guidelines about how to use this bug report:

1. Feel free to move this bug to your own product and components. Please note
   that this bug is only accessible to Eclipse committers. If you move this bug
   please make sure that it's still in the "Security Advisor" group.

2. The bug contents of the fields status, resolution, keywords, and whitelist
   are presented to reporters. If you needs more information, please set the
   keyword "needinfo". This will trigger a specialized dialog asking the user
   to provide further details.

3. Use the following resolutions for the following situations:
   * CLOSED / FIXED: This bug has been fixed. Please provide additional
     information in the whiteboard field.
   * CLOSED / WORKSFORME: Use this resolution if you can't reproduce this issue
     and request further information. Please use the whiteboard text to specify
     more details what a user should provide and how.
   * CLOSED / INVALID: Use this resolution if the reported problem is a
     'user-configuration' problem. Please consider giving hints how to fix
     these issues in the whiteboard field.
   * CLOSED / NOT ECLIPSE: Use this if the problem is caused by another plugin
     not developed at Eclipse.org
   * CLOSED / MOVED: If this bug has been moved else where. Please provide more 
     information (e.g. a link) in the whiteboard field.

4. Please remember that only committers can view and comment on this bug. You
   may, however, manually add the reporting user to the bug's cc list. But keep
   in mind that the report may contains sensitive information.

5. If you are missing a feature, please file a enhancement request here:
   https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Recommenders.Incubator&component=Stacktraces
    
 

Thank you for your assistance.
Your friendly error-reports-inbox.


--
* Note: The list of present bundles and their respective versions was
  calculated by package naming heuristics. This may or may not reflect reality.
Comment 1 EPP Error Reports CLA 2014-11-19 15:40:15 EST
I've looked up the (to date) top-3 most similar bug groups and listed the 
closest bug of each group below. This report may or may not be duplicate of
those (low or similar scores for all entries may indicate that this hasn't
been reported yet):

>     1. Bug 451828: [platform] Unhandled event loop exception – 0,9    
>     2. Bug 448465: [ltk] The resource tree is locked for modifications. – 0,8    
>     3. Bug 449636: [platform] Internal Error – 0,7    


If this report actually is a duplicate of those, please mark it as such. This
information helps me to improve the recommendations further for the next issue.

Thank you for your assistance.
Your friendly error-reports-inbox.
Comment 2 EPP Error Reports CLA 2014-11-19 15:40:27 EST
*** Bug 452358 has been marked as a duplicate of this bug. ***
Comment 3 EPP Error Reports CLA 2014-11-19 15:40:28 EST
*** Bug 452359 has been marked as a duplicate of this bug. ***
Comment 4 EPP Error Reports CLA 2014-11-19 15:40:30 EST
*** Bug 452361 has been marked as a duplicate of this bug. ***
Comment 5 EPP Error Reports CLA 2014-11-19 15:40:32 EST
*** Bug 452362 has been marked as a duplicate of this bug. ***
Comment 6 EPP Error Reports CLA 2014-11-19 15:40:32 EST
*** Bug 452363 has been marked as a duplicate of this bug. ***
Comment 7 EPP Error Reports CLA 2014-11-19 15:40:49 EST
*** Bug 452365 has been marked as a duplicate of this bug. ***
Comment 8 EPP Error Reports CLA 2014-11-19 15:40:49 EST
*** Bug 452366 has been marked as a duplicate of this bug. ***
Comment 9 EPP Error Reports CLA 2014-11-19 15:50:02 EST
*** Bug 452370 has been marked as a duplicate of this bug. ***
Comment 10 EPP Error Reports CLA 2014-11-19 15:53:15 EST
*** Bug 452371 has been marked as a duplicate of this bug. ***
Comment 11 EPP Error Reports CLA 2014-11-19 16:00:43 EST
*** Bug 452373 has been marked as a duplicate of this bug. ***
Comment 12 EPP Error Reports CLA 2014-11-19 16:00:47 EST
*** Bug 452375 has been marked as a duplicate of this bug. ***
Comment 13 EPP Error Reports CLA 2014-11-19 16:00:48 EST
*** Bug 452376 has been marked as a duplicate of this bug. ***
Comment 14 EPP Error Reports CLA 2014-11-19 16:00:49 EST
*** Bug 452377 has been marked as a duplicate of this bug. ***
Comment 15 EPP Error Reports CLA 2014-11-19 16:00:50 EST
*** Bug 452378 has been marked as a duplicate of this bug. ***
Comment 16 EPP Error Reports CLA 2014-11-19 16:00:51 EST
*** Bug 452379 has been marked as a duplicate of this bug. ***
Comment 17 EPP Error Reports CLA 2014-11-19 16:00:52 EST
*** Bug 452380 has been marked as a duplicate of this bug. ***
Comment 18 EPP Error Reports CLA 2014-11-19 16:00:55 EST
*** Bug 452382 has been marked as a duplicate of this bug. ***
Comment 19 EPP Error Reports CLA 2014-11-19 16:09:54 EST
*** Bug 452383 has been marked as a duplicate of this bug. ***
Comment 20 Marcel Bruch CLA 2014-11-19 16:22:00 EST
Moving to jdt for review. All errors are reported by the very same person. So I think it might be a problem of a specific piece of code
Comment 21 Srikanth Sankaran CLA 2014-11-19 19:36:26 EST
(In reply to Marcel Bruch from comment #20)
> Moving to jdt for review. All errors are reported by the very same person.
> So I think it might be a problem of a specific piece of code

Jay, given how may times this is being hit, we should backport https://bugs.eclipse.org/bugs/show_bug.cgi?id=444772 quickly and have it
validated.
Comment 22 Jay Arthanareeswaran CLA 2014-11-20 00:33:10 EST
Same as bug 444772

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