Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 192142 - Java editor incorrectly underlines package statement and give bad hint
Java editor incorrectly underlines package statement and give bad hint
Product: editor
Classification: Unclassified
Component: Hints & Annotations
PC Windows 7 x64
: P2 (vote)
: 7.0
Assigned To: Jan Lahoda
Depends on:
  Show dependency treegraph
Reported: 2010-11-18 23:13 UTC by muzPayne
Modified: 2010-11-20 06:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT

bug in java editor in package statement (19.37 KB, image/png)
2010-11-18 23:13 UTC, muzPayne

Note You need to log in before you can comment on or make changes to this bug.
Description muzPayne 2010-11-18 23:13:36 UTC
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.util.Date;
import javax.validation.constraints.Min;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

public class TestingBean implements IJavaBean, Cloneable, Serializable {

    private Integer id;

    private String name;

    private Integer age;

    private Boolean marriage;

    private Date startingDate;

    private String notEditable;

    public Object clone() throws CloneNotSupportedException {
        TestingBean clone = (TestingBean) super.clone();

        clone.startingDate = this.startingDate != null ? new Date(this.startingDate.getTime())
                                                       : null;

        return clone;

    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
Comment 1 Jan Lahoda 2010-11-19 10:20:22 UTC
The underlaying problem is that lombok touches javac internals, but is not prepared for changes in the internals:

dbalek has workarounded that for 6.9, workarounding again after recent merge of newer javac:
Comment 2 Quality Engineering 2010-11-20 06:13:12 UTC
Integrated into 'main-golden', will be available in build *201011200001* on (upload may still be in progress)
User: Jan Lahoda <>
Log: #192142: updating nb-javac library

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo