Defect #300

A java.lang.ClassCastException is raised when Content Assist is invoked.

Added by Atsuhiro KUBO almost 2 years ago. Updated almost 2 years ago.

Status:Closed Start date:06/28/2011
Priority:Normal Due date:
Assignee:Atsuhiro KUBO % Done:

100%

Category:MakeGood
Target version:1.6.0
Tags:#editing
Votes: 0

Description

If the system include path is used, a java.lang.ClassCastException is raised when Content Assist is invoked as follows:

java.lang.ClassCastException: org.eclipse.core.internal.resources.File cannot be cast to org.eclipse.core.resources.IContainer
    at org.eclipse.php.internal.core.codeassist.strategies.IncludeStatementStrategy.addInternalEntries(IncludeStatementStrategy.java:292)
    at org.eclipse.php.internal.core.codeassist.strategies.IncludeStatementStrategy.visitEntry(IncludeStatementStrategy.java:95)
    at org.eclipse.php.internal.core.codeassist.strategies.IncludeStatementStrategy.apply(IncludeStatementStrategy.java:73)
    at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:112)
    at org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:66)
    at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:501)
    at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:482)

Resources

Associated revisions

Revision ed47295a
Added by Atsuhiro KUBO almost 2 years ago

Fixed a defect that caused a java.lang.ClassCastException to be raised when Content Assist is invoked. (Issue #300)

History

Updated by Atsuhiro KUBO almost 2 years ago

  • Status changed from New to Assigned

Updated by Atsuhiro KUBO almost 2 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Updated by Atsuhiro KUBO almost 2 years ago

  • Target version set to 1.6.0

Also available in: Atom PDF