Hi,
I'm writing to report a possible bug encountered while working with the com.google.i18n.phonenumbers.PhoneNumber class in Java, specifically version 8.13.26(Also with 8.12.57). The issue arises when attempting to retrieve the region code for Emergency short numbers originating in Australia.
The relevant code snippet is as follows:
The expected outcome is for countryRegionCode to be populated with "AU," but it currently returns null. After investigation, it appears that the problem lies within the getMetaDataForRegion function in the MetaDataSourceImpl class. Specifically, the getPossibleLengthList which is a List<Integer>, contains phone numbers lengths starting from 5. This doesn't accurately reflect the lengths of emergency helpline numbers in Australia (e.g., +61000, +61112) which can be of size 3(disregarding the national number prefix i.e 61)
As a consequence, the getNumberTypeHelper function in the PhoneNumberUtil class categorizes the number as Unknown, leading to a null value in the getRegionCodeForNumber call.
I would appreciate clarification on whether this behavior is intentional or if it might be considered a bug that requires attention. Your guidance on this matter would be highly appreciated.
Thank you