Community
Participate
Working Groups
Build 20030930 Got the following NPE after saving a change in the top frame's method (autobuild was on). java.lang.NullPointerException at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.getAffectedFra me(JavaHotCodeReplaceManager.java:721) at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.getAffectedFra mes(JavaHotCodeReplaceManager.java:675) at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.attemptPopFram es(JavaHotCodeReplaceManager.java:625) at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.doHotCodeRepla ce(JavaHotCodeReplaceManager.java:377) at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager.access$0 (JavaHotCodeReplaceManager.java:358) at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager$1.run (JavaHotCodeReplaceManager.java:287) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1555) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1572) at org.eclipse.jdt.internal.debug.core.hcr.JavaHotCodeReplaceManager$3.run (JavaHotCodeReplaceManager.java:1105) at java.lang.Thread.run(Thread.java:536)
Note to reproduce you might need the JDT/Core preview (http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-core- home/r3.0/main.html#updates) and enable the JDT/UI working copy owner support (JavaPlugin.USE_WORKING_COPY_OWNERS must be set to true).
getCorrespondingResource() returns null for working copies but it should not return null for primary compilation units in working copy mode. Moving to JDT/Core
Fixed and added regression test WorkingCopyOwnerTests.testGetCorrespondingResource()
Verified.