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 239295

Summary: IllegalArgumentException: Not supported: WrappedJavaFileObject[org.netbeans.modules.java.debugjavac.impl.Utilities$1[mem://mem]]
Product: contrib Reporter: ExIngus
Component: CodeAssignee: Jan Lahoda <jlahoda>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205353
Attachments: stacktrace

Description ExIngus 2013-12-10 06:18:56 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 7

User Comments:
GUEST: trying decompile a class file

GUEST: closing a all tabs

ExIngus: module debugjavac.
Open tab in the generated source Decompile.




Stacktrace: 
java.lang.IllegalArgumentException: Not supported: WrappedJavaFileObject[org.netbeans.modules.java.debugjavac.impl.Utilities$1[mem://mem]]
   at com.sun.tools.javac.file.JavacFileManager.isSameFile(JavacFileManager.java:647)
   at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:353)
   at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:520)
   at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:302)
   at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:316)
   at com.sun.tools.javac.comp.Enter.complete(Enter.java:721)
Comment 1 ExIngus 2013-12-10 06:18:58 UTC
Created attachment 142993 [details]
stacktrace
Comment 2 Dusan Balek 2014-01-09 12:50:03 UTC
The JavaFileObject returned from org.netbeans.modules.java.debugjavac.impl.Utilities.sourceFileObject(...) should be annotated with @Trusted perhaps.