This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | IndexOutOfBoundsException: start < 0 (-1 < 0) | ||
---|---|---|---|
Product: | javaee | Reporter: | Michel Graciano <hmichel> |
Component: | Persistence | Assignee: | Michel Graciano <hmichel> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | hmichel, jlahoda |
Priority: | P3 | ||
Version: | 7.3.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 201916 |
Attachments: |
stacktrace
stacktrace Sample project |
Description
Michel Graciano
2013-07-04 20:41:31 UTC
Created attachment 136726 [details]
stacktrace
Created attachment 136727 [details]
stacktrace
Just opening the IDE with the entity already opened and selected.
Reproducible with the following sample class: @Entity @Getter @Setter(AccessLevel.PRIVATE) @NoArgsConstructor(access = AccessLevel.PROTECTED) @SuppressWarnings("serial") public class TestEntity implements Serializable { @Id private Long id; @Setter(AccessLevel.PACKAGE) private String numero; private String descricao; @Setter(AccessLevel.PACKAGE) private Integer nivel; } Maybe the problem is the integration with the Lombok processors? Yes, the use of Lombok probably plays a role here. What should be done to make provided sample compilable? I can't reproduce with the sample, but may be because it's not processed properly. Are you using NB 7.4? It won't work because a Lombok issue with Java 8. To test it, you need to use NB < 7.4. yes, 7.4+jdk7. but I know nothing about lombok there may be an issue with jdk7 also, I have can't initialize ap exception in entity hint after lombok.jar addition. ok, I see now #226165 and http://code.google.com/p/projectlombok/issues/detail?id=451 I would say it's blocker for issue fixing at least with this sample as main development is on 7.4 code base it doesn't matter much to evaluate with 7.3.1 source code with jdk8-netbeans-lombok compatibility issue. The Lombok problem in 7.4 is the internal NB javac. Nb JavaC now is the same as Java 8, which is not compatible with Lombok it. Even if you run NB with JDK 7, the NB internal parser is the same as JDK 8... so the Lombok Annotation Processors won't work. It is an open issue at Lombok side and should be fixed (I hope soon). To test it you will need to use Nb < 7.4. ok, may not be evaluated in 7.4 timeframe with current lombok, not sure if it may have sense to close as invalid for 7.4 as it's in real invalid for 7.4 with inability to reproduce. Sorry, it's hard to track issues which can't be evaluated in current release or isn't valid in current release, so for now I can either downgrade to P4 or resolve-invalid. Please reopen back when lombok will be updated. Or with new exceptions new issue will be created anyway with link to this one and it will allow to reevaluate after 7.4 with details from this one I hope. Created attachment 140417 [details]
Sample project
Lombok team have fixed some issues and now it is possible to test it with our HEAD. I am attaching a sample project with the issue. All the libs are already attached, you should just open the project and see the issue.
thanks, will reevaluate, unfortunately it's late for 7.4 related jpa verification code was significantly rewritten in 8.0, I can't reproduce this exception if open attached project and open provided entity. but I see quite a lot of others exceptions in output, but these exceptions aren't persistence related and may need to be filed as separate issue, it may also block this one issue verification if it's related. I would say, there are a lot of lombok-nb compatibility issues yet, like https://netbeans.org/bugzilla/show_bug.cgi?id=237156 etc. Also this one with out of bounds isn't reproducible, hard to say if it will be reproducible if compatibility problems will be fixed. |