Bug 466746 - Error:ajc: Internal compiler error: java.lang.NullPointerException at org.aspectj.org.eclipse.jdt.internal.compiler.ast.LambdaExpression.analyseCode(LambdaExpression.java:465)
Summary: Error:ajc: Internal compiler error: java.lang.NullPointerException at org.asp...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.8.5   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-07 10:53 EDT by Artyom Rozhkov CLA
Modified: 2021-06-08 07:05 EDT (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 Artyom Rozhkov CLA 2015-05-07 10:53:02 EDT
Reproduces when trying to use orElseThrow for constructor parameter, its valid for other class methods and valid for standard javac. Example:

public static void main(String[] args )
{
        Optional<A> optional = Optional.empty();
        new A ( optional.orElseThrow( () -> new RuntimeException("some exception") ));
}
Comment 1 Andrew Clement CLA 2015-06-05 15:21:31 EDT
Probably would be addressed by upgrading to a more recent Eclipse Compiler inside AspectJ
Comment 2 Giovanni Giuseppe CLA 2021-03-06 18:27:09 EST
Internal Error

WindowBuilder encountered unexpected internal error. 

This could be caused by a WindowBuilder bug or by a misconfiguration issue, conflict, partialupdate, etc.

java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.dom.ASTNode.getStartPosition()" because "node" is null
Comment 3 Alexander Kriegisch CLA 2021-06-08 07:05:33 EDT
Giovanni, how does your post relate to this issue? Did you post it here accidentally? It is quite cryptic either way.