Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'....PackageFragment cannot be cast to org.eclipse.jdt.core.IType' error when running 'net.sf.j2s.test.junit' as Java2Script Unit Test #16

Open
@abego

Description

@abego

Steps to reproduce

In Eclipse Package Explorer:

  • Right-Click package 'net.sf.j2s.test.junit'
  • Select 'Run As > Java2Script Unit Test'

A 'Problem occured' dialog appears with the message:

'Launching net.sf.j2s.test.junit' has encountered a problem

An internal error occurred during: "Launching net.sf.j2s.test.junit".
org.eclipse.jdt.internal.core.PackageFragment cannot be cast to org.eclipse.jdt.core.IType

The error log contains this entry:

!MESSAGE An internal error occurred during: "Launching net.sf.j2s.test.junit".
!STACK 0
java.lang.ClassCastException: org.eclipse.jdt.internal.core.PackageFragment cannot be cast to org.eclipse.jdt.core.IType
at net.sf.j2s.ui.launching.J2SLaunchingUtil.launchingJ2SUnit(J2SLaunchingUtil.java:149)
at net.sf.j2s.ui.launching.J2SUnitConfigurationDelegate.launch(J2SUnitConfigurationDelegate.java:21)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

(Running individual test classes works fine)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp