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 248015 - warning: Supported source version 'RELEASE_7' from PatchedPublicProcessor
Summary: warning: Supported source version 'RELEASE_7' from PatchedPublicProcessor
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 8.0.1
Hardware: PC All
: P4 normal with 1 vote (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-18 15:37 UTC by lanthale
Modified: 2014-11-21 03:51 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 lanthale 2014-10-18 15:37:22 UTC
If I am using source of a netbeans module set to JDK 8 under NB 8.0.1 than I am getting always such compile errors:
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.modules.PatchedPublicProcessor' less than -source '1.8'

If I switch to back to source 1.7 for that module I am getting the warning:
warning: [options] bootstrap class path not set in conjunction with -source 1.7

Therefore actual it is not possible to compile a module without any warnings. The issue is just that under source 1.8 I am getting about 20 lines of warnings which makes it hard to remove the other warning which are real warnings from my code.

I had the same issues with NB 7.0/7.1/7.2. It seems that netbeans 8 is not made for jdk8 but also not for jdk 7. Something in between. It would be great if an update to the annotation processor could be made so that I can start to use JDK8 in my platform application.

Clemens
Comment 1 cezariusz 2014-10-31 08:35:14 UTC
I have the same problem. Is there any workaround?
Comment 2 cezariusz 2014-11-13 09:17:14 UTC
Happens also on Windows.
Comment 3 Jaroslav Tulach 2014-11-19 12:12:42 UTC
You can get rid of the 

warning: [options] bootstrap class path not set in conjunction with -source 1.7

by compiling on JDK7. So the workaround is easy - e.g. making P4.

Annotation processors are hard to write with prediction of future language changes. We can update them now to not emit warnings on JDK8. But the code to do so is not really straightforward.
Comment 4 Jaroslav Tulach 2014-11-19 12:13:26 UTC
Btw. I am making this bug PatchedPublicProcessor specified. Other processors would need to be handled separatelly.
Comment 5 Jaroslav Tulach 2014-11-19 12:18:01 UTC
Following change should do it: http://hg.netbeans.org/ergonomics/rev/619fea60d4ab
and probably this is the trick that other processors can use as well.
Comment 6 cezariusz 2014-11-20 13:27:48 UTC
> Other processors would need to be handled separatelly.

Shall I report this to all the modules?

warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NbBundleProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.NamedServiceProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.options.OptionsPanelControllerProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.awt.ActionProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.api.annotations.common.proc.StaticResourceProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.filesystems.declmime.MIMEResolverProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.loaders.DataObjectFactoryProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.templates.TemplateProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.editor.mimelookup.CreateRegistrationProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.windows.TopComponentProcessor' less than -source '1.8'
warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.nodes.NodesAnnotationProcessor' less than -source '1.8'
Comment 7 Quality Engineering 2014-11-21 03:51:26 UTC
Integrated into 'main-silver', will be available in build *201411210001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/619fea60d4ab
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #248015: Pretend we support latest version of the lang spec. Somebody will probably warn us when we don't