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.
Summary: | False Compile Time errors | ||
---|---|---|---|
Product: | ide | Reporter: | Zaanzabar |
Component: | Code | Assignee: | issues@ide <issues> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.2 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Zaanzabar
2016-11-08 01:40:09 UTC
Here is the "Issue 1" error message in its entirety: ant -q -f "F:\\Dropbox\\2-Documents\\4-Java Programming\\Library\\0-Skybox_v02" -Dnb.internal.action.name=rebuild clean jar F:\Dropbox\2-Documents\4-Java Programming\Library\0-Skybox_v02\nbproject\build-impl.xml:993: The following error occurred while executing this line: F:\Dropbox\2-Documents\4-Java Programming\Library\0-Skybox_v02\nbproject\build-impl.xml:837: java.lang.NullPointerException at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:439) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:559) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:519) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:480) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:443) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:409) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:384) at org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:322) at org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs.execute(CopyLibs.java:206) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:396) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor168.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) at org.apache.tools.ant.Project.executeTargets(Project.java:1248) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:286) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:555) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153) BUILD FAILED (total time: 0 seconds) I was able to duplicate the bug today. I have a library called "A_Library" - In there is a class called "Lib_Foundation" - In there is a method called "initialize()" I added a method called "initialize(String string)" I added a method called "init()" both can be accessed from within the IDE. If I run the program, it runs fine. "Clean and Build" the Library project - no errors "Clean and Build" the main project - Errors. Here is the error message: ant -q -f "F:\\Dropbox\\2-Documents\\4-Java Programming\\Indev\\3-VR_Fork_v05" -Dnb.internal.action.name=rebuild clean jar F:\Dropbox\2-Documents\4-Java Programming\Indev\3-VR_Fork_v05\src\A_Library\Test_VR.java:124: error: cannot find symbol Lib_Foundation.init(); symbol: method init() location: class Lib_Foundation F:\Dropbox\2-Documents\4-Java Programming\Indev\3-VR_Fork_v05\src\A_Library\Test_VR.java:125: error: method initialize in class Lib_Foundation cannot be applied to given types; Lib_Foundation .initialize(configLocation); required: no arguments found: String reason: actual and formal argument lists differ in length 2 errors F:\Dropbox\2-Documents\4-Java Programming\Indev\3-VR_Fork_v05\nbproject\build-impl.xml:923: The following error occurred while executing this line: F:\Dropbox\2-Documents\4-Java Programming\Indev\3-VR_Fork_v05\nbproject\build-impl.xml:263: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 0 seconds) |