Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 909436

Summary: dev-java/jna-5.13.0-r1: The type "com.sun.jna.TypeMapperTest$Enumeration" is not supported: Native size for type "com.sun.jna.TypeMapperTest$Enumeration" is unknown
Product: Gentoo Linux Reporter: Volkmar W. Pogatzki <gentoo>
Component: Current packagesAssignee: Java team <java>
Status: RESOLVED WORKSFORME    
Severity: normal CC: arthurzam, fordfrog
Priority: Normal Keywords: PullRequest, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/30966
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log provided by arthurzam

Description Volkmar W. Pogatzki 2023-07-01 11:04:40 UTC
Created attachment 864947 [details]
build log provided by arthurzam

There was 1 failure:
1) testEnumConversion(com.sun.jna.TypeMapperTest)
java.lang.IllegalArgumentException: Invalid Structure field in class com.sun.jna.TypeMapperTest$EnumerationTestLibrary$MinTestStructure, field name 'field' (class com.sun.jna.TypeMapperTest$Enumeration): The type "com.sun.jna.TypeMapperTest$Enumeration" is not supported: Native size for type "com.sun.jna.TypeMapperTest$Enumeration" is unknown
	at com.sun.jna.Structure.validateField(Structure.java:1246)
	at com.sun.jna.Structure.validateFields(Structure.java:1255)
	at com.sun.jna.Structure.<init>(Structure.java:211)
	at com.sun.jna.Structure.<init>(Structure.java:204)
	at com.sun.jna.Structure.<init>(Structure.java:191)
	at com.sun.jna.Structure.<init>(Structure.java:183)
	at com.sun.jna.TypeMapperTest$EnumerationTestLibrary$MinTestStructure.<init>(TypeMapperTest.java:243)
	at com.sun.jna.TypeMapperTest.testEnumConversion(TypeMapperTest.java:276)
	... 25 trimmed
Caused by: java.lang.IllegalArgumentException: The type "com.sun.jna.TypeMapperTest$Enumeration" is not supported: Native size for type "com.sun.jna.TypeMapperTest$Enumeration" is unknown
	at com.sun.jna.Native.getNativeSize(Native.java:1412)
	at com.sun.jna.Structure.getNativeSize(Structure.java:2310)
	at com.sun.jna.Structure.getNativeSize(Structure.java:2300)
	at com.sun.jna.Structure.validateField(Structure.java:1242)
	... 33 more

FAILURES!!!
Tests run: 519,  Failures: 1
Comment 1 Volkmar W. Pogatzki 2023-07-18 10:35:28 UTC
This failure was not reproduced on x86 stabilization https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-java/jna?id=1ec7361a89dbca50539405e375556db557da0c03. Closing