Community
Participate
Working Groups
Build Identifier: I20110512-2000 Define a custom converter for an ID mapping like this: @Id @Convert("BALABA") @Converter(converterClass = MyConv.class, name = "CONV") private int id; Once saving the java source, the following NPE is thrown and prevents the validation messages from showing up in the Problem view. This problem happens no matter whether the converter class is valid or not. java.lang.NullPointerException at org.eclipse.jpt.common.core.internal.utility.jdt.AbstractJDTType.types(AbstractJDTType.java:171) Full stack trace is attached. Reproducible: Always
Created attachment 196133 [details] Stack Trace
Same problem exists when defining a custom converter at Java entity level. Custom converters defined in mapping file don't have such problem.
From my testing, and from discussion with Brian, this bug is a result of a proposed fix for bug 346005. As such, I don't think it would qualify as a bug since it doesn't exist in any development stream. Please let me know if this is incorrect.
(In reply to comment #3) > From my testing, and from discussion with Brian, this bug is a result of a > proposed fix for bug 346005. As such, I don't think it would qualify as a bug > since it doesn't exist in any development stream. > > Please let me know if this is incorrect. OK...I finally reproduced this exception. I must not have had a converter class set previously.
This is fixed with the patch from bug 346535.
Fixed by patch from bug 346535.
Verified in Build R-3.3.0-20110607160810 Verified you can add custom converter(s) to id mapping without NPE errors. See the link to view test steps for verification. http://wiki.eclipse.org/Dali_3.0_RC3