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 73577

Summary: "Minimize Field Access" throws EngineException
Product: contrib Reporter: _ alexlamsl <alexlamsl>
Component: JackpotAssignee: issues@contrib <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description _ alexlamsl 2006-03-14 19:35:46 UTC
with the same setup as issue #73557 and the updated Jackpot module as of 
03/13, performing Tranform --> Minimize Field Access throws EngineException:

org.netbeans.jackpot.engine.EngineException: Error executing operator
	at org.netbeans.jackpot.builder.Engine.runCommand(Engine.java:119)
	at org.netbeans.modules.jackpot.JackpotModule.runCommand
(JackpotModule.java:132)
	at org.netbeans.modules.jackpot.actions.JackpotAction$CommandRunner.run
(JackpotAction.java:77)
[catch] at java.lang.Thread.run(Thread.java:626)
Caused by: java.lang.AssertionError
	at org.netbeans.jackpot.pretty.ImportAnalysis.neededImports
(ImportAnalysis.java:81)
	at org.netbeans.jackpot.save.Commit.commit(Commit.java:316)
	at org.netbeans.jackpot.builder.DefaultEnvironment.toSource
(DefaultEnvironment.java:120)
	at org.netbeans.jackpot.transform.TransformResult.toSource
(TransformResult.java:74)
	at org.netbeans.jackpot.transform.TransformResult.makeSelection
(TransformResult.java:57)
	at 
org.netbeans.jackpot.transform.TransformResult$TransformerResultImpl.getElement
(TransformResult.java:88)
	at org.netbeans.modules.jackpot.ModuleContext.checkSourceFiles
(ModuleContext.java:128)
	at org.netbeans.modules.jackpot.ModuleContext.acceptResults
(ModuleContext.java:120)
	at org.netbeans.jackpot.transform.Transformer.show(Transformer.java:87)
	at org.netbeans.jackpot.query.Query.apply(Query.java:74)
	at org.netbeans.jackpot.builder.Engine.runCommand(Engine.java:110)
	... 3 more
Comment 1 _ tball 2006-03-14 20:40:48 UTC
Fix committed yesterday, should be in March 14 daily build.  The problem was
that javac doesn't attribute fields in import statements (only packages and
classes); jackpot is now updated to handle that case.