Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354649

Summary: Exception thrown with primitive setter method with no getter
Product: z_Archived Reporter: Denise Smith <denise.mahar>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matt.macivor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch and test case none

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