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: | NullPointerException at com.sun.tools.javac.jvm.Code.emitop0 | ||
---|---|---|---|
Product: | java | Reporter: | mosca_morta <mosca_morta> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jglick, mkroll, ytn01 |
Priority: | P2 | ||
Version: | 8.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 226656 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace |
Description
mosca_morta
2016-10-09 16:22:40 UTC
Created attachment 162408 [details]
stacktrace
Created attachment 163061 [details]
stacktrace
Scanning Jenkins core sources.
Trying to figure out if this is the bug which is causing the IDE to become barely usable for running tests in CoS mode: every time I try to do so, I get an error about some class missing a code attribute on a method. I think this is due to broken classpath scanning. Running a Maven clean build does not help, because cleaning generated sources triggers new IDE scanning that I cannot suppress, which overwrites valid class files with junk. Closing the project(s) and then running a clean build from an external shell allows me to use the right class files, but then makes the CoS part not work at all. Created attachment 163155 [details]
stacktrace
Classpath scanning.
Does seem to be associated with broken CoS testing. Makes dev builds unsuitable for working on Jenkins core. Tried deleting my cache. Now I do not seem to get this; I get #200970 instead. I suppose that is an improvement. Got this again even after having deleted my cache recently, so it is not attributable merely to having ancient and broken class files lying around. BTW the code triggering this seems to be github.com/jenkinsci/jenkins/core/src/main/java/jenkins/security/s2m/OpMatcher.java: interface OpMatcher { boolean matches(String op); OpMatcher ALL = new OpMatcher() { @Override public boolean matches(String op) { return true; } }; } Created attachment 163224 [details]
stacktrace
Installed IDE and launched it,
IDE asked to set master password ( I entered one)
IDE opened projects from last session (some java, maven, platform and web)
IDE started indexing maven repository
Then exception popped
Last I checked this was consistently reproducible just by checking out github.com/jenkinsci/jenkins and opening all the modules. This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=226656 Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/657a3e870b85 http://hg.netbeans.org/main/nb-javac/rev/993a3fed49b2 Integrated into 'main-silver', will be available in build *201705270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/657a3e870b85 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #270696, #268429, #200970, and #257649 fixed. |