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.
Created attachment 103085 [details] bug in java editor in package statement On the last version of NetBeans, 7.0Beta there is bug with following source code: package beans.entities; import beans.IJavaBean; import beans.annotations.Invisible; import beans.annotations.NotEditable; import java.io.Serializable; import java.util.Date; import javax.validation.constraints.Min; import lombok.Getter; import lombok.Setter; import lombok.ToString; @ToString public class TestingBean implements IJavaBean, Cloneable, Serializable { @Getter @Setter private Integer id; @Getter @Setter private String name; @Getter @Setter @Min(1) private Integer age; @Getter @Setter private Boolean marriage; @Invisible @Getter @Setter private Date startingDate; @Getter @Setter @NotEditable private String notEditable; @Override public Object clone() throws CloneNotSupportedException { TestingBean clone = (TestingBean) super.clone(); clone.startingDate = this.startingDate != null ? new Date(this.startingDate.getTime()) : null; return clone; } @Override public Object cloneWithoutId() throws CloneNotSupportedException { throw new AssertionError(); } } this is weird, because the same code is valid and in fact is working and compilable under the Beta version, under the 6.9.1 is compilable and no error hint is shown. the package statement is underlined and provides following hint: operator >>> cannot be applied to java.lang.String,java.lang.Integer -> see in attachment I use Maven project, NetBeans 7.0Beta, Win7 64bit, Oracle JDK 6u22 32bit
The underlaying problem is that lombok touches javac internals, but is not prepared for changes in the internals: http://code.google.com/p/projectlombok/issues/detail?id=161 dbalek has workarounded that for 6.9, workarounding again after recent merge of newer javac: http://hg.netbeans.org/jet-main/rev/fcdfbcc8a860
Integrated into 'main-golden', will be available in build *201011200001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fcdfbcc8a860 User: Jan Lahoda <jlahoda@netbeans.org> Log: #192142: updating nb-javac library