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.
Build: NetBeans IDE Dev (Build 201212210001) VM: Java HotSpot(TM) 64-Bit Server VM, 23.6-b04, Java(TM) SE Runtime Environment, 1.7.0_10-b18 OS: Mac OS X Stacktrace: java.lang.IllegalArgumentException at com.sun.tools.javac.api.JavacTaskImpl.parseType(JavacTaskImpl.java:655) at org.netbeans.api.java.source.TreeUtilities.parseType(TreeUtilities.java:376) at org.netbeans.modules.java.hints.spiimpl.Hacks.parseFQNType(Hacks.java:181) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.doComputeHints(HintsInvoker.java:531) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:294) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:239)
Created attachment 129736 [details] stacktrace
Created attachment 129737 [details] stacktrace exited IDE, deleted cache/index still getting the exception out of the blue.
It appears that the exception thrown is related to some code changes I've done to maven.embedder's MavenEmbedder class. Add the following method to the class and get the exception as well, (part is commented to be able to work, got it again with the rest of the code..) private void normalizePaths(MavenProject project) { if (project == null) { return; } // File f = project.getFile(); // if (f != null) { // project.setFile(FileUtil.normalizeFile(f)); // } Artifact a = project.getArtifact(); if (a != null) { File f = a.getFile(); } }
increasing to P2, it happens so frequently that it prohibits effective work.
Created attachment 129804 [details] stacktrace
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/91d0f014b62a
Integrated into 'main-golden', will be available in build *201301030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/91d0f014b62a User: Dusan Balek <dbalek@netbeans.org> Log: Issue #224277: IllegalArgumentException at com.sun.tools.javac.api.JavacTaskImpl.parseType - fixed.