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.

Bug 191619 - Inapplicable warning "An entity or IdClass class should implement the java.io.Serializable interface."
Summary: Inapplicable warning "An entity or IdClass class should implement the java.io...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.0.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
: 197932 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-03 23:17 UTC by dtrebbien
Modified: 2011-04-21 08:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dtrebbien 2010-11-03 23:17:49 UTC
Netbeans is issuing the warning "An entity or IdClass class should implement the java.io.Serializable interface." for one of my JPA entity classes. The thing is, this entity class implements a custom interface that extends `java.io.Serializable`, so it does in effect implement `Serializable`:

//  BasicEntity.java  //////////////////////////////////////////////////
public interface BasicEntity extends java.io.Serializable {
}


//  TestEntity.java  //////////////////////////////////////////////////
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class TestEntity implements BasicEntity {
    @Id
    private int id;
}
Comment 1 Martin Fousek 2011-04-18 12:19:03 UTC
Valid in daily builds.
Comment 2 Sergey Petrov 2011-04-19 16:27:50 UTC
http://hg.netbeans.org/web-main/rev/e960d0fca521 fix
Comment 3 Quality Engineering 2011-04-20 05:01:32 UTC
Integrated into 'main-golden', will be available in build *201104200000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e960d0fca521
User: Sergey B. Petrov <sj-nb@netbeans.org>
Log: fix #191619 check parent interfaces
Comment 4 Sergey Petrov 2011-04-21 08:49:06 UTC
*** Bug 197932 has been marked as a duplicate of this bug. ***