Community
Participate
Working Groups
Given is the following piece of code in a Java Source: -------------------------------------------- public class Test { static final long serialVersionUID=938245798324893L; } -------------------------------------------- When inquiring the constant value through IField.getConstant(), a NumberFormatException is thrown, because Long.parseLong("938245798324893L") does not allow the 'L' character - same issue for "938245798324893l". Stack trace: ... at java.lang.NumberFormatException.forInputString... at java.lang.Long.parseLong... at java.lang.Long.<init>... at org.eclipse.jdt.internal.core.SourceField.getConstant(SourceField:69) ... I'm using Eclipse build 200311211210 (3.0M5)
I am investigating.
Fixed and released in HEAD. Regression test added.
Backported to 2.1.3
Verified for 3.0M6
Verified for 2.1.3 with build M200402251535.