Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 488266

Summary: [1.9][compiler] NPE in isModuleInfo()
Product: [Eclipse Project] JDT Reporter: Manoj N Palat <manoj.palat>
Component: CoreAssignee: Manoj N Palat <manoj.palat>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.6   
Target Milestone: BETA J9   
Hardware: PC   
OS: Windows 7   
See Also: https://git.eclipse.org/r/67113
https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=7696786ccdd012ef63ebfd10c568bb2b4bd4de02
Whiteboard:
Bug Depends on:    
Bug Blocks: 486988    

Description Manoj N Palat CLA 2016-02-23 01:10:24 EST
Due to a change in commit http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA9&id=d8e876759bbccfa88c266183ef2c12348f6c6feb (Fix several NPEs occurring because of module name not being set in CUD) there is another NPE that happens with st:
java.lang.NullPointerException: null
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.getMainTypeName(CompilationUnitDeclaration.java:412)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.isModuleInfo(CompilationUnitDeclaration.java:438)
	at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.<init>(CompilationUnitDeclaration.java:105)
	at org.eclipse.jdt.core.dom.DefaultBindingResolver.<init>(DefaultBindingResolver.java:181)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:1074)
	at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:639)
	at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:993)
	at org.eclipse.jdt.core.tests.dom.StandAloneASTParserTest.test2(StandAloneASTParserTest.java:136)
Comment 1 Eclipse Genie CLA 2016-02-23 01:12:55 EST
New Gerrit change created: https://git.eclipse.org/r/67113