Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JDT Compiler throws NPE in Java 1.7(Eclipse JDT Compiler (ECJ) throws NPE in Java 1.7)
JDT Compiler throws NPE in Java 1.7 [message #1033904] Thu, 04 April 2013 19:40 Go to next message
Igal . is currently offline Igal .Friend
Messages: 2
Registered: December 2012
Junior Member
I'm getting an NPE from the ECJ (version 4.2.1) compiler when running in JRE 1.7

the same project compiles properly on JRE 1.6

a CompilationProgress monitor shows that there are Total of 2493 tasks, but then I get the NPE.

any ideas?

TIA

java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.concatFiles(EclipseFileManager.java:202) at org.eclipse.jdt.internal.compiler.apt.util.EclipseFileManager.handleOption(EclipseFileManager.java:669) at org.eclipse.jdt.internal.compiler.apt.dispatch.BatchProcessingEnvImpl.(BatchProcessingEnvImpl.java:88) at org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager.configure(BatchAnnotationProcessorManager.java:69) at org.eclipse.jdt.internal.compiler.batch.Main.initializeAnnotationProcessorManager(Main.java:3632) at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:3737) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1679) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1372) at org.eclipse.jdt.core.compiler.batch.BatchCompiler.compile(BatchCompiler.java:80) at org.eclipse.jdt.core.compiler.batch.BatchCompiler.compile(BatchCompiler.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) ... at java.lang.Thread.run(Thread.java:722)

[Updated on: Thu, 04 April 2013 19:40]

Report message to a moderator

Re: JDT Compiler throws NPE in Java 1.7 [message #1034478 is a reply to message #1033904] Fri, 05 April 2013 13:32 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
Hi,

You should open a bug report against JDT/Core [1] with steps to reproduce.
Provide the org.eclipse.jdt.core bundle version and as many steps as possible to make sure the JDT/Core team can reproduce the problem.

Thanks,

Olivier
[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT
Re: JDT Compiler throws NPE in Java 1.7 [message #1035237 is a reply to message #1034478] Sat, 06 April 2013 15:05 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Given the line numbers in your exception the following information would be valuable for a bug report:

What are the values of the following system properties when running on that JRE 1.7 that shows the failure:
- java.version
- java.home

I have the slight feeling some of this code was never tested on 1.7 :-/

Stephan
Previous Topic:getting compiler error. I think its something to do with eclipse?
Next Topic:package org.eclipse problem
Goto Forum:
  


Current Time: Thu Apr 25 05:38:02 GMT 2024

Powered by FUDForum. Page generated in 0.02935 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top