Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException in property page #183

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

Bananeweizen
Copy link
Contributor

When a Java project sub element is selected, the property page registration in plugin.xml wants to show the properties of the containing project, but the Java code doesn't adapt such sub elements to their project.

java.lang.ClassCastException: class
org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to class org.eclipse.core.resources.IProject
(org.eclipse.jdt.internal.core.CompilationUnit is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @1b446f3e; org.eclipse.core.resources.IProject is in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @2e94e7e4)
	at org.moreunit.properties.MoreUnitPropertyPage.getJavaProject(MoreUnitPropertyPage.java:133)

When a Java project sub element is selected, the property page
registration in plugin.xml wants to show the properties of the
containing project, but the Java code doesn't adapt such sub elements to
their project.

java.lang.ClassCastException: class
org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to class
org.eclipse.core.resources.IProject
(org.eclipse.jdt.internal.core.CompilationUnit is in unnamed module of
loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @1b446f3e;
org.eclipse.core.resources.IProject is in unnamed module of loader
org.eclipse.osgi.internal.loader.EquinoxClassLoader @2e94e7e4)
	at org.moreunit.properties.MoreUnitPropertyPage.getJavaProject(MoreUnitPropertyPage.java:133)
@RoiSoleil RoiSoleil merged commit e696fd4 into MoreUnit:master Dec 7, 2023
1 check failed
@Bananeweizen Bananeweizen deleted the class_cast_exception branch December 7, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants