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

Erro numero 0a0c46425737930386d10090c475bb7d70f70bc1 v2.7.5 #1149

Open
Senadelas opened this issue May 15, 2024 · 0 comments
Open

Erro numero 0a0c46425737930386d10090c475bb7d70f70bc1 v2.7.5 #1149

Senadelas opened this issue May 15, 2024 · 0 comments

Comments

@Senadelas
Copy link

Esta issue foi gerada automaticamente

[pressione o botao "copiar erro" no Portugol Studio e cole o erro aqui antes de enviar]
br.univali.ps.nucleo.ExcecaoAplicacao: java.lang.ArrayIndexOutOfBoundsException: -2
at br.univali.ps.nucleo.TratadorExcecoes.uncaughtException(TratadorExcecoes.java:145)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1057)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
at java.awt.EventDispatchThread.processException(EventDispatchThread.java:227)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:219)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.ArrayIndexOutOfBoundsException: -2
at javax.swing.text.AbstractDocument$BranchElement.getElement(AbstractDocument.java:2350)
at br.univali.ps.ui.rstautil.PortugolParser.adicionarErroAviso(PortugolParser.java:257)
at br.univali.ps.ui.rstautil.PortugolParser.notificarErrosAvisos(PortugolParser.java:168)
at br.univali.ps.ui.rstautil.PortugolParser.parse(PortugolParser.java:229)
at org.fife.ui.rsyntaxtextarea.ParserManager.actionPerformed(ParserManager.java:157)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
... 5 more

Código do Erro:
programa
{

funcao inicio()
{
	cadeia nomes[5]
	
	// Solicitar ao usuário a entrada de 5 nomes
	para(cadeia i=0; i<5; i++){
		escreva("Informe o nome ", i+1, ": ")
		leia(nomes[i])
	}
	
	// Exibir a lista dos nomes
	escreva("\nLista de nomes:\n")
	para(cadeia i=0; i<5; i++){
		escreva(nomes[i], "\n")
	}
	
	// Exibir os nomes na ordem inversa
	escreva("\nNomes na ordem inversa:\n")
	para(cadeia i=4; i>=0; i--){
		escreva(nomes[i], "\n")
	}
}

}

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

No branches or pull requests

1 participant