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 249237 - Sigtest fails when there is a parent public abstract class with private abstract method
Summary: Sigtest fails when there is a parent public abstract class with private abstr...
Status: RESOLVED INVALID
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-09 17:16 UTC by Martin Schovanek
Modified: 2015-11-23 15:44 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 Martin Schovanek 2014-12-09 17:16:36 UTC
The sitest for JDEV's adf-faces-databinding-rt.jar fails with:
  Warning: public class oracle.adf.controller.v2.lifecycle.PageLifecycle can't be extended because contains the following member: method abstract boolean

Tested class: oracle.adf.controller.faces.lifecycle.FacesPageLifecycle

Summary of relevant sources:

FacesPageLifecycle.java:

package oracle.adf.controller.faces.lifecycle;
public class FacesPageLifecycle extends PageLifecycleImpl {
...
}
-----------
PageLifecycleImpl.java:

package oracle.adf.controller.v2.lifecycle;
public class PageLifecycleImpl extends PageLifecycle {
...
}
-----------
PageLifecycle.java:

package oracle.adf.controller.v2.lifecycle;
public abstract class PageLifecycle extends Phases {
  ...
  abstract boolean invokeEventMethod(PageLifecycleContext context, String eventName) throws Exception;
  ...
}
Comment 1 Jaroslav Tulach 2015-05-27 21:32:29 UTC
Anyone cares and wants me to fix this?
Comment 2 Peter Pis 2015-11-11 15:34:15 UTC
Ran into it again. While generating sig file:

[java] Warning: public class oracle.adf.controller.v2.lifecycle.PageLifecycle can't be extended because contains the following member: method abstract boolean oracle.adf.controller.v2.lifecycle.PageLifecycle.invokeEventMethod(oracle.adf.controller.v2.context.PageLifecycleContext,java.lang.String) throws java.lang.Exception
Comment 3 Jaroslav Tulach 2015-11-23 15:41:24 UTC
I have simulated the problem in
http://hg.netbeans.org/apitest/rev/9e4e26d43110
Comment 4 Jaroslav Tulach 2015-11-23 15:44:36 UTC
The http://hg.netbeans.org/apitest/rev/bf7c2b94cd80 demonstrates that it is enough to add package private constructor to the affected class to make Sigtest happy.

So in your case just add

PageLifecycle() {}

constructor and the problem shall be gone.

Resolving and marking as not-a-bug - e.g. invalid, as the sigtest properly identified an API design error that is easy to fix.