Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354649 - Exception thrown with primitive setter method with no getter
Summary: Exception thrown with primitive setter method with no getter
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-12 13:18 EDT by Denise Smith CLA
Modified: 2022-06-09 10:29 EDT (History)
1 user (show)

See Also:


Attachments
Patch and test case (8.80 KB, patch)
2011-08-12 14:00 EDT, Denise Smith CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Denise Smith CLA 2011-08-12 13:18:47 EDT
Exception below occurs creating the JAXBContext with methods like this:

        private boolean equipment;
	public void setHasEquipment(boolean equipment) {
	   this.equipment = equipment;
	}
 ///fails with or without isEquipment getter method present.
	

Exception [EclipseLink-7198] (Eclipse Persistence Services - 2.1.4.qualifier): org.eclipse.persistence.exceptions.ValidationException
Exception Description: Class: [boolean] was not found while converting from class names to classes.
Internal Exception: java.lang.ClassNotFoundException: boolean

	at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:471)
	at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.initializeDescriptors(DatabaseSessionImpl.java:406)
	at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.postConnectDatasource(DatabaseSessionImpl.java:666)
	at org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.login(DatabaseSessionImpl.java:628)
	at org.eclipse.persistence.oxm.XMLContext.<init>(XMLContext.java:213)
	at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:336)
	at org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:245)
	... 4 more
Comment 1 Denise Smith CLA 2011-08-12 13:54:03 EDT
A fix that was made to PrivilegedAccessHelper as part of bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=221876 actually remedies this
Comment 2 Denise Smith CLA 2011-08-12 14:00:57 EDT
Created attachment 201418 [details]
Patch and test case
Comment 3 Matt MacIvor CLA 2011-08-18 14:15:39 EDT
Attached patch checked to SVN
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:29:23 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink