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 254038 - Installer class doesn't compile
Summary: Installer class doesn't compile
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.1
Hardware: PC Windows 10
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-31 15:12 UTC by mienamoo
Modified: 2015-09-23 13:16 UTC (History)
0 users

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 mienamoo 2015-07-31 15:12:45 UTC
Product Version = NetBeans IDE 8.1 Beta (Build 201507302201)
Operating System = Windows 8 version 6.2 running on amd64
Java; VM; Vendor = 1.8.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.45-b02

I was running this test when the problem occurred:
http://services.netbeans.org/synergy/client/app/#/case/478/suite/1130/v/1

After creating the activator and installer, my project would no longer compile. Here is a sample of the compiler error:

Installer.java:10: error: cannot access SharedClassObject
public class Installer extends ModuleInstall {
  class file for org.openide.util.SharedClassObject not found
warning: No processor claimed any of these annotations: javax.annotation.Generated
Installer.java:12: error: method does not override or implement a method from a supertype
    @Override

I wondered where the problem lies, and so I started over:

1. I created a new Ant-based NetBeans Platform Application.
2. Added a new module (normal one, not OSGi) to it.
3. Compile - everything is OK.
4. Add an Action using the file wizard.
5. Compile - everything still OK.
6. Add an installer via the file wizard.
7. Compile - compile fails with the above error.
Comment 1 Ondrej Vrabec 2015-08-19 08:09:19 UTC
core-main #b9fe3672a103
Comment 2 Quality Engineering 2015-08-21 01:20:58 UTC
Integrated into 'main-silver', will be available in build *201508210002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b9fe3672a103
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #254038 - Installer class doesn't compile

Change dependency to include the module containing SharedClassObject
Comment 3 mienamoo 2015-09-23 13:16:31 UTC
Verified with dev build 201509210002. Thanks!